VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions
makVrv::DtSimObjectEntryCollection< T > Class Template Reference

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

List of all members.

Public Types

typedef std::map< DtUniqueID,
DtSimObjectEntry * > 
SimObjectEntryMap
 Map of unique id's to DtSimObjectEntry's.

Public Member Functions

 DtSimObjectEntryCollection (DtDe &de)
 CTOR.
virtual ~DtSimObjectEntryCollection ()
 DTOR.
size_t size () const
 Return the number of the objects in the container.
const SimObjectEntryMapsimObjectEntryMap () const
 Return the map of DtSimObjectEntry's in this collection.
const DtSimObjectEntryfindSimObjectEntry (DtUniqueID id) const
 Find DtSimEntry by id.

Public Attributes

boost::signal< void(DtSimObjectEntry &)> signal_simObjectEntryAdded
 Signal emitted when a DtSimObjectEntry is added.
boost::signal< void(DtSimObjectEntry &)> signal_simObjectEntryAboutToBeRemoved
 Signal emitted when a DtSimObjectEntry is about to be removed.

Protected Member Functions

void onSimObjectEntryAdded (DtSimObjectEntry &entry)
 Called when a DtSimObjectEntry is added.
void onSimObjectEntryAboutToBeRemoved (DtSimObjectEntry &entry)
 Called when a DtSimObjectEntry is about to be removed.
bool isCompatible (DtSimObjectEntry &entry)
 Returns true if the DtSimEntry contains a state of type T.
void populateFromExistingEntries ()
 Go through existing DtSimEntry's and populate this container.

Protected Attributes

DtDemyDe
SimObjectEntryMap mySimObjectEntryMap

Private Member Functions

 DtSimObjectEntryCollection ()
 Protected CTOR.
 DtSimObjectEntryCollection (const DtSimObjectEntryCollection &)
DtSimObjectEntryCollectionoperator= (const DtSimObjectEntryCollection &)

Detailed Description

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

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


Member Typedef Documentation

Map of unique id's to DtSimObjectEntry's.


Constructor & Destructor Documentation

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

DTOR.

template<class T >
makVrv::DtSimObjectEntryCollection< T >::DtSimObjectEntryCollection ( ) [private]

Protected CTOR.

template<class T >
makVrv::DtSimObjectEntryCollection< T >::DtSimObjectEntryCollection ( const DtSimObjectEntryCollection< T > &  ) [private]

Member Function Documentation

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

Return the number of the objects in the container.

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 >
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 >
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::signal<void (DtSimObjectEntry&)> makVrv::DtSimObjectEntryCollection< T >::signal_simObjectEntryAdded

Signal emitted when a DtSimObjectEntry is added.

Signal emitted when a DtSimObjectEntry is about to be removed.

template<class T >
DtDe& makVrv::DtSimObjectEntryCollection< T >::myDe [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)