#include <MatrixTypeInfo.hpp>
Public Member Functions | |
base::AttributeBase * | buildVariable (std::string name, int size) const |
virtual bool | composeTypeImpl (const PropertyBag &bag, typename internal::AssignableDataSource< T >::reference_t result) const |
virtual base::DataSourceBase::shared_ptr | getMember (base::DataSourceBase::shared_ptr item, base::DataSourceBase::shared_ptr id) const |
virtual base::DataSourceBase::shared_ptr | getMember (base::DataSourceBase::shared_ptr item, const std::string &name) const |
MatrixTypeInfo (std::string name) | |
bool | resize (base::DataSourceBase::shared_ptr arg, int size_rows, int size_columns) const |
Template for data types that are C++ STL Sequences with operator[,], rows() and columns() methods.
This class requires that your STL Sequence is compatible with the boost::serialization API. This means that it must provide a serialize() function or that you define a free function serialize() in the boost::serialization namespace.
The matrix is always square !
Definition at line 99 of file MatrixTypeInfo.hpp.
RTT::types::MatrixTypeInfo< T, has_ostream >::MatrixTypeInfo | ( | std::string | name | ) | [inline] |
Definition at line 102 of file MatrixTypeInfo.hpp.
base::AttributeBase* RTT::types::MatrixTypeInfo< T, has_ostream >::buildVariable | ( | std::string | name, | |
int | sizehint | |||
) | const [inline, virtual] |
Build a modifyable instance of this type.
sizehint | For variable size instances, use it to hint the size of the instance. |
Reimplemented from RTT::types::TypeInfo.
Definition at line 107 of file MatrixTypeInfo.hpp.
virtual bool RTT::types::MatrixTypeInfo< T, has_ostream >::composeTypeImpl | ( | const PropertyBag & | bag, | |
typename internal::AssignableDataSource< T >::reference_t | result | |||
) | const [inline, virtual] |
Specialize to resize result given the size of source.
Reimplemented from RTT::types::TemplateTypeInfo< T, has_ostream >.
Definition at line 130 of file MatrixTypeInfo.hpp.
virtual base::DataSourceBase::shared_ptr RTT::types::MatrixTypeInfo< T, has_ostream >::getMember | ( | base::DataSourceBase::shared_ptr | item, | |
base::DataSourceBase::shared_ptr | id | |||
) | const [inline, virtual] |
Returns a member of a given data source struct identified by a data source id.
item | The item of which to return a member | |
id | Or a string data source containing the name of a member if item is a struct, Or an unsigned int data source containing the index of an element if item is a sequence |
Reimplemented from RTT::types::TypeInfo.
Definition at line 215 of file MatrixTypeInfo.hpp.
virtual base::DataSourceBase::shared_ptr RTT::types::MatrixTypeInfo< T, has_ostream >::getMember | ( | base::DataSourceBase::shared_ptr | item, | |
const std::string & | name | |||
) | const [inline, virtual] |
Returns a member of a given data source struct identified by its name.
item | The item of which to return a reference to a member | |
name | The name of a member within item. Is a name of a member in case of a struct or an index number in case of a sequence. |
Reimplemented from RTT::types::TypeInfo.
Definition at line 204 of file MatrixTypeInfo.hpp.
bool RTT::types::MatrixTypeInfo< T, has_ostream >::resize | ( | base::DataSourceBase::shared_ptr | arg, | |
int | size_rows, | |||
int | size_columns | |||
) | const [inline] |
Definition at line 116 of file MatrixTypeInfo.hpp.