Step with integer values.
#include <XAO_IntegerStep.hxx>

Public Member Functions | |
| 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... | |
Public Member Functions inherited from XAO::Step | |
| virtual | ~Step () |
| Destructor. More... | |
| virtual XAO::Type | getType ()=0 |
| Gets the type of the step. 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... | |
| virtual const std::string | getStringValue (int element, int component)=0 |
| Gets a value as a string. More... | |
| virtual void | setStringValue (int element, int component, const std::string &value)=0 |
| Sets a value as a string. More... | |
Private Attributes | |
| std::vector< std::vector< int > > | m_values |
Additional Inherited Members | |
Protected Member Functions inherited from XAO::Step | |
| Step () | |
| Default constructor. More... | |
| void | checkElementIndex (int element) |
| Checks that given element index is in the range of element indexes. More... | |
| void | checkComponentIndex (int component) |
| Checks that given component index is in the range of component indexes. More... | |
| void | checkNbElements (int nbElements) |
| Checks that the given number of elements is correct. More... | |
| void | checkNbComponents (int nbComponents) |
| Checks that the given number of components is correct. More... | |
| void | checkNbValues (int nbValues) |
| checks that the given number of values is correct. More... | |
Protected Attributes inherited from XAO::Step | |
| int | m_step |
| the index of the step. More... | |
| int | m_stamp |
| The stamp of the step. More... | |
| int | m_nbComponents |
| The number of components. More... | |
| int | m_nbElements |
| The number of elements. More... | |
| IntegerStep::IntegerStep | ( | int | step, |
| int | stamp, | ||
| int | nbElements, | ||
| int | nbComponents | ||
| ) |
| 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. |
References XAO::Step::m_nbComponents, XAO::Step::m_nbElements, XAO::Step::m_stamp, XAO::Step::m_step, and m_values.
| std::vector< int > IntegerStep::getComponent | ( | int | component | ) |
| component | the index of the component. |
References XAO::Step::checkComponentIndex(), XAO::Step::m_nbElements, and m_values.
| std::vector< int > IntegerStep::getElement | ( | int | element | ) |
| element | the index of the element. |
References XAO::Step::checkElementIndex(), and m_values.
|
virtual |
| element | the index of the element. |
| component | the index of the component. |
Implements XAO::Step.
References getValue(), and XAO::XaoUtils::intToString().
|
inlinevirtual |
| int IntegerStep::getValue | ( | int | element, |
| int | component | ||
| ) |
| element | the index of the element. |
| component | the index of the component. |
References XAO::Step::checkComponentIndex(), XAO::Step::checkElementIndex(), and m_values.
| std::vector< int > IntegerStep::getValues | ( | ) |
References XAO::Step::m_nbComponents, XAO::Step::m_nbElements, and m_values.
| void IntegerStep::setComponent | ( | int | component, |
| const std::vector< int > & | components | ||
| ) |
| component | the index of the component to set. |
| components | the values to set. |
References XAO::Step::checkElementIndex(), XAO::Step::checkNbElements(), XAO::Step::m_nbElements, and m_values.
| void IntegerStep::setElement | ( | int | element, |
| const std::vector< int > & | elements | ||
| ) |
| element | the index of the element to set. |
| elements | the values to set. |
References XAO::Step::checkElementIndex(), XAO::Step::checkNbComponents(), XAO::Step::m_nbComponents, and m_values.
|
virtual |
| element | the index of the element. |
| component | the index of the component. |
| value | the string value. |
| XAO_Exception | if the value is not valid. |
Implements XAO::Step.
References setValue(), and XAO::XaoUtils::stringToInt().
| void IntegerStep::setValue | ( | int | element, |
| int | component, | ||
| int | value | ||
| ) |
| element | the index of the element. |
| component | the index of the component. |
| value | the value. |
References XAO::Step::checkComponentIndex(), XAO::Step::checkElementIndex(), and m_values.
| void IntegerStep::setValues | ( | const std::vector< int > & | values | ) |
| values | the list of values to set. |
References XAO::Step::checkNbValues(), XAO::Step::m_nbComponents, XAO::Step::m_nbElements, and m_values.
|
private |