template<class T>
class sofa::core::objectmodel::vectorData< T >
A helper class which implements a vector of a variable number of Data
When the owner component is a DataEngine, the Data can be automatically added as inputs or outputs
- Warning
- The first index is 1 in the Data name
- Author
- Thomas Lemaire
- Date
- 2014
|
| vectorData (core::objectmodel::Base *component, std::string const &name, std::string const &help, DataEngineDataType dataEngineDataType=DataEngineDataType::DataEngineNothing, const T &defaultValue=T()) |
| 'dataEngineInOut' is only valid if 'component' is a DataEngine More...
|
|
| ~vectorData () |
|
void | parseSizeData (sofa::core::objectmodel::BaseObjectDescription *arg, Data< unsigned int > &size) |
|
void | parseFieldsSizeData (const std::map< std::string, std::string * > &str, Data< unsigned int > &size) |
|
void | resize (const unsigned int count) |
|
| vector () |
| Basic constructor. More...
|
|
| vector (Size n, const core::objectmodel::Data< T > * &value) |
| Constructor. More...
|
|
| vector (Size n) |
| Constructor. More...
|
|
| vector (const std::vector< core::objectmodel::Data< T > *, Alloc > &x) |
| Constructor. More...
|
|
| vector (const std::initializer_list< core::objectmodel::Data< T > * > &t) |
| Brace initializer constructor. More...
|
|
| vector (std::vector< core::objectmodel::Data< T > *, Alloc > &&v) |
| Move constructor. More...
|
|
| vector (typename vector< core::objectmodel::Data< T > * >::const_iterator first, typename vector< core::objectmodel::Data< T > * >::const_iterator last) |
| Constructor. More...
|
|
vector & | operator= (const std::vector< core::objectmodel::Data< T > *, Alloc > &x) |
| Copy operator. More...
|
|
vector & | operator= (std::vector< core::objectmodel::Data< T > *, Alloc > &&v) |
| Move assignment operator. More...
|
|
reference | operator[] (Size n) |
| Read/write random access. More...
|
|
const_reference | operator[] (Size n) const |
| Read-only random access. More...
|
|
std::ostream & | write (std::ostream &os) const |
|
SOFA_TYPE_API std::ostream & | write (std::ostream &os) const |
|
SOFA_TYPE_API std::ostream & | write (std::ostream &os) const |
| Specialization for writing vectors of unsigned char. More...
|
|
SOFA_TYPE_API std::ostream & | write (std::ostream &os) const |
|
SOFA_TYPE_API std::ostream & | write (std::ostream &os) const |
|
std::istream & | read (std::istream &in) |
|
SOFA_TYPE_API std::istream & | read (std::istream &in) |
|
SOFA_TYPE_API std::istream & | read (std::istream &in) |
|
SOFA_TYPE_API std::istream & | read (std::istream &in) |
|
SOFA_TYPE_API std::istream & | read (std::istream &in) |
| Specialization for reading vectors of int and unsigned int using "A-B" notation for all integers between A and B. More...
|
|
SOFA_TYPE_API std::istream & | read (std::istream &in) |
|
SOFA_TYPE_API std::istream & | read (std::istream &in) |
|
void | fill (const core::objectmodel::Data< T > * &value) |
| Sets every element to 'value'. More...
|
|
void | fastResize (Size n) |
|