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

#include <mrpt/math/CMatrixTemplate.h>

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

Public Types

using Base = std::array< size_t, 2 >
 
using mrpt_autotype = CMatrixTemplateSize
 

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

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

Definition at line 26 of file CMatrixTemplate.h.

◆ mrpt_autotype

Definition at line 27 of file CMatrixTemplate.h.

Constructor & Destructor Documentation

◆ CMatrixTemplateSize() [1/2]

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

Definition at line 29 of file CMatrixTemplate.h.

◆ CMatrixTemplateSize() [2/2]

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

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

◆ operator!=()

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

Definition at line 40 of file CMatrixTemplate.h.

◆ operator==()

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

Definition at line 36 of file CMatrixTemplate.h.

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

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: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019