Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Member Functions
mrpt::math::CMatrixTemplateSize Struct Reference

Detailed Description

Auxiliary class used in CMatrixTemplate:size(), CMatrixTemplate::resize(), CMatrixFixedNumeric::size(), CMatrixFixedNumeric::resize(), to mimic the behavior of STL-containers.

Definition at line 304 of file CArray.h.

#include <mrpt/math/CArray.h>

Inheritance diagram for mrpt::math::CMatrixTemplateSize:
Inheritance graph

Public Types

typedef CArray< size_t, 2 > Base
 
typedef CMatrixTemplateSize mrpt_autotype
 
enum  
 
typedef size_t value_type
 
typedef size_t * iterator
 
typedef const size_t * const_iterator
 
typedef size_t & reference
 
typedef const size_t & const_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 

Public Member Functions

 CMatrixTemplateSize ()
 
 CMatrixTemplateSize (const size_t *d)
 
bool operator== (const CMatrixTemplateSize &o) const
 
bool operator!= (const CMatrixTemplateSize &o) const
 
 operator size_t (void) const
 This operator allows the size(N,M) to be compared with a plain size_t N*M
More...
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
reference operator[] (size_type i)
 
const_reference operator[] (size_type i) const
 
reference at (size_type i)
 
const_reference at (size_type i) const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
void resize (const size_t nElements)
 This method has no effects in this class, but raises an exception if the expected size does not match. More...
 
void swap (CArray< size_t, N > &y)
 
const size_t * data () const
 
size_t * data ()
 
void assign (const size_t &value)
 
void assign (const size_t n, const size_t &value)
 
void assign (I b, const I &e)
 

Static Public Member Functions

static size_type size ()
 
static bool empty ()
 
static size_type max_size ()
 

Public Attributes

size_t elems [N]
 

Static Private Member Functions

static void rangecheck (size_type i)
 

Member Typedef Documentation

◆ Base

Definition at line 306 of file CArray.h.

◆ const_iterator

typedef const size_t * mrpt::math::CArray< size_t , N >::const_iterator
inherited

Definition at line 63 of file CArray.h.

◆ const_reference

typedef const size_t & mrpt::math::CArray< size_t , N >::const_reference
inherited

Definition at line 65 of file CArray.h.

◆ const_reverse_iterator

typedef std::reverse_iterator<const_iterator> mrpt::math::CArray< size_t , N >::const_reverse_iterator
inherited

Definition at line 78 of file CArray.h.

◆ difference_type

typedef std::ptrdiff_t mrpt::math::CArray< size_t , N >::difference_type
inherited

Definition at line 67 of file CArray.h.

◆ iterator

typedef size_t * mrpt::math::CArray< size_t , N >::iterator
inherited

Definition at line 62 of file CArray.h.

◆ mrpt_autotype

Definition at line 307 of file CArray.h.

◆ reference

typedef size_t & mrpt::math::CArray< size_t , N >::reference
inherited

Definition at line 64 of file CArray.h.

◆ reverse_iterator

typedef std::reverse_iterator<iterator> mrpt::math::CArray< size_t , N >::reverse_iterator
inherited

Definition at line 77 of file CArray.h.

◆ size_type

typedef std::size_t mrpt::math::CArray< size_t , N >::size_type
inherited

Definition at line 66 of file CArray.h.

◆ value_type

typedef size_t mrpt::math::CArray< size_t , N >::value_type
inherited

Definition at line 61 of file CArray.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited

Definition at line 118 of file CArray.h.

Constructor & Destructor Documentation

◆ CMatrixTemplateSize() [1/2]

mrpt::math::CMatrixTemplateSize::CMatrixTemplateSize ( )
inline

Definition at line 309 of file CArray.h.

◆ CMatrixTemplateSize() [2/2]

mrpt::math::CMatrixTemplateSize::CMatrixTemplateSize ( const size_t *  d)
inline

Definition at line 310 of file CArray.h.

Member Function Documentation

◆ assign() [1/3]

void mrpt::math::CArray< size_t , N >::assign ( const size_t &  value)
inlineinherited

Definition at line 145 of file CArray.h.

◆ assign() [2/3]

void mrpt::math::CArray< size_t , N >::assign ( const size_t  n,
const size_t &  value 
)
inlineinherited

Definition at line 150 of file CArray.h.

◆ assign() [3/3]

void mrpt::math::CArray< size_t , N >::assign ( b,
const I &  e 
)
inlineinherited

Definition at line 159 of file CArray.h.

◆ at() [1/2]

reference mrpt::math::CArray< size_t , N >::at ( size_type  i)
inlineinherited

Definition at line 105 of file CArray.h.

◆ at() [2/2]

const_reference mrpt::math::CArray< size_t , N >::at ( size_type  i) const
inlineinherited

