Main MRPT website > C++ reference
MRPT logo
List of all members | Public Types | Public Member Functions
mrpt::mrpt::dynamicsize_vector< T > Struct Template Reference

Detailed Description

template<typename T>
struct mrpt::mrpt::dynamicsize_vector< T >

The base class of MRPT vectors, actually, Eigen column matrices of dynamic size with specialized constructors that resemble std::vector.

Note
For a summary and classification of all MRPT vector, array and matrix classes see: http://www.mrpt.org/Matrices_vectors_arrays_and_Linear_Algebra_MRPT_and_Eigen_classes

Definition at line 101 of file CColouredPointsMap.h.

#include <mrpt/slam/CColouredPointsMap.h>

Inheritance diagram for mrpt::mrpt::dynamicsize_vector< T >:
Inheritance graph
[legend]

Public Types

typedef T value_type
 
typedef Eigen::Matrix< T, Eigen::Dynamic, 1 > Base
 
typedef dynamicsize_vector< T > mrpt_autotype
 

Public Member Functions

 dynamicsize_vector ()
 Default constructor: empty vector. More...
 
 dynamicsize_vector (size_t N)
 Constructor, initializes to a given initial size. More...
 
 dynamicsize_vector (size_t N, T init_val)
 Constructor, initializes to a given initial size, all elements to a given value. More...
 
template<typename R >
 dynamicsize_vector (const std::vector< R > &v)
 Constructor, initializes from a std::vector<> of scalars. More...
 
void resize (const size_t N, const T default_val)
 Overloaded resize method that mimics std::vector::resize(SIZE,DEFAULT_VALUE) instead of resize(nrows,ncols) More...
 
void resize (const size_t N)
 Normal resize of the vector (preserving old contents). More...
 
void clear ()
 Reset the vector to a 0-length. More...
 
void reserve (size_t dummy_size)
 DOES NOTHING (it's here for backward compatibility) More...
 

Member Typedef Documentation

◆ Base

template<typename T>
typedef Eigen::Matrix<T,Eigen::Dynamic,1> mrpt::mrpt::dynamicsize_vector< T >::Base

Definition at line 104 of file CColouredPointsMap.h.

◆ mrpt_autotype

template<typename T>
typedef dynamicsize_vector<T> mrpt::mrpt::dynamicsize_vector< T >::mrpt_autotype

Definition at line 105 of file CColouredPointsMap.h.

◆ value_type

template<typename T>
typedef T mrpt::mrpt::dynamicsize_vector< T >::value_type

Definition at line 103 of file CColouredPointsMap.h.

Constructor & Destructor Documentation

◆ dynamicsize_vector() [1/4]

template<typename T>
mrpt::mrpt::dynamicsize_vector< T >::dynamicsize_vector ( )
inline

Default constructor: empty vector.

Definition at line 109 of file CColouredPointsMap.h.

◆ dynamicsize_vector() [2/4]

template<typename T>
mrpt::mrpt::dynamicsize_vector< T >::dynamicsize_vector ( size_t  N)
inline

Constructor, initializes to a given initial size.

Definition at line 111 of file CColouredPointsMap.h.

◆ dynamicsize_vector() [3/4]

template<typename T>
mrpt::mrpt::dynamicsize_vector< T >::dynamicsize_vector ( size_t  N,
init_val 
)
inline

Constructor, initializes to a given initial size, all elements to a given value.

Definition at line 113 of file CColouredPointsMap.h.

◆ dynamicsize_vector() [4/4]

template<typename T>
template<typename R >
mrpt::mrpt::dynamicsize_vector< T >::dynamicsize_vector ( const std::vector< R > &  v)
inline

Constructor, initializes from a std::vector<> of scalars.

Definition at line 116 of file CColouredPointsMap.h.

Member Function Documentation

◆ clear()

template<typename T>
void mrpt::mrpt::dynamicsize_vector< T >::clear ( void  )
inline

Reset the vector to a 0-length.

Definition at line 122 of file CColouredPointsMap.h.

◆ reserve()

template<typename T>
void mrpt::mrpt::dynamicsize_vector< T >::reserve ( size_t  dummy_size)
inline

DOES NOTHING (it's here for backward compatibility)

Definition at line 124 of file CColouredPointsMap.h.

◆ resize() [1/2]

template<typename T>
void mrpt::mrpt::dynamicsize_vector< T >::resize ( const size_t  N,
const T  default_val 
)
inline

◆ resize() [2/2]

template<typename T>
void mrpt::mrpt::dynamicsize_vector< T >::resize ( const size_t  N)
inline

Normal resize of the vector (preserving old contents).

Definition at line 120 of file CColouredPointsMap.h.




Page generated by Doxygen 1.8.14 for MRPT 1.0.2 SVN: at lun oct 28 00:52:41 CET 2019 Hosted on:
SourceForge.net Logo