Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | 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 25 of file CMatrixTemplate.h.

#include <mrpt/math/CMatrixTemplate.h>

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

Public Types

typedef std::array< size_t, 2 > Base
 
typedef CMatrixTemplateSize mrpt_autotype
 

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...
 

Public Attributes

elements
 STL member. More...
 

Member Typedef Documentation

◆ Base

typedef std::array<size_t, 2> mrpt::math::CMatrixTemplateSize::Base

Definition at line 27 of file CMatrixTemplate.h.

◆ mrpt_autotype

Definition at line 28 of file CMatrixTemplate.h.

Constructor & Destructor Documentation

◆ CMatrixTemplateSize() [1/2]

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

Definition at line 30 of file CMatrixTemplate.h.

◆ CMatrixTemplateSize() [2/2]

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

Definition at line 31 of file CMatrixTemplate.h.

Member Function Documentation

◆ 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 47 of file CMatrixTemplate.h.

◆ operator!=()

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

Definition at line 41 of file CMatrixTemplate.h.

◆ operator==()

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

Definition at line 37 of file CMatrixTemplate.h.

References mrpt::utils::operator[]().

Here is the call graph for this function:

Member Data Documentation

◆ elements

T std::array< T >::elements
inherited

STL member.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019