VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrv::DtStateViewCollection< T > Class Template Reference

template<class T>
class makVrv::DtStateViewCollection< T >

A DtStateViewCollection is a collection of DtStateViews of a specific state.

Inheritance diagram for makVrv::DtStateViewCollection< T >:
Inheritance graph
[legend]

Public Types

typedef std::map< DtUniqueID,
DtStateView< T > * > 
StateViewMap
 

Public Member Functions

 DtStateViewCollection (DtDe &de, DtSimEntryUpdater::UpdateRate rate)
 
virtual ~DtStateViewCollection ()
 
void setUpdateRate (DtSimEntryUpdater::UpdateRate rate)
 
size_t size () const
 
const StateViewMapstateViewMap () const
 
bool hasStateView (DtUniqueID id) const
 
const DtStateView< T > * findStateView (DtUniqueID id) const
 

Public Attributes

boost::signalslib::signal
< void(const DtStateView< T > &)> 
signal_stateViewAdded
 
boost::signalslib::signal
< void(const DtStateView< T > &)> 
signal_stateViewAboutToBeRemoved
 

Protected Member Functions

bool isCompatible (DtSimObjectEntry &entry)
 
bool isCompatible (DtSimState &entry)
 
void onSimObjectEntryAdded (DtSimObjectEntry &entry)
 
void onSimObjectEntryAboutToBeRemoved (DtSimObjectEntry &entry)
 
void onSimObjectStateEntryAdded (DtSimObjectEntry &entry, DtSimState &)
 
void onSimObjectStateEntryAboutToBeRemoved (DtSimObjectEntry &entry, DtSimState &)
 
void populateFromExistingEntries ()
 

Protected Attributes

DtDemyDe
 
StateViewMap myStateViewMap
 
DtSimEntryUpdater::UpdateRate myRate
 
DtSignalConnectionManager myConnections
 

Member Typedef Documentation

template<class T>
typedef std::map<DtUniqueID, DtStateView<T>* > makVrv::DtStateViewCollection< T >::StateViewMap

Map of unique id's to DtStateViews's.

Constructor & Destructor Documentation

template<class T >
makVrv::DtStateViewCollection< T >::~DtStateViewCollection ( )
virtual

DTOR.

Member Function Documentation

template<class T >
void makVrv::DtStateViewCollection< T >::setUpdateRate ( DtSimEntryUpdater::UpdateRate  rate)

Set the rate of every state view in the container.

template<class T >
size_t makVrv::DtStateViewCollection< T >::size ( ) const

Return the number of the objects in the container.

template<class T >
const DtStateViewCollection< T >::StateViewMap & makVrv::DtStateViewCollection< T >::stateViewMap ( ) const

Return the map of DtStateViews's in this collection.

template<class T >
bool makVrv::DtStateViewCollection< T >::hasStateView ( DtUniqueID  id) const

Returns true if a state view with that ID exists.

template<class T >
const DtStateView< T > * makVrv::DtStateViewCollection< T >::findStateView ( DtUniqueID  id) const

Find DtStateView by id.

template<class T >
bool makVrv::DtStateViewCollection< T >::isCompatible ( DtSimObjectEntry entry)
protected
template<class T >
bool makVrv::DtStateViewCollection< T >::isCompatible ( DtSimState entry)
protected

Returns true if the state if of type T.

References makVrv::DtStateView< StateType >::isCompatible().

template<class T >
void makVrv::DtStateViewCollection< T >::onSimObjectEntryAdded ( DtSimObjectEntry entry)
protected
template<class T >
void makVrv::DtStateViewCollection< T >::onSimObjectEntryAboutToBeRemoved ( DtSimObjectEntry entry)
protected

Called when a DtSimObjectEntry is about to be removed.

References makVrv::DtSimEntry::id().

template<class T >
void makVrv::DtStateViewCollection< T >::onSimObjectStateEntryAdded ( DtSimObjectEntry entry,
DtSimState state 
)
protected
template<class T >
void makVrv::DtStateViewCollection< T >::onSimObjectStateEntryAboutToBeRemoved ( DtSimObjectEntry entry,
DtSimState state 
)
protected

Called when a DtSimState is about to be removed from a DtSimObjectEntry.

References makVrv::DtSimEntry::id().

template<class T >
void makVrv::DtStateViewCollection< T >::populateFromExistingEntries ( )
protected

Go through existing DtSimEntry's and populate this container.

Referenced by makVrv::DtStateViewCollection< T >::DtStateViewCollection().

Member Data Documentation

template<class T>
boost::signalslib::signal<void (const DtStateView<T>&)> makVrv::DtStateViewCollection< T >::signal_stateViewAdded

Signal emitted when a DtStateView is added.

template<class T>
boost::signalslib::signal<void (const DtStateView<T>&)> makVrv::DtStateViewCollection< T >::signal_stateViewAboutToBeRemoved

Signal emitted when a DtStateView is about to be removed.

template<class T>
DtDe& makVrv::DtStateViewCollection< T >::myDe
protected
template<class T>
StateViewMap makVrv::DtStateViewCollection< T >::myStateViewMap
protected
template<class T>
DtSimEntryUpdater::UpdateRate makVrv::DtStateViewCollection< T >::myRate
protected
template<class T>
DtSignalConnectionManager makVrv::DtStateViewCollection< T >::myConnections
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)