#include <carray.hpp>
Public Types | |
typedef T | value_type |
typedef T | value_type |
Public Member Functions | |
value_type * | address () const |
value_type * | address () const |
carray (boost::serialization::array< T > const &orig) | |
carray () | |
carray (value_type *t, std::size_t s) | |
carray (boost::serialization::array< T > const &orig) | |
carray () | |
carray (value_type *t, std::size_t s) | |
std::size_t | count () const |
std::size_t | count () const |
Private Attributes | |
std::size_t | m_element_count |
value_type * | m_t |
Wraps a C array such that we can return a C array from a DataSource. Inspired on boost::serialization::array.
Default copy-constructible and assignable. An assignment makes a 'shallow copy', all copies refer to the same C array.
You can also point to parts of arrays. An uninitialized carray object returns null for both count() and address().
T | The data type of the array. |
Definition at line 64 of file install/include/rtt/types/carray.hpp.
typedef T RTT::types::carray< T >::value_type |
Definition at line 67 of file rtt/types/carray.hpp.
typedef T RTT::types::carray< T >::value_type |
Definition at line 67 of file install/include/rtt/types/carray.hpp.
RTT::types::carray< T >::carray | ( | value_type * | t, | |
std::size_t | s | |||
) | [inline] |
Create an C array wrapper.
t | Pointer to first element of array. | |
s | Length of array. If zero, the parameter t will be ignored. |
Definition at line 75 of file install/include/rtt/types/carray.hpp.
RTT::types::carray< T >::carray | ( | ) | [inline] |
Definition at line 80 of file install/include/rtt/types/carray.hpp.
RTT::types::carray< T >::carray | ( | boost::serialization::array< T > const & | orig | ) | [inline] |
We are constructible from boost::serialization::array<T>
orig |
Definition at line 86 of file install/include/rtt/types/carray.hpp.
RTT::types::carray< T >::carray | ( | value_type * | t, | |
std::size_t | s | |||
) | [inline] |
Create an C array wrapper.
t | Pointer to first element of array. | |
s | Length of array. If zero, the parameter t will be ignored. |
Definition at line 75 of file rtt/types/carray.hpp.
RTT::types::carray< T >::carray | ( | ) | [inline] |
Definition at line 80 of file rtt/types/carray.hpp.
RTT::types::carray< T >::carray | ( | boost::serialization::array< T > const & | orig | ) | [inline] |
We are constructible from boost::serialization::array<T>
orig |
Definition at line 86 of file rtt/types/carray.hpp.
value_type* RTT::types::carray< T >::address | ( | ) | const [inline] |
The address of the first element of the array
Definition at line 96 of file rtt/types/carray.hpp.
value_type* RTT::types::carray< T >::address | ( | ) | const [inline] |
The address of the first element of the array
Definition at line 96 of file install/include/rtt/types/carray.hpp.
std::size_t RTT::types::carray< T >::count | ( | ) | const [inline] |
Definition at line 104 of file rtt/types/carray.hpp.
std::size_t RTT::types::carray< T >::count | ( | ) | const [inline] |
Definition at line 104 of file install/include/rtt/types/carray.hpp.
std::size_t RTT::types::carray< T >::m_element_count [private] |
Definition at line 111 of file install/include/rtt/types/carray.hpp.
value_type * RTT::types::carray< T >::m_t [private] |
Definition at line 110 of file install/include/rtt/types/carray.hpp.