Step with integer values.
More...
#include <XAO_IntegerStep.hxx>
|
| | IntegerStep (int step, int stamp, int nbElements, int nbComponents) |
| | Constructor. More...
|
| |
| virtual XAO::Type | getType () |
| | Gets the type of the step. More...
|
| |
| std::vector< int > | getValues () |
| | Gets all the values of the step as a list. More...
|
| |
| std::vector< int > | getElement (int element) |
| | Gets all the values for a given element. More...
|
| |
| std::vector< int > | getComponent (int component) |
| | Gets all the values for a given component. More...
|
| |
| int | getValue (int element, int component) |
| | Gets the value for an element and a component. More...
|
| |
| void | setValues (const std::vector< int > &values) |
| | Sets all the values from a list. More...
|
| |
| void | setElement (int element, const std::vector< int > &elements) |
| | Sets the values for an element. More...
|
| |
| void | setComponent (int component, const std::vector< int > &components) |
| | Sets the values for a component. More...
|
| |
| void | setValue (int element, int component, int value) |
| | Sets the value for an element and a component. More...
|
| |
| virtual const std::string | getStringValue (int element, int component) |
| | Gets a value as a string. More...
|
| |
| virtual void | setStringValue (int element, int component, const std::string &value) |
| | Sets a value as a string. More...
|
| |
| int | getStep () |
| | Gets the step index. More...
|
| |
| void | setStep (int step) |
| | Sets the number of the step. More...
|
| |
| int | getStamp () |
| | Gets the stamp of the index. More...
|
| |
| void | setStamp (int stamp) |
| | Sets the stamp of the index. More...
|
| |
| int | countComponents () |
| | Gets the number of components of the step. More...
|
| |
| int | countElements () |
| | Gets the number of elements for the step. More...
|
| |
| int | countValues () |
| | Gets the number of values for the step. More...
|
| |
Step with integer values.
◆ IntegerStep()
| IntegerStep::IntegerStep |
( |
int |
step, |
|
|
int |
stamp, |
|
|
int |
nbElements, |
|
|
int |
nbComponents |
|
) |
| |
Constructor.
- Parameters
-
| step | the step number. |
| stamp | the stamp of the step. |
| nbElements | the number elements of the geometry. |
| nbComponents | the number of components of the field. |
◆ getType()
| virtual XAO::Type XAO::IntegerStep::getType |
( |
| ) |
|
|
inlinevirtual |
Gets the type of the step.
- Returns
Implements XAO::Step.
◆ getValues()
| std::vector< int > IntegerStep::getValues |
( |
| ) |
|
Gets all the values of the step as a list.
- Returns
- a vector containing all the values of the step.
◆ getElement()
| std::vector< int > IntegerStep::getElement |
( |
int |
element | ) |
|
Gets all the values for a given element.
- Parameters
-
| element | the index of the element. |
- Returns
- a vector containing all the values for the given element.
◆ getComponent()
| std::vector< int > IntegerStep::getComponent |
( |
int |
component | ) |
|
Gets all the values for a given component.
- Parameters
-
| component | the index of the component. |
- Returns
- a vector containing all the values for the given component.
◆ getValue()
| int IntegerStep::getValue |
( |
int |
element, |
|
|
int |
component |
|
) |
| |
Gets the value for an element and a component.
- Parameters
-
| element | the index of the element. |
| component | the index of the component. |
- Returns
- the value for the given element and component.
◆ setValues()
| void IntegerStep::setValues |
( |
const std::vector< int > & |
values | ) |
|
Sets all the values from a list.
- Parameters
-
| values | the list of values to set. |
◆ setElement()
| void IntegerStep::setElement |
( |
int |
element, |
|
|
const std::vector< int > & |
elements |
|
) |
| |
Sets the values for an element.
- Parameters
-
| element | the index of the element to set. |
| elements | the values to set. |
◆ setComponent()
| void IntegerStep::setComponent |
( |
int |
component, |
|
|
const std::vector< int > & |
components |
|
) |
| |
Sets the values for a component.
- Parameters
-
| component | the index of the component to set. |
| components | the values to set. |
◆ setValue()
| void IntegerStep::setValue |
( |
int |
element, |
|
|
int |
component, |
|
|
int |
value |
|
) |
| |
Sets the value for an element and a component.
- Parameters
-
| element | the index of the element. |
| component | the index of the component. |
| value | the value. |
◆ getStringValue()
| const std::string IntegerStep::getStringValue |
( |
int |
element, |
|
|
int |
component |
|
) |
| |
|
virtual |
Gets a value as a string.
- Parameters
-
| element | the index of the element. |
| component | the index of the component. |
- Returns
- the value as a string.
Implements XAO::Step.
◆ setStringValue()
| void IntegerStep::setStringValue |
( |
int |
element, |
|
|
int |
component, |
|
|
const std::string & |
value |
|
) |
| |
|
virtual |
Sets a value as a string.
- Parameters
-
| element | the index of the element. |
| component | the index of the component. |
| value | the string value. |
- Exceptions
-
Implements XAO::Step.
◆ getStep()
| int XAO::Step::getStep |
( |
| ) |
|
|
inlineinherited |
Gets the step index.
- Returns
- the index of the step.
◆ setStep()
| void XAO::Step::setStep |
( |
int |
step | ) |
|
|
inlineinherited |
Sets the number of the step.
- Parameters
-
◆ getStamp()
| int XAO::Step::getStamp |
( |
| ) |
|
|
inlineinherited |
Gets the stamp of the index.
- Returns
- the stamp of the index.
◆ setStamp()
| void XAO::Step::setStamp |
( |
int |
stamp | ) |
|
|
inlineinherited |
Sets the stamp of the index.
- Parameters
-
◆ countComponents()
| int XAO::Step::countComponents |
( |
| ) |
|
|
inlineinherited |
Gets the number of components of the step.
- Returns
- the number of components.
◆ countElements()
| int XAO::Step::countElements |
( |
| ) |
|
|
inlineinherited |
Gets the number of elements for the step.
- Returns
- the number of elements.
◆ countValues()
| int XAO::Step::countValues |
( |
| ) |
|
|
inlineinherited |
Gets the number of values for the step.
- Returns
- the number of values.
◆ checkElementIndex()
| void Step::checkElementIndex |
( |
int |
element | ) |
|
|
protectedinherited |
Checks that given element index is in the range of element indexes.
- Parameters
-
| element | the index to check. |
◆ checkComponentIndex()
| void Step::checkComponentIndex |
( |
int |
component | ) |
|
|
protectedinherited |
Checks that given component index is in the range of component indexes.
- Parameters
-
| component | the index to check. |
◆ checkNbElements()
| void Step::checkNbElements |
( |
int |
nbElements | ) |
|
|
protectedinherited |
Checks that the given number of elements is correct.
- Parameters
-
| nbElements | the number of elements to check. |
◆ checkNbComponents()
| void Step::checkNbComponents |
( |
int |
nbComponents | ) |
|
|
protectedinherited |
Checks that the given number of components is correct.
- Parameters
-
| nbComponents | the number of components to check. |
◆ checkNbValues()
| void Step::checkNbValues |
( |
int |
nbValues | ) |
|
|
protectedinherited |
checks that the given number of values is correct.
- Parameters
-
| nbValues | the number of values to check. |
◆ m_step
◆ m_stamp
◆ m_nbComponents
| int XAO::Step::m_nbComponents |
|
protectedinherited |
The number of components.
◆ m_nbElements
| int XAO::Step::m_nbElements |
|
protectedinherited |