VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions
DtVrfSubordinateManager Class Reference
Inheritance diagram for DtVrfSubordinateManager:
Inheritance graph
[legend]

Public Member Functions

 DtVrfSubordinateManager (const DtSimManager *vrfObjectManager)
 Constructor. More...
 
 DtVrfSubordinateManager (const DtVrfSubordinateManager &orig)
 Copy Constructor. More...
 
const DtVrfSubordinateManageroperator= (const DtVrfSubordinateManager &orig)
 Assignment Operator. More...
 
virtual ~DtVrfSubordinateManager ()
 Destructor. More...
 
virtual DtSubordinateManagerclone () const
 Creates a new manager calling the copy constructor and returns the result. More...
 
virtual const DtVrfObjectfirstVrfSubordinate () const
 
virtual const DtVrfObjectlastVrfSubordinate () const
 
virtual const DtVrfObjectfirstVrfHealthySubordinate () const
 
DtKeyedVrfObjectIterator vrfIterator () const
 Allocates and returns an iterator to iterate over this subObject list. More...
 
- Public Member Functions inherited from DtSubordinateManager
 DtSubordinateManager (const DtSimManager *simObjectManager)
 Constructor. More...
 
 DtSubordinateManager (const DtSubordinateManager &orig)
 Copy Constructor. More...
 
const DtSubordinateManageroperator= (const DtSubordinateManager &orig)
 Assignment Operator. More...
 
virtual ~DtSubordinateManager ()
 Destructor. More...
 
virtual bool addSubordinate (const DtVrfObject *subordinate, int designator=0)
 All adding subordinate calls will fail if the specified designator is already in use. More...
 
virtual bool addSubordinateBefore (const DtVrfObject *subordinate, const DtVrfObject *beforeObject, int designator=0)
 If designator is 0 will call resetDesignatorsToSubordinateOrder as a side effect. More...
 
virtual bool addSubordinateAfter (const DtVrfObject *subordinate, const DtVrfObject *afterObject, int designator=0)
 note that if the afterObject is not found, the object is added to the end of the list. More...
 
virtual void removeSubordinate (const DtVrfObject *subordinate)
 Removes given object as a subordinate. More...
 
virtual void removeAllSubordinates ()
 note that if the beforeObject is not found, the object is added to the end of the list More...
 
virtual int numSubordinates () const
 Returns the number of subrodinates managed by this object. More...
 
virtual void resetDesignatorsToSubordinateOrder ()
 Given the current subordinate order, reset all designators given the order. More...
 
virtual DtSharedVrfObjectReference firstSubordinate () const
 useful to be able to get the first or last in the list without needed to spawn an iterator. More...
 
virtual DtSharedVrfObjectReference lastSubordinate () const
 
virtual bool isSubordinate (const DtEntityIdentifier &id) const
 Returns true if this object is listed in this subordinate manager. More...
 
virtual bool isSubordinate (const DtVrfObject *simObj) const
 
DtKeyedVrfObjectIterator iterator () const
 allocates and returns an iterator to iterate over this subObject list. More...
 
virtual int designatorForSubordinate (const DtVrfObject *subordinate) const
 Returns the designator number for a subordinate in the list. More...
 
virtual int designatorForSubordinate (const DtEntityIdentifier &id) const
 
virtual DtSharedVrfObjectReference subordinateForDesignator (int designator) const
 Returns the subordinate with a particular designator. More...
 
virtual bool setDesignator (const DtEntityIdentifier &id, int designator)
 Sets the designator of a subordinate to the specified value. More...
 
virtual bool setDesignator (const DtVrfObject *subordinate, int designator)
 
virtual int firstAvailableDesignator (int start=1) const
 Returns the lowest unused designator. More...
 
virtual int maxUsedDesignator () const
 Returns the highest used designator. More...
 
virtual void reorderToDesignatorOrder ()
 Causes the order of the subordinate list to be in ascending designator order. More...
 
virtual void designatorOrderedList (std::vector< DtEntityIdentifier > &designatorOrderedList) const
 Returns list of DtEntityIdentifiers, ordered from lowest to highest designator. More...
 
virtual void setSubordinateOrder (const std::vector< DtEntityIdentifier > &orderedList)
 Removes all subordinates from the subordinate manager and then adds new subordinates in the order given by orderedList. More...
 
virtual void addSubordinatesChangedCallback (DtSubordinateManagerCallbackFcn fcn, void *userData)
 Registers callback for notification of any change to the subordinates (addition, removal, reordering). More...
 
virtual void removeSubordinatesChangedCallback (DtSubordinateManagerCallbackFcn fcn, void *userData)
 Removes callback for notification of any change to the subordinates (addition, removal, reordering). More...
 
virtual int nextAvailableDesignator (int cur=0) const
 Returns the highest next designator based on the designator table and the current designator assigned. More...
 

Private Member Functions

 DtVrfSubordinateManager ()
 Default Constructor. Not Implemented. More...
 

Additional Inherited Members

- Protected Member Functions inherited from DtSubordinateManager
void copySubordinateList (const DtList &list)
 
void emptySubordinateList ()
 
DtListItem * findSubordinateItem (const DtEntityIdentifier &id) const
 Searches the list for a given entity id. More...
 
virtual void invokeSubordinatesChangedCallbacks () const
 
- Protected Attributes inherited from DtSubordinateManager
const DtSimManagermySimObjectManager
 
DtList mySubordinateList
 The list of entity id's is kept since order is important. More...
 
DtEntityIdIntAssociationList myDesignatorTable
 The table of entity id's and designators is used to associate a designator with each entity. More...
 
std::vector
< DtSubordinateManagerCallbackInfo
mySubordinatesChangedCallbackList
 List of DtSubordinateCallbackFcn*s. More...
 

Constructor & Destructor Documentation

DtVrfSubordinateManager::DtVrfSubordinateManager ( )
private

Default Constructor. Not Implemented.

DtVrfSubordinateManager::DtVrfSubordinateManager ( const DtSimManager vrfObjectManager)

Constructor.

DtVrfSubordinateManager::DtVrfSubordinateManager ( const DtVrfSubordinateManager orig)

Copy Constructor.

virtual DtVrfSubordinateManager::~DtVrfSubordinateManager ( )
virtual

Destructor.

Member Function Documentation

const DtVrfSubordinateManager& DtVrfSubordinateManager::operator= ( const DtVrfSubordinateManager orig)

Assignment Operator.

virtual DtSubordinateManager* DtVrfSubordinateManager::clone ( ) const
virtual

Creates a new manager calling the copy constructor and returns the result.

Reimplemented from DtSubordinateManager.

virtual const DtVrfObject* DtVrfSubordinateManager::firstVrfSubordinate ( ) const
virtual
virtual const DtVrfObject* DtVrfSubordinateManager::lastVrfSubordinate ( ) const
virtual
virtual const DtVrfObject* DtVrfSubordinateManager::firstVrfHealthySubordinate ( ) const
virtual
DtKeyedVrfObjectIterator DtVrfSubordinateManager::vrfIterator ( ) const

Allocates and returns an iterator to iterate over this subObject list.


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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)