88 const std::vector<BaseWall*>::const_iterator
begin()
const;
91 const std::vector<BaseWall*>::iterator
begin();
94 const std::vector<BaseWall*>::const_iterator
end()
const;
97 const std::vector<BaseWall*>::iterator
end();
unsigned int getStorageCapacity() const
Gets the storage capacity of this WallHandler.
void readWall(std::istream &is)
Reads BaseWall into the WallHandler from restart data.
std::vector< BaseWall * > walls_
The actual list of Wall pointers.
void setStorageCapacity(const unsigned int N)
Sets the storage capacity of this WallHandler.
BaseWall * getLastWall() const
Gets a pointer to the last BaseWall in this WallHandler.
void removeLastWall()
Removes the last BaseWall from the WallHandler.
const std::vector< BaseWall * >::const_iterator begin() const
Gets the begin of the const_iterator over all BaseWall in this WallHandler.
const std::vector< BaseWall * >::const_iterator end() const
Gets the end of the const_iterator over all BaseWall in this WallHandler.
void copyAndAddWall(const BaseWall &B)
Creates a copy of a BaseWall and adds it to the WallHandler.
unsigned int getNumberOfWalls() const
Gets the number of BaseWalls in this WallHandler.
WallHandler()
Default WallHandler constructor, it simply creates an empty WallHandler.
void addWall(BaseWall *W)
Adds a new BaseWall to the WallHandler.
Container to store all BaseWall.
WallHandler operator=(const WallHandler &rhs)
Assigns one WallHandler to another WallHandler.
~WallHandler()
Destructor, it simply destructs the WallHandler and all BaseWall it contains.
BaseWall * getWall(const unsigned int id) const
Gets a pointer to the BaseWall at the specified index in the WallHandler.
void clear()
Empties the whole WallHandler by removing all BaseWall.
void removeWall(unsigned const int id)
Removes a BaseWall from the WallHandler.