#include <SequenceTypeInfo.hpp>
Public Member Functions | |
base::AttributeBase * | buildVariable (std::string name, int size) const |
virtual bool | composeType (base::DataSourceBase::shared_ptr dssource, base::DataSourceBase::shared_ptr dsresult) const |
virtual base::DataSourceBase::shared_ptr | decomposeType (base::DataSourceBase::shared_ptr source) const |
virtual base::DataSourceBase::shared_ptr | getMember (base::DataSourceBase::shared_ptr item, const std::string &name) const |
virtual base::DataSourceBase::shared_ptr | getMember (base::DataSourceBase::shared_ptr item, base::DataSourceBase::shared_ptr id) const |
virtual std::vector< std::string > | getMemberNames () const |
bool | installTypeInfoObject (TypeInfo *ti) |
virtual bool | resize (base::DataSourceBase::shared_ptr arg, int size) const |
SequenceTypeInfo (std::string name) |
Old-style SequenceTypeInfo which offers type info for sequences which can be sent over flow ports.
Definition at line 17 of file SequenceTypeInfo.hpp.
RTT::types::SequenceTypeInfo< T, has_ostream >::SequenceTypeInfo | ( | std::string | name | ) | [inline] |
Definition at line 21 of file SequenceTypeInfo.hpp.
base::AttributeBase* RTT::types::SequenceTypeInfo< T, has_ostream >::buildVariable | ( | std::string | name, |
int | size | ||
) | const [inline] |
Reimplemented from RTT::types::SequenceTypeInfoBase< T >.
Reimplemented in RTT::types::StdStringTypeInfo, and RTT::types::RTStringTypeInfo.
Definition at line 39 of file SequenceTypeInfo.hpp.
virtual bool RTT::types::SequenceTypeInfo< T, has_ostream >::composeType | ( | base::DataSourceBase::shared_ptr | dssource, |
base::DataSourceBase::shared_ptr | dsresult | ||
) | const [inline, virtual] |
Specialize to resize result given the size of source.
Reimplemented from RTT::types::SequenceTypeInfoBase< T >.
Reimplemented in RTT::types::StdStringTypeInfo, RTT::types::RTStringTypeInfo, RTT::types::StdVectorTemplateTypeInfo< T, has_ostream >, and RTT::types::StdVectorTypeInfo.
Definition at line 44 of file SequenceTypeInfo.hpp.
virtual base::DataSourceBase::shared_ptr RTT::types::SequenceTypeInfo< T, has_ostream >::decomposeType | ( | base::DataSourceBase::shared_ptr | source | ) | const [inline, virtual] |
Use getMember() for decomposition...
Reimplemented from RTT::types::SequenceTypeInfoBase< T >.
Reimplemented in RTT::types::StdStringTypeInfo, and RTT::types::RTStringTypeInfo.
Definition at line 53 of file SequenceTypeInfo.hpp.
virtual base::DataSourceBase::shared_ptr RTT::types::SequenceTypeInfo< 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::MemberFactory.
Definition at line 61 of file SequenceTypeInfo.hpp.
virtual base::DataSourceBase::shared_ptr RTT::types::SequenceTypeInfo< 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 identified by a data source id. This will be an int (for indexing) or a string (for the member name).
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::MemberFactory.
Definition at line 65 of file SequenceTypeInfo.hpp.
virtual std::vector<std::string> RTT::types::SequenceTypeInfo< T, has_ostream >::getMemberNames | ( | ) | const [inline, virtual] |
Returns the list of struct member names of this type. In case this type is not a struct, returns an empty list.
Reimplemented from RTT::types::MemberFactory.
Definition at line 57 of file SequenceTypeInfo.hpp.
bool RTT::types::SequenceTypeInfo< T, has_ostream >::installTypeInfoObject | ( | TypeInfo * | ti | ) | [inline] |
Reimplemented from RTT::types::SequenceTypeInfoBase< T >.
Definition at line 25 of file SequenceTypeInfo.hpp.
virtual bool RTT::types::SequenceTypeInfo< T, has_ostream >::resize | ( | base::DataSourceBase::shared_ptr | arg, |
int | size | ||
) | const [inline, virtual] |
Tries to resize a data source in case it's a resizable sequence.
Reimplemented from RTT::types::MemberFactory.
Definition at line 49 of file SequenceTypeInfo.hpp.