Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
TaggedObjectStorage Class Reference#include <TaggedObjectStorage.h>
Inheritance diagram for TaggedObjectStorage::
List of all members.
Detailed Description
TaggedObjectStorage is used as a container object to store and provide access to objects of type TaggedObject. Each TaggedObject object stored in a TaggedObjectStorage object must have a unique integer tag to distinguish it from other the other objects stored. The TaggedObjectStorage class is an abstract base class, it just defines the interface all concrete subclasses must provide. The interface defines methods to add and to remove the components, and methods to obtain access to the components. \
}
Definition at line 61 of file TaggedObjectStorage.h.
Constructor & Destructor Documentation
TaggedObjectStorage::TaggedObjectStorage (
|
) [inline]
|
|
TaggedObjectStorage::~TaggedObjectStorage (
|
) [inline, virtual]
|
|
|
Does nothing. Provided so that the concrete subclasses destructor will be invoked. The subclasses destructor is NOT to delete the objects stored in the object. {clearAll()} can be invoked by the programmer if this is required.
Definition at line 75 of file TaggedObjectStorage.h. |
Member Function Documentation
void TaggedObjectStorage::Print (
|
ostream & s,
|
|
int flag = 0 ) [pure virtual]
|
|
bool TaggedObjectStorage::addComponent (
|
TaggedObject * newComponent ) [pure virtual]
|
|
void TaggedObjectStorage::clearAll (
|
bool invokeDestructor = true ) [pure virtual]
|
|
TaggedObject * TaggedObjectStorage::getComponentPtr (
|
int tag ) [pure virtual]
|
|
|
To return a pointer to the TaggedObject whose identifier is given by {tag}. If the object has not been added to the container
is to be returned.
Reimplemented in ArrayOfTaggedObjects.
Referenced by Domain::addElement(), Domain::addElementalLoad(), Domain::addLoadPattern(), Domain::addMP_Constraint(), Domain::addNodalLoad(), Domain::addNode(), Domain::addSP_Constraint(), Domain::getElement(), Domain::getLoadPattern(), Domain::getMP_Constraint(), Domain::getNode(), Domain::getSP_Constraint(), and Graph::getVertexPtr().
|
TaggedObjectIter & TaggedObjectStorage::getComponents (
|
void ) [pure virtual]
|
|
|
To return an iter for iterating through the objects that have been added to the container.
Reimplemented in ArrayOfTaggedObjects. |
TaggedObjectStorage * TaggedObjectStorage::getEmptyCopy (
|
void ) [pure virtual]
|
|
int TaggedObjectStorage::getNumComponents (
|
void ) const [pure virtual]
|
|
TaggedObject * TaggedObjectStorage::removeComponent (
|
int tag ) [pure virtual]
|
|
int TaggedObjectStorage::setSize (
|
int newSize ) [pure virtual]
|
|
The documentation for this class was generated from the following file:
|