MRPT logo
Public Member Functions

mrpt::math::CArrayPOD< T, N > Class Template Reference

A CArray for Plain Old Datatypes (POD), that is, int's, double's, etc or struct's with only PODs. More...

#include <mrpt/math/CArray.h>

Inheritance diagram for mrpt::math::CArrayPOD< T, N >:
Inheritance graph
[legend]
Collaboration diagram for mrpt::math::CArrayPOD< T, N >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CArrayPOD ()
 Default constructor.
 CArrayPOD (const T *ptr)
 Constructor from initial values ptr[0]-ptr[N-1].
template<class ARRAYLIKE >
 CArrayPOD (const ARRAYLIKE &obj)
 Initialization from a vector-like source, that is, anything implementing operator[].

Detailed Description

template<typename T, std::size_t N>
class mrpt::math::CArrayPOD< T, N >

A CArray for Plain Old Datatypes (POD), that is, int's, double's, etc or struct's with only PODs.

Many methods are defined in this class that assume that each element of the array is simple so it can be, for example, copied with memcpy(), so only use this class to store POD types.

See also:
CArrayNumeric, CArray

Definition at line 318 of file CArray.h.


Constructor & Destructor Documentation

template<typename T, std::size_t N>
mrpt::math::CArrayPOD< T, N >::CArrayPOD (  )  [inline]

Default constructor.

Definition at line 321 of file CArray.h.

template<typename T, std::size_t N>
mrpt::math::CArrayPOD< T, N >::CArrayPOD ( const T *  ptr  )  [inline]

Constructor from initial values ptr[0]-ptr[N-1].

Definition at line 323 of file CArray.h.

template<typename T, std::size_t N>
template<class ARRAYLIKE >
mrpt::math::CArrayPOD< T, N >::CArrayPOD ( const ARRAYLIKE &  obj  )  [inline, explicit]

Initialization from a vector-like source, that is, anything implementing operator[].

Definition at line 331 of file CArray.h.




Page generated by Doxygen 1.7.1 for MRPT 0.8.1 SVN:exported at Sun Sep 19 14:53:45 UTC 2010