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

◆ mrpt_autotype

Constructor & Destructor Documentation

◆ CMatrixTemplateSize() [1/2]

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

Definition at line 27 of file CMatrixTemplate.h.

◆ CMatrixTemplateSize() [2/2]

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

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

◆ operator!=()

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

Definition at line 38 of file CMatrixTemplate.h.

◆ operator==()

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

Definition at line 34 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: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020