Main MRPT website > C++ reference for MRPT 1.5.7
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
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 23 of file CMatrixTemplate.h.

#include <mrpt/math/CMatrixTemplate.h>

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

Public Types

typedef mrpt::utils::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]
 

Member Typedef Documentation

◆ Base

Definition at line 25 of file CMatrixTemplate.h.

◆ const_iterator

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

Definition at line 61 of file CArray.h.

◆ const_reference

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

Definition at line 63 of file CArray.h.

◆ const_reverse_iterator

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

Definition at line 76 of file CArray.h.

◆ difference_type

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

Definition at line 65 of file CArray.h.

◆ iterator

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

Definition at line 60 of file CArray.h.

◆ mrpt_autotype

Definition at line 26 of file CMatrixTemplate.h.

◆ reference

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

Definition at line 62 of file CArray.h.

◆ reverse_iterator

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

Definition at line 75 of file CArray.h.

◆ size_type

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

Definition at line 64 of file CArray.h.

◆ value_type

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

Definition at line 59 of file CArray.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
inherited

Definition at line 116 of file CArray.h.

Constructor & Destructor Documentation

◆ CMatrixTemplateSize() [1/2]

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

Definition at line 28 of file CMatrixTemplate.h.

◆ CMatrixTemplateSize() [2/2]

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

Definition at line 29 of file CMatrixTemplate.h.

Member Function Documentation

◆ assign() [1/3]

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

Definition at line 143 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ assign() [2/3]

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

Definition at line 148 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ assign() [3/3]

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

◆ at() [1/2]

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

◆ at() [2/2]

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

◆ back() [1/2]

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

Definition at line 109 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ back() [2/2]

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

Definition at line 110 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ begin() [1/2]

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

Definition at line 68 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ begin() [2/2]

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

Definition at line 69 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ data() [1/2]

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

Definition at line 130 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ data() [2/2]

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

Definition at line 133 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ empty()

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

Definition at line 114 of file CArray.h.

◆ end() [1/2]

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

Definition at line 70 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ end() [2/2]

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

Definition at line 71 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ front() [1/2]

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

Definition at line 107 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ front() [2/2]

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

Definition at line 108 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ max_size()

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

Definition at line 115 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 34 of file CMatrixTemplate.h.

◆ operator!=()

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

Definition at line 32 of file CMatrixTemplate.h.

◆ operator==()

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

Definition at line 31 of file CMatrixTemplate.h.

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

◆ operator[]() [1/2]

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

Definition at line 99 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

Referenced by operator==().

◆ operator[]() [2/2]

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

Definition at line 100 of file CArray.h.

References mrpt::utils::CArray< T, N >::elems.

◆ rbegin() [1/2]

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

Definition at line 89 of file CArray.h.

References mrpt::utils::CArray< T, N >::end().

◆ rbegin() [2/2]

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

Definition at line 90 of file CArray.h.

References mrpt::utils::CArray< T, N >::end().

◆ rend() [1/2]

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

Definition at line 93 of file CArray.h.

References mrpt::utils::CArray< T, N >::begin().

◆ rend() [2/2]

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

Definition at line 94 of file CArray.h.

References mrpt::utils::CArray< T, N >::begin().

◆ resize()

void mrpt::utils::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 119 of file CArray.h.

References mrpt::format().

◆ size()

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

Definition at line 113 of file CArray.h.

◆ swap()

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

Member Data Documentation

◆ elems

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

Definition at line 55 of file CArray.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019