SHAPER
9.12.0
|
Protected Member Functions | |
Field (XAO::Dimension dimension, int nbElements, int nbComponents, const std::string &name) | |
Constructor. More... | |
the name of the field. | |||||||||
Creates a Field of the given type.
| |||||||||
std::string | m_name | ||||||||
The name of the Field. More... | |||||||||
XAO::Dimension | m_dimension | ||||||||
The dimension of the Field. More... | |||||||||
int | m_nbComponents | ||||||||
The number of components. More... | |||||||||
std::vector< std::string > | m_components | ||||||||
The components of the field. More... | |||||||||
int | m_nbElements | ||||||||
The number of elements. More... | |||||||||
std::vector< Step * > | m_steps | ||||||||
The list of steps. More... | |||||||||
void | checkComponent (int component) | ||||||||
void | checkStepIndex (int step) | ||||||||
static Field * | createField (XAO::Type type, XAO::Dimension dimension, int nbElements, int nbComponents, const std::string &name=std::string("")) | ||||||||
virtual | ~Field () | ||||||||
Destructor. More... | |||||||||
virtual XAO::Type | getType ()=0 | ||||||||
Gets the Type of the field. More... | |||||||||
const std::string | getName () const | ||||||||
Gets the name of the Field. More... | |||||||||
void | setName (const std::string &name) | ||||||||
Sets the name of the Field. More... | |||||||||
XAO::Dimension | getDimension () const | ||||||||
Gets the Dimension of the Field. More... | |||||||||
int | countElements () const | ||||||||
Gets the number of elements of each step. More... | |||||||||
int | countComponents () const | ||||||||
Gets the number of components. More... | |||||||||
int | countValues () const | ||||||||
Gets the number of values for each step. More... | |||||||||
int | countSteps () const | ||||||||
Gets the number of the steps. More... | |||||||||
const std::string | getComponentName (int index) | ||||||||
Gets the name of a component. More... | |||||||||
void | setComponentName (int componentIndex, const std::string &name) | ||||||||
Sets the name of a component. More... | |||||||||
void | setComponentsNames (const std::vector< std::string > &names) | ||||||||
Sets the name of the components. More... | |||||||||
virtual Step * | addNewStep (int number)=0 | ||||||||
Adds a new step of the same type than the field. More... | |||||||||
bool | removeStep (Step *step) | ||||||||
Remove a step. More... | |||||||||
bool | hasStep (int step) | ||||||||
Verifies if the field has a step with the given step number. More... | |||||||||
stepIterator | begin () | ||||||||
Returns the first step. More... | |||||||||
stepIterator | end () | ||||||||
Returns the last step. More... | |||||||||
A geometrical Field.
|
protected |
Constructor.
dimension | the dimension of the field. |
nbElements | the number of elements. |
nbComponents | the number of components. |
name | the name of the field. |
|
virtual |
Destructor.
|
pure virtual |
Gets the Type of the field.
Implemented in XAO::StringField, XAO::IntegerField, XAO::DoubleField, and XAO::BooleanField.
|
inline |
|
inline |
Sets the name of the Field.
name | the name to set. |
|
inline |
|
inline |
Gets the number of elements of each step.
|
inline |
Gets the number of components.
|
inline |
Gets the number of values for each step.
|
inline |
Gets the number of the steps.
const std::string Field::getComponentName | ( | int | index | ) |
Gets the name of a component.
index | the index of the component to get. |
void Field::setComponentName | ( | int | componentIndex, |
const std::string & | name | ||
) |
Sets the name of a component.
componentIndex | the index of the component to set. |
name | the name to set. |
void Field::setComponentsNames | ( | const std::vector< std::string > & | names | ) |
Sets the name of the components.
names | the names to set. |
|
pure virtual |
Adds a new step of the same type than the field.
number | the numer of the step. |
Implemented in XAO::StringField, XAO::IntegerField, XAO::DoubleField, and XAO::BooleanField.
bool Field::removeStep | ( | Step * | step | ) |
Remove a step.
step | the step to remove. |
bool Field::hasStep | ( | int | step | ) |
Verifies if the field has a step with the given step number.
step | the step number. |
|
inline |
Returns the first step.
|
inline |
Returns the last step.
|
protected |
The name of the Field.
|
protected |
The dimension of the Field.
|
protected |
The number of components.
|
protected |
The components of the field.
|
protected |
The number of elements.
|
protected |
The list of steps.