VR-Forces 5.0.3 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 | Private Member Functions
makVrv::DtSimObjectEntryCollection< T > Class Template Reference

template<class T>
class makVrv::DtSimObjectEntryCollection< T >

A DtSimObjectEntryCollection is a collection of DtSimObjectEntry's that have a specific state.

Public Types

typedef std::map< DtUniqueID,
DtSimObjectEntry * > 
SimObjectEntryMap
 

Public Member Functions

 DtSimObjectEntryCollection (DtDe &de)
 
virtual ~DtSimObjectEntryCollection ()
 
size_t size () const
 
const SimObjectEntryMapsimObjectEntryMap () const
 
const DtSimObjectEntryfindSimObjectEntry (DtUniqueID id) const
 

Public Attributes

boost::signalslib::signal
< void(DtSimObjectEntry &)> 
signal_simObjectEntryAdded
 
boost::signalslib::signal
< void(DtSimObjectEntry &)> 
signal_simObjectEntryAboutToBeRemoved
 

Protected Member Functions

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

Protected Attributes

DtDemyDe
 
SimObjectEntryMap mySimObjectEntryMap
 

Private Member Functions

 DtSimObjectEntryCollection ()
 
 DtSimObjectEntryCollection (const DtSimObjectEntryCollection &)
 
DtSimObjectEntryCollectionoperator= (const DtSimObjectEntryCollection &)
 

Member Typedef Documentation

Map of unique id's to DtSimObjectEntry's.

Constructor & Destructor Documentation

template<class T >
makVrv::DtSimObjectEntryCollection< T >::~DtSimObjectEntryCollection ( )
virtual
template<class T >
makVrv::DtSimObjectEntryCollection< T >::DtSimObjectEntryCollection ( )
private

Protected CTOR.

Member Function Documentation

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

Return the number of the objects in the container.

template<class T >
const DtSimObjectEntryCollection< T >::SimObjectEntryMap & makVrv::DtSimObjectEntryCollection< T >::simObjectEntryMap ( ) const

Return the map of DtSimObjectEntry's in this collection.

template<class T >
const DtSimObjectEntry * makVrv::DtSimObjectEntryCollection< T >::findSimObjectEntry ( DtUniqueID  id) const

Find DtSimEntry by id.

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

Called when a DtSimObjectEntry is added.

References makVrv::DtSimEntry::id().

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

Called when a DtSimObjectEntry is about to be removed.

References makVrv::DtSimEntry::id().

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

Called when a DtSimState is added to a DtSimObjectEntry.

References makVrv::DtSimEntry::id().

template<class T >
void makVrv::DtSimObjectEntryCollection< 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 >
bool makVrv::DtSimObjectEntryCollection< T >::isCompatible ( DtSimObjectEntry entry)
protected

Returns true if the DtSimEntry contains a state of type T.

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

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

Returns true if the DtSimState is of type T.

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

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

Go through existing DtSimEntry's and populate this container.

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

template<class T >
DtSimObjectEntryCollection& makVrv::DtSimObjectEntryCollection< T >::operator= ( const DtSimObjectEntryCollection< T > &  )
private

Member Data Documentation

template<class T >
boost::signalslib::signal<void (DtSimObjectEntry&)> makVrv::DtSimObjectEntryCollection< T >::signal_simObjectEntryAdded

Signal emitted when a DtSimObjectEntry is added.

template<class T >
boost::signalslib::signal<void (DtSimObjectEntry&)> makVrv::DtSimObjectEntryCollection< T >::signal_simObjectEntryAboutToBeRemoved

Signal emitted when a DtSimObjectEntry is about to be removed.

template<class T >
DtDe& makVrv::DtSimObjectEntryCollection< T >::myDe
protected
template<class T >
SimObjectEntryMap makVrv::DtSimObjectEntryCollection< T >::mySimObjectEntryMap
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)