![]() |
VR-Forces 4.0.4 Class Documentation
|
class DtManagedObjectList: More...
Public Member Functions | |
| DtManagedObjectListManager (DtVrfObjectManager *objectManager) | |
| Constructor. | |
| virtual | ~DtManagedObjectListManager () |
| Destructor. | |
| DtManagedObjectListConstPtr | getList (const DtVrfObjectPredicate &predicate=DtVrfObjectPredicate::nullPredicate(), bool reevaluateFlag=false, DtTime evaluationPeriod=0) |
| Returns a list based on the given predicate which gets evaluated at the given evaluationPeriod. | |
Protected Types | |
| typedef std::list < DtBoost::weak_ptr < DtManagedObjectList > > | DtManagedObjectListStdList |
Protected Member Functions | |
| DtManagedObjectListManager () | |
| Default constructor; do not call. | |
| void | removeExpiredLists () |
| Removes any expired elements from myLists. | |
Protected Attributes | |
| DtVrfObjectManager * | myVrfObjectManager |
| DtManagedObjectListStdList | myLists |
class DtManagedObjectList:
Instances of DtManagedObjectListManager are created and managed by a DtVrfObjectManager. DtManagedObjectLists are automatically recycled and destroyed when they are no longer in use.
typedef std::list<DtBoost::weak_ptr<DtManagedObjectList> > DtManagedObjectListManager::DtManagedObjectListStdList [protected] |
| DtManagedObjectListManager::DtManagedObjectListManager | ( | ) | [protected] |
Default constructor; do not call.
| DtManagedObjectListManager::DtManagedObjectListManager | ( | DtVrfObjectManager * | objectManager | ) |
Constructor.
| virtual DtManagedObjectListManager::~DtManagedObjectListManager | ( | ) | [virtual] |
Destructor.
| DtManagedObjectListConstPtr DtManagedObjectListManager::getList | ( | const DtVrfObjectPredicate & | predicate = DtVrfObjectPredicate::nullPredicate(), |
| bool | reevaluateFlag = false, |
||
| DtTime | evaluationPeriod = 0 |
||
| ) |
Returns a list based on the given predicate which gets evaluated at the given evaluationPeriod.
Lists are returned inside shared pointers. The manager will hand out pointers to the same list to multiple requesters of the same list. The list will be deleted when all shared pointers go out of scope.
| void DtManagedObjectListManager::removeExpiredLists | ( | ) | [protected] |
Removes any expired elements from myLists.
These are elements that no longer have any references outside this class, and have been deleted by shared_ptr.