53 #ifndef ArrayOfTaggedObjects_h    54 #define ArrayOfTaggedObjects_h    68 #include <utility/tagged/storage/TaggedObjectStorage.h>    69 #include <utility/tagged/storage/ArrayOfTaggedObjectsIter.h>    94     typedef std::vector<TaggedObject *> tagged_vector;
    96     typedef tagged_vector::iterator iterator;
    97     typedef tagged_vector::const_iterator const_iterator;
    98     typedef tagged_vector::reference reference;
    99     typedef tagged_vector::const_reference const_reference;
   100     typedef tagged_vector::value_type value_type;
   103     int sizeComponentArray; 
   104     int positionLastEntry; 
   105     int positionLastNoFitEntry; 
   108     tagged_vector theComponents; 
   112       { 
return theComponents.begin(); }
   114       { 
return theComponents.end(); }
   135     const_iterator begin(
void)
 const   136       { 
return theComponents.begin(); }
   137     const_iterator end(
void)
 const   138       { 
return theComponents.end(); }
   141     virtual void clearAll(
bool invokeDestructor = 
true);
   143     void Print(std::ostream &s, 
int flag =0) 
const;
 ArrayOfTaggedObjects & operator=(const ArrayOfTaggedObjects &)
Assignment operator. 
Definition: ArrayOfTaggedObjects.cpp:116
virtual TaggedObjectStorage * getEmptyCopy(void)
Return an empty copy of the container. 
Definition: ArrayOfTaggedObjects.cpp:421
~ArrayOfTaggedObjects(void)
Destructor. Release memory. 
Definition: ArrayOfTaggedObjects.cpp:131
void Print(std::ostream &s, int flag=0) const
Method which invokes Print on all components. 
Definition: ArrayOfTaggedObjects.cpp:463
An TaggedObjectIter is an iter for returning the Components of an object of class TaggedObjectStorage...
Definition: TaggedObjectIter.h:74
TaggedObject * getComponentPtr(int tag)
Returns a pointer to the object with the given tag. 
Definition: ArrayOfTaggedObjects.cpp:360
int getNumComponents(void) const
Returns the number of components currently stored in the container. 
Definition: ArrayOfTaggedObjects.cpp:345
void clearComponents(void)
Free components memory. 
Definition: ArrayOfTaggedObjects.cpp:69
ArrayOfTaggedObjectsIter getIter(void)
Return a new iterator to the components. 
Definition: ArrayOfTaggedObjects.cpp:406
TaggedObjectIter & getComponents(void)
Reset the iter to point to first component and then return a reference to the iter. 
Definition: ArrayOfTaggedObjects.cpp:399
ArrayOfTaggedObjects(CommandEntity *owr, int size, const std::string &containerName)
Constructor. 
Definition: ArrayOfTaggedObjects.cpp:100
ArrayOfTaggedObjects is a storage class. 
Definition: ArrayOfTaggedObjects.h:92
Objet that can execute python scripts. 
Definition: CommandEntity.h:40
Object idenfied by an integer (tag). 
Definition: TaggedObject.h:92
bool addComponent(TaggedObject *newComponent)
Adds a component to the container. 
Definition: ArrayOfTaggedObjects.cpp:189
Open source finite element program for structural analysis. 
Definition: ContinuaReprComponent.h:35
Array of taggeds objects iterator. 
Definition: ArrayOfTaggedObjectsIter.h:74
virtual void clearAll(bool invokeDestructor=true)
Free memory. 
Definition: ArrayOfTaggedObjects.cpp:437
int setSize(int newSize)
Set the size of the container. 
Definition: ArrayOfTaggedObjects.cpp:146
bool removeComponent(int tag)
Remove the component with the given tag. 
Definition: ArrayOfTaggedObjects.cpp:266