Definition at line 106 of file CArray.h.

◆ back() [1/2]

reference mrpt::math::CArray< size_t , N >::back ( )
inlineinherited

Definition at line 111 of file CArray.h.

◆ back() [2/2]

const_reference mrpt::math::CArray< size_t , N >::back ( ) const
inlineinherited

Definition at line 112 of file CArray.h.

◆ begin() [1/2]

iterator mrpt::math::CArray< size_t , N >::begin ( )
inlineinherited

Definition at line 70 of file CArray.h.

◆ begin() [2/2]

const_iterator mrpt::math::CArray< size_t , N >::begin ( ) const
inlineinherited

Definition at line 71 of file CArray.h.

◆ data() [1/2]

size_t * mrpt::math::CArray< size_t , N >::data ( )
inlineinherited

Definition at line 135 of file CArray.h.

◆ data() [2/2]

const size_t * mrpt::math::CArray< size_t , N >::data ( ) const
inlineinherited

Definition at line 132 of file CArray.h.

◆ empty()

static bool mrpt::math::CArray< size_t , N >::empty ( )
inlinestaticinherited

Definition at line 116 of file CArray.h.

◆ end() [1/2]

iterator mrpt::math::CArray< size_t , N >::end ( )
inlineinherited

Definition at line 72 of file CArray.h.

◆ end() [2/2]

const_iterator mrpt::math::CArray< size_t , N >::end ( ) const
inlineinherited

Definition at line 73 of file CArray.h.

◆ front() [1/2]

reference mrpt::math::CArray< size_t , N >::front ( )
inlineinherited

Definition at line 109 of file CArray.h.

◆ front() [2/2]

const_reference mrpt::math::CArray< size_t , N >::front ( ) const
inlineinherited

Definition at line 110 of file CArray.h.

◆ max_size()

static size_type mrpt::math::CArray< size_t , N >::max_size ( )
inlinestaticinherited

Definition at line 117 of file CArray.h.

◆ operator size_t()

mrpt::math::CMatrixTemplateSize::operator size_t ( void  ) const
inline

This operator allows the size(N,M) to be compared with a plain size_t N*M

Definition at line 315 of file CArray.h.

◆ operator!=()

bool mrpt::math::CMatrixTemplateSize::operator!= ( const CMatrixTemplateSize o) const
inline

Definition at line 313 of file CArray.h.

◆ operator==()

bool mrpt::math::CMatrixTemplateSize::operator== ( const CMatrixTemplateSize o) const
inline

Definition at line 312 of file CArray.h.

References mrpt::math::CArray< size_t, 2 >::operator[]().

◆ operator[]() [1/2]

reference mrpt::math::CArray< size_t , N >::operator[] ( size_type  i)
inlineinherited

Definition at line 101 of file CArray.h.

◆ operator[]() [2/2]

const_reference mrpt::math::CArray< size_t , N >::operator[] ( size_type  i) const
inlineinherited

Definition at line 102 of file CArray.h.

◆ rangecheck()

static void mrpt::math::CArray< size_t , N >::rangecheck ( size_type  i)
inlinestaticprivateinherited

Definition at line 168 of file CArray.h.

◆ rbegin() [1/2]

reverse_iterator mrpt::math::CArray< size_t , N >::rbegin ( )
inlineinherited

Definition at line 91 of file CArray.h.

◆ rbegin() [2/2]

const_reverse_iterator mrpt::math::CArray< size_t , N >::rbegin ( ) const
inlineinherited

Definition at line 92 of file CArray.h.

◆ rend() [1/2]

reverse_iterator mrpt::math::CArray< size_t , N >::rend ( )
inlineinherited

Definition at line 95 of file CArray.h.

◆ rend() [2/2]

const_reverse_iterator mrpt::math::CArray< size_t , N >::rend ( ) const
inlineinherited

Definition at line 96 of file CArray.h.

◆ resize()

void mrpt::math::CArray< size_t , N >::resize ( const size_t  nElements)
inlineinherited

This method has no effects in this class, but raises an exception if the expected size does not match.

Definition at line 121 of file CArray.h.

◆ size()

static size_type mrpt::math::CArray< size_t , N >::size ( )
inlinestaticinherited

Definition at line 115 of file CArray.h.

◆ swap()

void mrpt::math::CArray< size_t , N >::swap ( CArray< size_t , N > &  y)
inlineinherited

Definition at line 127 of file CArray.h.

Member Data Documentation

◆ elems

size_t mrpt::math::CArray< size_t , N >::elems[N]
inherited

Definition at line 57 of file CArray.h.




Page generated by Doxygen 1.9.5 for MRPT 1.4.0 SVN: at Sun Nov 27 02:47:40 UTC 2022