#include <DataPtr.h>


Public Member Functions | |
| DataPtr (T *t, const char *h, bool isDisplayed=true) | |
| Constructor. | |
| virtual | ~DataPtr () |
| void | printValue (std::ostream &out) const |
| General case for printing default value. | |
| std::string | getValueString () const |
| General case for printing default value. | |
| std::string | getValueTypeString () const |
| Print the value type of the associated variable. | |
| T * | beginEdit () |
| void | endEdit () |
| void | setPointer (T *p) |
| void | setValue (const T &value) |
| const T & | getValue () const |
| virtual bool | read (std::string &s) |
| Try to read argument value from an input stream. | |
| template<> | |
| bool | read (std::string &str) |
| Read the command line. | |
| template<> | |
| bool | read (std::string &str) |
| Read the command line. | |
Protected Attributes | |
| T * | ptr |
| Pointer to the parameter. | |
Definition at line 58 of file DataPtr.h.
| sofa::core::objectmodel::DataPtr< T >::DataPtr | ( | T * | t, | |
| const char * | h, | |||
| bool | isDisplayed = true | |||
| ) | [inline] |
| virtual sofa::core::objectmodel::DataPtr< T >::~DataPtr | ( | ) | [inline, virtual] |
| T* sofa::core::objectmodel::DataPtr< T >::beginEdit | ( | ) | [inline] |
Reimplemented in sofa::core::objectmodel::VDataPtr< DataTypes >, and sofa::core::objectmodel::XDataPtr< DataTypes >.
Definition at line 78 of file DataPtr.h.
Referenced by sofa::component::forcefield::TetrahedronFEMForceField< DataTypes >::init(), sofa::component::forcefield::TetrahedralCorotationalFEMForceField< DataTypes >::init(), sofa::component::constraint::PrecomputedConstraintCorrection< TDataTypes >::init(), sofa::component::behaviormodel::eulerianfluid::Fluid3D::init(), sofa::component::behaviormodel::eulerianfluid::Fluid2D::init(), and sofa::core::objectmodel::DataPtr< Coord::value_type >::setValue().
| void sofa::core::objectmodel::DataPtr< T >::endEdit | ( | ) | [inline] |
Definition at line 83 of file DataPtr.h.
Referenced by sofa::core::objectmodel::DataPtr< Coord::value_type >::setValue().
| const T& sofa::core::objectmodel::DataPtr< T >::getValue | ( | ) | const [inline] |
Definition at line 94 of file DataPtr.h.
Referenced by sofa::component::behaviormodel::eulerianfluid::Fluid3D::getNx(), sofa::component::behaviormodel::eulerianfluid::Fluid2D::getNx(), sofa::component::behaviormodel::eulerianfluid::Fluid3D::getNy(), sofa::component::behaviormodel::eulerianfluid::Fluid2D::getNy(), and sofa::component::behaviormodel::eulerianfluid::Fluid3D::getNz().
| std::string sofa::core::objectmodel::DataPtr< T >::getValueString | ( | ) | const [inline, virtual] |
General case for printing default value.
Implements sofa::core::objectmodel::BaseData.
Definition at line 167 of file DataPtr.h.
References sofa::core::objectmodel::DataPtr< T >::ptr.
| std::string sofa::core::objectmodel::DataPtr< T >::getValueTypeString | ( | ) | const [inline, virtual] |
Print the value type of the associated variable.
Implements sofa::core::objectmodel::BaseData.
Definition at line 176 of file DataPtr.h.
References sofa::core::objectmodel::DataPtr< T >::ptr, and sofa::core::objectmodel::BaseData::typeName().
| void sofa::core::objectmodel::DataPtr< T >::printValue | ( | std::ostream & | out = std::cout |
) | const [inline, virtual] |
General case for printing default value.
Implements sofa::core::objectmodel::BaseData.
Definition at line 159 of file DataPtr.h.
References sofa::core::objectmodel::DataPtr< T >::ptr.
| bool sofa::core::objectmodel::DataPtr< bool >::read | ( | std::string & | str | ) | [inline, virtual] |
| bool sofa::core::objectmodel::DataPtr< std::string >::read | ( | std::string & | str | ) | [inline, virtual] |
Read the command line.
Implements sofa::core::objectmodel::BaseData.
Definition at line 131 of file DataPtr.h.
References sofa::core::objectmodel::BaseData::m_isSet, and sofa::core::objectmodel::DataPtr< T >::ptr.
| virtual bool sofa::core::objectmodel::DataPtr< T >::read | ( | std::string & | s | ) | [inline, virtual] |
Try to read argument value from an input stream.
Return false if failed
Implements sofa::core::objectmodel::BaseData.
| void sofa::core::objectmodel::DataPtr< T >::setPointer | ( | T * | p | ) | [inline] |
| void sofa::core::objectmodel::DataPtr< T >::setValue | ( | const T & | value | ) | [inline] |
Definition at line 89 of file DataPtr.h.
Referenced by sofa::component::forcefield::TetrahedronFEMForceField< DataTypes >::setComputeGlobalMatrix(), sofa::component::forcefield::TetrahedralCorotationalFEMForceField< DataTypes >::setComputeGlobalMatrix(), sofa::component::behaviormodel::eulerianfluid::Fluid3D::setNx(), sofa::component::behaviormodel::eulerianfluid::Fluid2D::setNx(), sofa::component::behaviormodel::eulerianfluid::Fluid3D::setNy(), sofa::component::behaviormodel::eulerianfluid::Fluid2D::setNy(), sofa::component::behaviormodel::eulerianfluid::Fluid3D::setNz(), sofa::component::forcefield::TetrahedronFEMForceField< DataTypes >::setUpdateStiffnessMatrix(), and sofa::component::forcefield::TetrahedralCorotationalFEMForceField< DataTypes >::setUpdateStiffnessMatrix().
T* sofa::core::objectmodel::DataPtr< T >::ptr [protected] |
Pointer to the parameter.
Definition at line 122 of file DataPtr.h.
Referenced by sofa::core::objectmodel::DataPtr< Coord::value_type >::beginEdit(), sofa::core::objectmodel::DataPtr< Coord::value_type >::getValue(), sofa::core::objectmodel::DataPtr< T >::getValueString(), sofa::core::objectmodel::DataPtr< T >::getValueTypeString(), sofa::core::objectmodel::DataPtr< T >::printValue(), sofa::core::objectmodel::DataPtr< T >::read(), sofa::core::objectmodel::DataPtr< Coord::value_type >::read(), and sofa::core::objectmodel::DataPtr< Coord::value_type >::setPointer().
1.5.7.1