OpenDDS
Snapshot(2023/04/07-19:43)
|
manage the states of a received data instance. More...
#include <InstanceState.h>
Classes | |
struct | CancelCommand |
struct | CommandBase |
struct | ScheduleCommand |
Public Member Functions | |
InstanceState (const DataReaderImpl_rch &reader, ACE_Recursive_Thread_Mutex &lock, DDS::InstanceHandle_t handle) | |
virtual | ~InstanceState () |
void | sample_info (DDS::SampleInfo &si, const ReceivedDataElement *de) |
Populate the SampleInfo structure. More... | |
DDS::InstanceStateKind | instance_state () const |
Access instance state. More... | |
DDS::ViewStateKind | view_state () const |
Access view state. More... | |
bool | match (DDS::ViewStateMask view, DDS::InstanceStateMask inst) const |
size_t | disposed_generation_count () const |
Access disposed generation count. More... | |
size_t | no_writers_generation_count () const |
Access no writers generation count. More... | |
bool | dispose_was_received (const GUID_t &writer_id) |
bool | unregister_was_received (const GUID_t &writer_id) |
void | data_was_received (const GUID_t &writer_id) |
Data sample received for this instance. More... | |
void | lively (const GUID_t &writer_id) |
LIVELINESS message received for this DataWriter. More... | |
void | accessed () |
A read or take operation has been performed on this instance. More... | |
bool | most_recent_generation (ReceivedDataElement *item) const |
bool | empty (bool value) |
DataReader has become empty. Returns true if the instance was released. More... | |
void | schedule_pending () |
Schedule a pending release of resources. More... | |
void | schedule_release () |
Schedule an immediate release of resources. More... | |
void | cancel_release () |
Cancel a scheduled or pending release of resources. More... | |
bool | release_if_empty () |
void | release () |
Remove the instance immediately. More... | |
bool | writes_instance (const GUID_t &writer_id) const |
Returns true if the writer is a writer of this instance. More... | |
WeakRcHandle< DataReaderImpl > | data_reader () const |
void | state_updated () const |
virtual int | handle_timeout (const ACE_Time_Value ¤t_time, const void *arg) |
void | set_owner (const GUID_t &owner) |
GUID_t | get_owner () |
bool | is_exclusive () const |
bool | registered () |
void | registered (bool flag) |
bool | is_last (const GUID_t &pub) |
bool | no_writer () const |
void | reset_ownership (DDS::InstanceHandle_t instance) |
DDS::InstanceHandle_t | instance_handle () const |
const char * | instance_state_string () const |
Return string of the name of the current instance state. More... | |
![]() | |
CommandPtr | execute_or_enqueue (CommandPtr command) |
virtual void | reactor (ACE_Reactor *reactor) |
virtual ACE_Reactor * | reactor () const |
![]() | |
RcEventHandler () | |
ACE_Event_Handler::Reference_Count | add_reference () |
ACE_Event_Handler::Reference_Count | remove_reference () |
![]() | |
virtual | ~ACE_Event_Handler (void) |
virtual ACE_HANDLE | get_handle (void) const |
virtual void | set_handle (ACE_HANDLE) |
virtual int | priority (void) const |
virtual void | priority (int priority) |
virtual int | handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
virtual int | handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
virtual int | handle_exit (ACE_Process *) |
virtual int | handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask) |
virtual int | handle_signal (int signum, siginfo_t *=0, ucontext_t *=0) |
virtual int | resume_handler (void) |
virtual int | handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
virtual int | handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
virtual ACE_Reactor_Timer_Interface * | reactor_timer_interface (void) const |
Reference_Counting_Policy & | reference_counting_policy (void) |
![]() | |
virtual | ~RcObject () |
virtual void | _add_ref () |
virtual void | _remove_ref () |
long | ref_count () const |
WeakObject * | _get_weak_object () const |
Static Public Member Functions | |
static const char * | instance_state_string (DDS::InstanceStateKind value) |
Return string of the name of the instance state kind passed. More... | |
static OPENDDS_STRING | instance_state_mask_string (DDS::InstanceStateMask mask) |
Return string representation of the instance state mask passed. More... | |
![]() | |
static ACE_THR_FUNC_RETURN | read_adapter (void *event_handler) |
static int | register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED) |
static int | remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr) |
Private Member Functions | |
bool | reactor_is_shut_down () const |
Private Attributes | |
ACE_Recursive_Thread_Mutex & | lock_ |
ACE_Thread_Mutex | owner_lock_ |
DDS::InstanceStateKind | instance_state_ |
DDS::ViewStateKind | view_state_ |
size_t | disposed_generation_count_ |
size_t | no_writers_generation_count_ |
bool | empty_ |
bool | release_pending_ |
long | release_timer_id_ |
WeakRcHandle< DataReaderImpl > | reader_ |
DDS::InstanceHandle_t | handle_ |
RepoIdSet | writers_ |
GUID_t | owner_ |
bool | exclusive_ |
bool | registered_ |
manage the states of a received data instance.
Provide a mechanism to manage the view state and instance state values for an instance contained within a DataReader. The instance_state and view_state are managed by this class. Accessors are provided to query the current value of each of these states.
Definition at line 49 of file InstanceState.h.
OpenDDS::DCPS::InstanceState::InstanceState | ( | const DataReaderImpl_rch & | reader, |
ACE_Recursive_Thread_Mutex & | lock, | ||
DDS::InstanceHandle_t | handle | ||
) |
Definition at line 28 of file InstanceState.cpp.
|
virtual |
Definition at line 50 of file InstanceState.cpp.
References OpenDDS::DCPS::WeakRcHandle< T >::lock(), reader_, registered_, and OpenDDS::DCPS::OwnershipManager::remove_instance().
ACE_INLINE void OpenDDS::DCPS::InstanceState::accessed | ( | ) |
A read or take operation has been performed on this instance.
Definition at line 22 of file InstanceState.inl.
References ACE_GUARD, ACE_INLINE, DDS::ANY_VIEW_STATE, lock_, DDS::NOT_NEW_VIEW_STATE, state_updated(), and view_state_.
Referenced by OpenDDS::DCPS::RakeResults< MessageType >::copy_into(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_next_sample(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::store_synthetic_data(), and OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::take_next_sample().
void OpenDDS::DCPS::InstanceState::cancel_release | ( | ) |
Cancel a scheduled or pending release of resources.
Definition at line 240 of file InstanceState.cpp.
References OpenDDS::DCPS::ReactorInterceptor::execute_or_enqueue(), and release_pending_.
Referenced by data_was_received(), lively(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::purge_data(), and schedule_release().
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE OpenDDS::DCPS::WeakRcHandle< OpenDDS::DCPS::DataReaderImpl > OpenDDS::DCPS::InstanceState::data_reader | ( | ) | const |
Definition at line 15 of file InstanceState.inl.
References ACE_INLINE, and reader_.
Referenced by OpenDDS::DCPS::SubscriptionInstance::~SubscriptionInstance().
ACE_INLINE void OpenDDS::DCPS::InstanceState::data_was_received | ( | const GUID_t & | writer_id | ) |
Data sample received for this instance.
Definition at line 71 of file InstanceState.inl.
References ACE_GUARD, ACE_INLINE, DDS::ALIVE_INSTANCE_STATE, cancel_release(), disposed_generation_count_, instance_state_, lock_, DDS::NEW_VIEW_STATE, no_writers_generation_count_, DDS::NOT_ALIVE_DISPOSED_INSTANCE_STATE, DDS::NOT_ALIVE_INSTANCE_STATE, DDS::NOT_ALIVE_NO_WRITERS_INSTANCE_STATE, DDS::NOT_NEW_VIEW_STATE, state_updated(), view_state_, and writers_.
Referenced by OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data().
bool OpenDDS::DCPS::InstanceState::dispose_was_received | ( | const GUID_t & | writer_id | ) |
DISPOSE message received for this instance. Return flag indicates whether the instance state was changed. This flag is used by concrete DataReader to determine whether it should notify listener. If state is not changed, the dispose message is ignored.
Definition at line 119 of file InstanceState.cpp.
References ACE_GUARD_RETURN, DDS::ALIVE_INSTANCE_STATE, exclusive_, handle_, instance_state_, OpenDDS::DCPS::OwnershipManager::is_owner(), OpenDDS::DCPS::WeakRcHandle< T >::lock(), lock_, DDS::NOT_ALIVE_DISPOSED_INSTANCE_STATE, reader_, schedule_release(), state_updated(), and writers_.
Referenced by OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data().
ACE_INLINE size_t OpenDDS::DCPS::InstanceState::disposed_generation_count | ( | ) | const |
Access disposed generation count.
Definition at line 58 of file InstanceState.inl.
References ACE_INLINE, and disposed_generation_count_.
Referenced by OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data().
ACE_INLINE bool OpenDDS::DCPS::InstanceState::empty | ( | bool | value | ) |
DataReader has become empty. Returns true if the instance was released.
Definition at line 147 of file InstanceState.inl.
References ACE_INLINE, empty_, release_if_empty(), and release_pending_.
Referenced by OpenDDS::DCPS::ReceivedDataElementList::add(), and OpenDDS::DCPS::ReceivedDataElementList::remove().
GUID_t OpenDDS::DCPS::InstanceState::get_owner | ( | ) |
Definition at line 272 of file InstanceState.cpp.
References owner_, and owner_lock_.
Referenced by OpenDDS::DCPS::DataReaderImpl::ownership_filter_instance().
|
virtual |
Reimplemented from ACE_Event_Handler.
Definition at line 103 of file InstanceState.cpp.
References ACE_DEBUG, ACE_TEXT(), OpenDDS::DCPS::DCPS_debug_level, handle_, LM_NOTICE, release(), and TheServiceParticipant.
|
inline |
Definition at line 144 of file InstanceState.h.
References OPENDDS_STRING.
Referenced by OpenDDS::DCPS::ReceivedDataElementList::decrement_not_read_count(), OpenDDS::DCPS::ReceivedDataElementList::decrement_read_count(), OpenDDS::DCPS::ReceivedDataElementList::increment_not_read_count(), OpenDDS::DCPS::ReceivedDataElementList::increment_read_count(), and OpenDDS::DCPS::OwnershipManager::remove_instance().
ACE_INLINE DDS::InstanceStateKind OpenDDS::DCPS::InstanceState::instance_state | ( | ) | const |
Access instance state.
Definition at line 39 of file InstanceState.inl.
References ACE_INLINE, and instance_state_.
Referenced by OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_i(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_instance_i(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::take_i(), and OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::take_instance_i().
|
static |
Return string representation of the instance state mask passed.
Definition at line 366 of file InstanceState.cpp.
References DDS::ALIVE_INSTANCE_STATE, DDS::ANY_INSTANCE_STATE, instance_state_string(), DDS::NOT_ALIVE_DISPOSED_INSTANCE_STATE, DDS::NOT_ALIVE_INSTANCE_STATE, DDS::NOT_ALIVE_NO_WRITERS_INSTANCE_STATE, OPENDDS_END_VERSIONED_NAMESPACE_DECL, and OPENDDS_STRING.
Referenced by OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_instance_i().
ACE_INLINE const char * OpenDDS::DCPS::InstanceState::instance_state_string | ( | ) | const |
Return string of the name of the current instance state.
Definition at line 180 of file InstanceState.inl.
References instance_state_, and OPENDDS_END_VERSIONED_NAMESPACE_DECL.
Referenced by instance_state_mask_string(), and OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_instance_i().
|
static |
Return string of the name of the instance state kind passed.
Definition at line 344 of file InstanceState.cpp.
References ACE_ERROR, ACE_TEXT(), DDS::ALIVE_INSTANCE_STATE, DDS::ANY_INSTANCE_STATE, LM_ERROR, DDS::NOT_ALIVE_DISPOSED_INSTANCE_STATE, DDS::NOT_ALIVE_INSTANCE_STATE, and DDS::NOT_ALIVE_NO_WRITERS_INSTANCE_STATE.
bool OpenDDS::DCPS::InstanceState::is_exclusive | ( | ) | const |
Definition at line 278 of file InstanceState.cpp.
References exclusive_.
Referenced by OpenDDS::DCPS::DataReaderImpl::process_deadline().
ACE_INLINE bool OpenDDS::DCPS::InstanceState::is_last | ( | const GUID_t & | pub | ) |
Definition at line 163 of file InstanceState.inl.
References ACE_GUARD_RETURN, ACE_INLINE, lock_, and writers_.
Referenced by OpenDDS::DCPS::DataReaderImpl::data_received().
ACE_INLINE void OpenDDS::DCPS::InstanceState::lively | ( | const GUID_t & | writer_id | ) |
LIVELINESS message received for this DataWriter.
Definition at line 123 of file InstanceState.inl.
References ACE_GUARD, ACE_INLINE, DDS::ALIVE_INSTANCE_STATE, cancel_release(), instance_state_, lock_, no_writers_generation_count_, DDS::NOT_ALIVE_NO_WRITERS_INSTANCE_STATE, state_updated(), and writers_.
Referenced by OpenDDS::DCPS::DataReaderImpl::signal_liveliness(), and OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::store_instance_data().
ACE_INLINE bool OpenDDS::DCPS::InstanceState::match | ( | DDS::ViewStateMask | view, |
DDS::InstanceStateMask | inst | ||
) | const |
Definition at line 52 of file InstanceState.inl.
References ACE_INLINE, instance_state_, and view_state_.
Referenced by OpenDDS::DCPS::DataReaderImpl::get_ordered_data(), OpenDDS::DCPS::SubscriptionInstance::matches(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_instance_i(), and OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::take_instance_i().
bool OpenDDS::DCPS::InstanceState::most_recent_generation | ( | ReceivedDataElement * | item | ) | const |
Definition at line 309 of file InstanceState.cpp.
References OpenDDS::DCPS::ReceivedDataElement::disposed_generation_count_, disposed_generation_count_, OpenDDS::DCPS::ReceivedDataElement::no_writers_generation_count_, and no_writers_generation_count_.
Referenced by OpenDDS::DCPS::RakeResults< MessageType >::copy_into(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_next_sample(), and OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::take_next_sample().
ACE_INLINE bool OpenDDS::DCPS::InstanceState::no_writer | ( | ) | const |
Definition at line 172 of file InstanceState.inl.
References ACE_GUARD_RETURN, ACE_INLINE, lock_, and writers_.
ACE_INLINE size_t OpenDDS::DCPS::InstanceState::no_writers_generation_count | ( | ) | const |
Access no writers generation count.
Definition at line 64 of file InstanceState.inl.
References ACE_INLINE, and no_writers_generation_count_.
Referenced by OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data().
|
privatevirtual |
Implements OpenDDS::DCPS::ReactorInterceptor.
Definition at line 315 of file InstanceState.cpp.
References TheServiceParticipant.
bool OpenDDS::DCPS::InstanceState::registered | ( | ) |
Definition at line 283 of file InstanceState.cpp.
References lock_, and registered_.
Referenced by OpenDDS::DCPS::OwnershipManager::select_owner().
void OpenDDS::DCPS::InstanceState::registered | ( | bool | flag | ) |
Definition at line 291 of file InstanceState.cpp.
References lock_, and registered_.
void OpenDDS::DCPS::InstanceState::release | ( | void | ) |
Remove the instance immediately.
Definition at line 258 of file InstanceState.cpp.
References handle_, OpenDDS::DCPS::WeakRcHandle< T >::lock(), and reader_.
Referenced by handle_timeout(), and release_if_empty().
bool OpenDDS::DCPS::InstanceState::release_if_empty | ( | ) |
Remove the instance if it's instance has no samples and no writers. Returns true if the instance was released.
Definition at line 246 of file InstanceState.cpp.
References empty_, release(), schedule_pending(), and writers_.
Referenced by empty().
void OpenDDS::DCPS::InstanceState::reset_ownership | ( | DDS::InstanceHandle_t | instance | ) |
Definition at line 297 of file InstanceState.cpp.
References OpenDDS::DCPS::GUID_UNKNOWN, OpenDDS::DCPS::WeakRcHandle< T >::lock(), lock_, reader_, registered_, and set_owner().
void OpenDDS::DCPS::InstanceState::sample_info | ( | DDS::SampleInfo & | si, |
const ReceivedDataElement * | de | ||
) |
Populate the SampleInfo structure.
Definition at line 63 of file InstanceState.cpp.
References DDS::SampleInfo::absolute_generation_rank, DDS::SampleInfo::disposed_generation_count, OpenDDS::DCPS::ReceivedDataElement::disposed_generation_count_, disposed_generation_count_, DDS::SampleInfo::generation_rank, OpenDDS::DCPS::SequenceNumber::getValue(), handle_, DDS::HANDLE_NIL, DDS::SampleInfo::instance_handle, DDS::SampleInfo::instance_state, instance_state_, OpenDDS::DCPS::WeakRcHandle< T >::lock(), DDS::SampleInfo::no_writers_generation_count, OpenDDS::DCPS::ReceivedDataElement::no_writers_generation_count_, no_writers_generation_count_, DDS::SampleInfo::opendds_reserved_publication_seq, OpenDDS::DCPS::ReceivedDataElement::pub_, DDS::SampleInfo::publication_handle, reader_, DDS::SampleInfo::sample_rank, DDS::SampleInfo::sample_state, OpenDDS::DCPS::ReceivedDataElement::sample_state_, OpenDDS::DCPS::ReceivedDataElement::sequence_, DDS::SampleInfo::source_timestamp, OpenDDS::DCPS::ReceivedDataElement::source_timestamp_, DDS::SampleInfo::valid_data, OpenDDS::DCPS::ReceivedDataElement::valid_data_, DDS::SampleInfo::view_state, and view_state_.
Referenced by OpenDDS::DCPS::RakeResults< MessageType >::copy_into(), OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_next_sample(), and OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::take_next_sample().
void OpenDDS::DCPS::InstanceState::schedule_pending | ( | ) |
Schedule a pending release of resources.
Definition at line 183 of file InstanceState.cpp.
References release_pending_.
Referenced by release_if_empty(), and schedule_release().
void OpenDDS::DCPS::InstanceState::schedule_release | ( | ) |
Schedule an immediate release of resources.
Definition at line 196 of file InstanceState.cpp.
References ACE_ERROR, ACE_TEXT(), DDS::ReaderDataLifecycleQosPolicy::autopurge_disposed_samples_delay, DDS::ReaderDataLifecycleQosPolicy::autopurge_nowriter_samples_delay, cancel_release(), DDS::DURATION_INFINITE_NSEC, DDS::DURATION_INFINITE_SEC, OpenDDS::DCPS::ReactorInterceptor::execute_or_enqueue(), instance_state_, LM_ERROR, OpenDDS::DCPS::WeakRcHandle< T >::lock(), DDS::Duration_t::nanosec, DDS::NOT_ALIVE_DISPOSED_INSTANCE_STATE, DDS::NOT_ALIVE_NO_WRITERS_INSTANCE_STATE, reader_, DDS::DataReaderQos::reader_data_lifecycle, schedule_pending(), and DDS::Duration_t::sec.
Referenced by dispose_was_received(), and unregister_was_received().
void OpenDDS::DCPS::InstanceState::set_owner | ( | const GUID_t & | owner | ) |
Definition at line 266 of file InstanceState.cpp.
References owner_, and owner_lock_.
Referenced by reset_ownership().
void OpenDDS::DCPS::InstanceState::state_updated | ( | ) | const |
Definition at line 188 of file InstanceState.cpp.
References handle_, OpenDDS::DCPS::WeakRcHandle< T >::lock(), and reader_.
Referenced by accessed(), data_was_received(), dispose_was_received(), lively(), and unregister_was_received().
bool OpenDDS::DCPS::InstanceState::unregister_was_received | ( | const GUID_t & | writer_id | ) |
UNREGISTER message received for this instance. Return flag indicates whether the instance state was changed. This flag is used by concrete DataReader to determine whether it should notify listener. If state is not changed, the unregister message is ignored.
Definition at line 150 of file InstanceState.cpp.
References ACE_DEBUG, ACE_GUARD_RETURN, ACE_TEXT(), DDS::ALIVE_INSTANCE_STATE, OpenDDS::DCPS::DCPS_debug_level, exclusive_, handle_, instance_state_, LM_DEBUG, OpenDDS::DCPS::WeakRcHandle< T >::lock(), lock_, DDS::NOT_ALIVE_NO_WRITERS_INSTANCE_STATE, reader_, OpenDDS::DCPS::OwnershipManager::remove_writer(), schedule_release(), state_updated(), and writers_.
Referenced by OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::finish_store_instance_data().
ACE_INLINE DDS::ViewStateKind OpenDDS::DCPS::InstanceState::view_state | ( | ) | const |
Access view state.
Definition at line 46 of file InstanceState.inl.
References ACE_INLINE, and view_state_.
Referenced by OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::read_instance_i().
|
inline |
Returns true if the writer is a writer of this instance.
Definition at line 121 of file InstanceState.h.
References ACE_GUARD_RETURN, and lock_.
Referenced by OpenDDS::DCPS::DataReaderImpl_T< DynamicSample >::store_instance_data_check().
|
private |
Number of times the instance state changes from NOT_ALIVE_DISPOSED to ALIVE.
Definition at line 193 of file InstanceState.h.
Referenced by data_was_received(), disposed_generation_count(), most_recent_generation(), and sample_info().
|
private |
Keep track of whether the DataReader is empty or not.
Definition at line 202 of file InstanceState.h.
Referenced by empty(), and release_if_empty().
|
private |
Definition at line 225 of file InstanceState.h.
Referenced by dispose_was_received(), is_exclusive(), and unregister_was_received().
|
private |
Definition at line 221 of file InstanceState.h.
Referenced by dispose_was_received(), handle_timeout(), release(), sample_info(), state_updated(), and unregister_was_received().
|
private |
Current instance state.
Can have values defined as:
DDS::ALIVE_INSTANCE_STATE DDS::NOT_ALIVE_DISPOSED_INSTANCE_STATE DDS::NOT_ALIVE_NO_WRITERS_INSTANCE_STATE
and can be checked with the masks:
DDS::ANY_INSTANCE_STATE DDS::NOT_ALIVE_INSTANCE_STATE
Definition at line 175 of file InstanceState.h.
Referenced by data_was_received(), dispose_was_received(), OpenDDS::DCPS::InstanceState::CancelCommand::execute(), OpenDDS::DCPS::InstanceState::ScheduleCommand::execute(), instance_state(), instance_state_string(), lively(), match(), sample_info(), schedule_release(), and unregister_was_received().
|
private |
Definition at line 158 of file InstanceState.h.
Referenced by accessed(), data_was_received(), dispose_was_received(), is_last(), lively(), no_writer(), registered(), reset_ownership(), and unregister_was_received().
|
private |
Number of times the instance state changes from NOT_ALIVE_NO_WRITERS to ALIVE.
Definition at line 197 of file InstanceState.h.
Referenced by data_was_received(), lively(), most_recent_generation(), no_writers_generation_count(), and sample_info().
|
private |
Definition at line 224 of file InstanceState.h.
Referenced by get_owner(), and set_owner().
|
private |
Definition at line 159 of file InstanceState.h.
Referenced by get_owner(), and set_owner().
|
private |
Reference to our containing reader. This is used to call back and notify the reader that liveliness has been lost on this instance. It is also queried to determine if the DataReader is empty – that it contains no more sample data.
Definition at line 220 of file InstanceState.h.
Referenced by data_reader(), dispose_was_received(), release(), reset_ownership(), sample_info(), schedule_release(), state_updated(), unregister_was_received(), and ~InstanceState().
|
private |
registered with participant so it can be called back as the owner is updated.
Definition at line 228 of file InstanceState.h.
Referenced by registered(), reset_ownership(), and ~InstanceState().
|
private |
Keep track of whether the instance is waiting to be released.
Definition at line 207 of file InstanceState.h.
Referenced by cancel_release(), empty(), and schedule_pending().
|
private |
Keep track of a scheduled release timer.
Definition at line 212 of file InstanceState.h.
|
private |
Current instance view state.
Can have values defined as:
DDS::NEW_VIEW_STATE DDS::NOT_NEW_VIEW_STATE
and can be checked with the mask:
Definition at line 189 of file InstanceState.h.
Referenced by accessed(), data_was_received(), match(), sample_info(), and view_state().
|
private |
Definition at line 223 of file InstanceState.h.
Referenced by data_was_received(), dispose_was_received(), is_last(), lively(), no_writer(), release_if_empty(), and unregister_was_received().