MercuryDPM
0.10
|
Container to store all BaseBoundary. More...
#include <BoundaryHandler.h>
Public Member Functions | |
void | addObject (BaseBoundary *P) |
Adds a BaseBoundary to the BoundaryHandler. More... | |
void | readObject (std::istream &is) |
Reads BaseBoundary into the BoundaryHandler from restart data. More... | |
![]() | |
BaseHandler () | |
Default BaseHandler constructor, it simply creates an empty BaseHandler. More... | |
BaseHandler (const BaseHandler< BaseBoundary > &BH) | |
Copy constructor, it copies the BaseHandler and all Object it contains. More... | |
virtual | ~BaseHandler () |
Assignment operator. More... | |
void | copyAndAddObject (const BaseBoundary &O) |
Creates a copy of a Object and adds it to the BaseHandler. More... | |
void | copyAndAddObject (const BaseBoundary *O) |
Creates a copy of a Object and adds it to the BaseHandler. More... | |
virtual void | removeObject (unsigned const int id) |
Removes a Object from the BaseHandler. More... | |
void | removeLastObject () |
Removes the last Object from the BaseHandler. More... | |
void | clear () |
Empties the whole BaseHandler by removing all Object. More... | |
BaseBoundary * | getObject (const unsigned int id) const |
Gets a pointer to the Object at the specified index in the BaseHandler. More... | |
BaseBoundary * | getLastObject () const |
Gets a pointer to the last Object in this BaseHandler. More... | |
unsigned int | getNumberOfObjects () const |
Gets the number of Object in this BaseHandler. More... | |
unsigned int | getStorageCapacity () const |
Gets the storage capacity of this BaseHandler. More... | |
void | setStorageCapacity (const unsigned int N) |
Sets the storage capacity of this BaseHandler. More... | |
const std::vector < BaseBoundary * > ::const_iterator | begin () const |
Gets the begin of the const_iterator over all Object in this BaseHandler. More... | |
const std::vector < BaseBoundary * >::iterator | begin () |
Gets the begin of the iterator over all BaseBoundary in this BaseHandler. More... | |
const std::vector < BaseBoundary * > ::const_iterator | end () const |
Gets the end of the const_iterator over all BaseBoundary in this BaseHandler. More... | |
const std::vector < BaseBoundary * >::iterator | end () |
Gets the end of the iterator over all BaseBoundary in this BaseHandler. More... | |
Container to store all BaseBoundary.
The BoundaryHandler is a container to store all BaseBoundary. It is implemented by a vector of pointers to BaseBoundary.
Definition at line 35 of file BoundaryHandler.h.
|
virtual |
Adds a BaseBoundary to the BoundaryHandler.
[in] | P | A pointer to the BaseBoundary (or derived class) that has to be added. |
Reimplemented from BaseHandler< BaseBoundary >.
Definition at line 38 of file BoundaryHandler.cc.
References BaseHandler< T >::addObject(), BaseHandler< BaseBoundary >::getLastObject(), and BaseBoundary::setHandler().
|
virtual |
Reads BaseBoundary into the BoundaryHandler from restart data.
[in] | is | The input stream from which the information is read. |
Implements BaseHandler< BaseBoundary >.
Definition at line 47 of file BoundaryHandler.cc.
References BaseHandler< BaseBoundary >::copyAndAddObject().
Referenced by MD::read(), MD::read_v1(), and MD::read_v2().