The base class of MRPT vectors, actually, Eigen column matrices of dynamic size with specialized constructors that resemble std::vector.
Definition at line 116 of file base/include/mrpt/utils/types.h.
#include <mrpt/utils/types.h>
Public Types | |
typedef Eigen::Matrix< T, Eigen::Dynamic, 1 > | Base |
typedef dynamicsize_vector< T > | mrpt_autotype |
Public Member Functions | |
dynamicsize_vector () | |
Default constructor: empty vector. | |
dynamicsize_vector (size_t N) | |
Constructor, initializes to a given initial size. | |
dynamicsize_vector (size_t N, T init_val) | |
Constructor, initializes to a given initial size, all elements to a given value. | |
template<typename R > | |
dynamicsize_vector (const std::vector< R > &v) | |
Constructor, initializes from a std::vector<> of scalars. | |
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). | |
void | resize (const size_t N) |
Normal resize of the vector (preserving old contents). | |
void | clear () |
Reset the vector to a 0-length. | |
void | reserve (size_t dummy_size) |
DOES NOTHING (it's here for backward compatibility). |
typedef Eigen::Matrix<T,Eigen::Dynamic,1> mrpt::dynamicsize_vector< T >::Base |
Definition at line 118 of file base/include/mrpt/utils/types.h.
typedef dynamicsize_vector<T> mrpt::dynamicsize_vector< T >::mrpt_autotype |
Definition at line 119 of file base/include/mrpt/utils/types.h.
mrpt::dynamicsize_vector< T >::dynamicsize_vector | ( | ) | [inline] |
Default constructor: empty vector.
Definition at line 123 of file base/include/mrpt/utils/types.h.
mrpt::dynamicsize_vector< T >::dynamicsize_vector | ( | size_t | N | ) | [inline] |
Constructor, initializes to a given initial size.
Definition at line 125 of file base/include/mrpt/utils/types.h.
mrpt::dynamicsize_vector< T >::dynamicsize_vector | ( | size_t | N, | |
T | init_val | |||
) | [inline] |
Constructor, initializes to a given initial size, all elements to a given value.
Definition at line 127 of file base/include/mrpt/utils/types.h.
mrpt::dynamicsize_vector< T >::dynamicsize_vector | ( | const std::vector< R > & | v | ) | [inline] |
Constructor, initializes from a std::vector<> of scalars.
Definition at line 130 of file base/include/mrpt/utils/types.h.
void mrpt::dynamicsize_vector< T >::clear | ( | void | ) | [inline] |
Reset the vector to a 0-length.
Definition at line 136 of file base/include/mrpt/utils/types.h.
void mrpt::dynamicsize_vector< T >::reserve | ( | size_t | dummy_size | ) | [inline] |
DOES NOTHING (it's here for backward compatibility).
Definition at line 138 of file base/include/mrpt/utils/types.h.
void mrpt::dynamicsize_vector< T >::resize | ( | const size_t | N, | |
const T | default_val | |||
) | [inline] |
Overloaded resize method that mimics std::vector::resize(SIZE,DEFAULT_VALUE) instead of resize(nrows,ncols).
Definition at line 132 of file base/include/mrpt/utils/types.h.
Referenced by mrpt::math::TPose3DQuat::getAsVector(), mrpt::math::TPose3D::getAsVector(), mrpt::math::TPoint3D::getAsVector(), mrpt::math::TPose2D::getAsVector(), mrpt::math::TPoint2D::getAsVector(), mrpt::poses::CPoint< CPoint3D >::getAsVector(), mrpt::bayes::CParticleFilterData< CRBPFParticleData >::getWeights(), mrpt::opengl::CPointCloudColoured::loadFromPointsMap(), and mrpt::slam::PF_implementation< PARTICLE_TYPE, MYSELF >::PF_SLAM_implementation_pfAuxiliaryPFStandardAndOptimal().
void mrpt::dynamicsize_vector< T >::resize | ( | const size_t | N | ) | [inline] |
Normal resize of the vector (preserving old contents).
Definition at line 134 of file base/include/mrpt/utils/types.h.
Page generated by Doxygen 1.7.1 for MRPT 0.9.4 SVN: at Mon Jan 10 23:33:19 UTC 2011 |