67 virtual bool setIndex(
const unsigned int);
104 std::vector <StructuralComponent *>
mySCs;
126 std::vector <StructuralComponent *>::iterator it = std::find(
mySCs.begin(),
mySCs.end(), sc);
127 if (it !=
mySCs.end())
132 #endif // STRUCTURE_H
virtual bool setIndex(const unsigned int)
set the index.
StructuralComponent * getStructuralComponent(unsigned int i)
get a particular StructuralComponent that is using this structure
Definition: Structure.h:115
Pure virtual class that represent an element of the structure.
Definition: Structure.h:43
unsigned int getNumberOfStructuralComponents() const
get the number of StructuralComponent that are using this structure
Definition: Structure.h:112
unsigned int getIndex() const
get the structure unique index (stored in its property)
virtual void xmlPrint(std::ostream &, const StructuralComponent *)=0
print to an output stream in "pseaudo" XML format.
void removeStructuralComponent(StructuralComponent *)
remove a particular StructuralComponent from the list
Definition: Structure.h:125
StructureProperties * properties
Property of the current structure.
Definition: Structure.h:99
virtual ~Structure()
Virtual destructor needed here as this is an abstract class (pure virtual)
Definition: Structure.h:48
StructureProperties::GeometricType getType() const
get the type of index
std::vector< StructuralComponent * > getAllStructuralComponents()
get the list of all the StructuralComponent that are using this structure
Definition: Structure.h:109
This is the main class of this project.
Definition: PhysicalModel.h:74
Describes the properties common to all structures.
Definition: StructureProperties.h:38
Structure()
Base constructor.
Definition: Structure.h:46
GeometricType
Geometric type gives information about which kind of geometric representation is the structure...
Definition: StructureProperties.h:107
string(REGEX REPLACE"^.*-(.*)-.*""\\1"ARCH"${CAMITK_CONTINUOUS_INTEGRATION}") string(REGEX REPLACE"^.*-.*-(.*)""\\1"BUILDTYPE"$
Definition: continuous.cmake:34
A structural component is composed either by cell or by atoms.
Definition: StructuralComponent.h:48
void setName(std::string)
set the name of the structure
virtual void setPhysicalModel(PhysicalModel *)
set the physical model
void addStructuralComponent(StructuralComponent *)
add a particular StructuralComponent in the list
Definition: Structure.h:121
virtual bool isInstanceOf(const char *) const =0
pure virtual method, implemented in the child-class
std::vector< StructuralComponent * > mySCs
list of StructuralComponent that are using this structure
Definition: Structure.h:104
std::string getName() const
get the name of the structure