Main MRPT website > C++ reference
MRPT logo

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 319 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 322 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 324 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 332 of file CArray.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010