40 #ifdef CONSTUCTOR_OUTPUT
41 std::cout <<
"WallHandler::WallHandler() finished" << std::endl;
49 for (std::vector<BaseWall*>::const_iterator it=WH.
begin();it!=WH.
end();it++)
53 #ifdef CONSTUCTOR_OUTPUT
54 std::cout <<
"WallHandler::WallHandler(const WallHandler &WH) finished" << std::endl;
64 for (std::vector<BaseWall*>::const_iterator it=rhs.
begin();it!=rhs.
end();it++)
69 #ifdef OPERATOR_OUTPUT
70 std::cout <<
"WallHandler WallHandler::operator = (const WallHandler& rhs) finished" << std::endl;
78 #ifdef DESTRUCTOR_OUTPUT
79 std::cout <<
"WallHandler::~WallHandler() finished" << std::endl;
137 if(type.compare(
"CylindricalWall")==0)
143 else if(type.compare(
"FiniteAxisSymmetricWall")==0)
146 is>>finiteAxisSymmetricWall;
149 else if(type.compare(
"FiniteWall")==0)
155 else if(type.compare(
"InfiniteWall")==0)
161 else if(type.compare(
"InfiniteWallWithHole")==0)
164 is>>infiniteWallWithHole;
167 else if(type.compare(
"Screw")==0)
173 else if(type.compare(
"Coil")==0)
180 else if(type.compare(
"numFiniteWalls")==0)
183 is >> numFiniteWalls;
184 if (numFiniteWalls) {
186 is>>finiteWallInstance;
190 is>>infiniteWallInstance;
196 std::cerr<<
"Wall type: "<<type<<
" not understood in restart file"<<std::endl;
211 std::cerr<<
"In: BaseWall* WallHandler::getWall(const unsigned int id) const"<<std::endl;
212 std::cerr<<
"No BaseWall exist with index "<<
id<<
" maximum index is "<<
getNumberOfWalls()<<std::endl;
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.
This function defines a archimedes screw in the z-direction from a (constant) starting point...
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.
This is a class defining walls.
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.
This function defines a coil in the z-direction from a (constant) starting point, a (constant) length...
virtual BaseWall * copy() const =0
void clear()
Empties the whole WallHandler by removing all BaseWall.
This is a class defining walls.
void removeWall(unsigned const int id)
Removes a BaseWall from the WallHandler.