![]() |
VR-Forces 4.1 Class Documentation
|
This class creates and provides DtOrgViewManagedObjectList classes. More...
Public Member Functions | |
| DtOrgViewManagedObjectListManager (DtOrganizationView &organizationView) | |
| Constructor. | |
| virtual | ~DtOrgViewManagedObjectListManager () |
| Destructor. | |
| virtual DtOrgViewManagedObjectListConstPtr | getList (const DtEntityIdentifier &aggregateId, const DtVrfObjectPredicate &predicate, bool reevaluateFlag=false, DtTime evaluationPeriod=0.0) |
| Returns a list based on the given predicate which gets evaluated at the given evaluationPeriod. | |
Protected Types | |
| typedef std::list < DtBoost::shared_ptr < DtOrgViewManagedObjectList > > | DtOrgViewManagedObjectListStdList |
Protected Member Functions | |
| virtual void | removeExpiredLists () |
| Removes any expired elements from myLists. | |
| virtual void | tick () |
| calls removeExpiredLists(). | |
| virtual bool | registerTickCallback () |
| Registers tickCallback() with DtSimManager. Returns true on success. | |
Static Protected Member Functions | |
| static void | tickCallback (void *usrData) |
| Tick callback which is registered with SimManager tick callback. | |
Protected Attributes | |
| DtOrganizationView & | myOrgView |
| DtOrgViewManagedObjectListStdList | myLists |
| bool | myTickCallbackRegistered |
This class creates and provides DtOrgViewManagedObjectList classes.
A user of this class requests an object list based on an aggregate and a predicate. A shared pointer to a list is returned. This manager may hand out pointers to the same list to multiple callers for efficiency. The lists are all shared pointers, and are deleted when all references to them go out of scope.
|
protected |
| DtOrgViewManagedObjectListManager::DtOrgViewManagedObjectListManager | ( | DtOrganizationView & | organizationView | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Returns a list based on the given predicate which gets evaluated at the given evaluationPeriod.
Each list returned by getList should be released using releaseList.
|
protectedvirtual |
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.
|
staticprotected |
Tick callback which is registered with SimManager tick callback.
Calls tick().
|
protectedvirtual |
calls removeExpiredLists().
|
protectedvirtual |
Registers tickCallback() with DtSimManager. Returns true on success.
|
protected |
|
protected |
|
protected |