Public Member Functions
RTT::types::SequenceTypeInfo< T, has_ostream > Class Template Reference

#include <SequenceTypeInfo.hpp>

Inheritance diagram for RTT::types::SequenceTypeInfo< T, has_ostream >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

base::AttributeBasebuildVariable (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)

Detailed Description

template<class T, bool has_ostream = false>
class RTT::types::SequenceTypeInfo< T, has_ostream >

Old-style SequenceTypeInfo which offers type info for sequences which can be sent over flow ports.

Definition at line 17 of file SequenceTypeInfo.hpp.


Constructor & Destructor Documentation

template<class T, bool has_ostream = false>
RTT::types::SequenceTypeInfo< T, has_ostream >::SequenceTypeInfo ( std::string  name) [inline]

Definition at line 21 of file SequenceTypeInfo.hpp.


Member Function Documentation

template<class T, bool has_ostream = false>
base::AttributeBase* RTT::types::SequenceTypeInfo< T, has_ostream >::buildVariable ( std::string  name,
int  size 
) const [inline]
template<class T, bool has_ostream = false>
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.

template<class T, bool has_ostream = false>
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.

template<class T, bool has_ostream = false>
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.

Parameters:
itemThe item of which to return a reference to a member
nameThe 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.
Returns:
null if no such member exists, an assignable datasource referencing that member otherwise.

Reimplemented from RTT::types::MemberFactory.

Definition at line 61 of file SequenceTypeInfo.hpp.

template<class T, bool has_ostream = false>
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).

Warning:
Currently this only works for a SequenceTypeInfo-like object. We don't implement this for StructTypeInfo-like objects, since that would be a very expensive implementation (memory wise).
Parameters:
itemThe item of which to return a member
idOr 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.

template<class T, bool has_ostream = false>
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.

template<class T, bool has_ostream = false>
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.

template<class T, bool has_ostream = false>
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.

Returns:
true if the resizing could be done, false otherwise.

Reimplemented from RTT::types::MemberFactory.

Definition at line 49 of file SequenceTypeInfo.hpp.


The documentation for this class was generated from the following file:


rtt
Author(s): RTT Developers
autogenerated on Fri Sep 9 2016 04:02:20