SkelGIS  3.0
skelgis::DPMap_vector< DPMapType > Struct Template Reference

DPMap_vector class. More...

#include <dpmap_vector.hpp>

List of all members.

Public Member Functions

 DPMap_vector ()
 default constructor of DMatrix_vector
 ~DPMap_vector ()
 destructor of the DMatrix_vector
void push_back (DPMapType &dp)
 push_back method of the DPMap_vector class
DPMapType operator[] (int n)
 operator [] of DPMap_vector
DPMapType::impl_type * getImpl (unsigned int i)
 get impl of dpmap of DPMap_vector
int size ()
 size method of the DPMap_vector class
void clear ()
 clear method of the DPMap_vector class

Protected Attributes

std::vector< typename
DPMapType::impl_type * > 
data
 std::vector to store pointers on DPMap_Nodes_impl or DPMap_Edges_impl

Detailed Description

template<class DPMapType>
struct skelgis::DPMap_vector< DPMapType >

DPMap_vector class.

Definition at line 16 of file dpmap_vector.hpp.


Member Function Documentation

template<class DPMapType>
void skelgis::DPMap_vector< DPMapType >::clear ( ) [inline]

clear method of the DPMap_vector class

Removes all elements from the DPMap_vector, leaving the container with a size of 0

Definition at line 74 of file dpmap_vector.hpp.

template<class DPMapType>
DPMapType::impl_type* skelgis::DPMap_vector< DPMapType >::getImpl ( unsigned int  i) [inline]

get impl of dpmap of DPMap_vector

directly get what is in the DPMap_vector

Parameters:
iis the index to get
Returns:
Return the DPMap_.._impl

Definition at line 60 of file dpmap_vector.hpp.

template<class DPMapType>
DPMapType skelgis::DPMap_vector< DPMapType >::operator[] ( int  n) [inline]

operator [] of DPMap_vector

Similar to table brackets or to std::vector brackets to access an element of the DPMap_vector

Parameters:
nis the index element to access in the DPMap_vector
Returns:
Returns a pointer to the element at position n in the DPMap_vector.

Definition at line 51 of file dpmap_vector.hpp.

template<class DPMapType>
void skelgis::DPMap_vector< DPMapType >::push_back ( DPMapType &  dp) [inline]

push_back method of the DPMap_vector class

This method add a new DPMap element at the end of the DPMap_vector. It works as the push_back method of the std::vector object.

Parameters:
dpis the new DPMap to add

Definition at line 42 of file dpmap_vector.hpp.

template<class DPMapType>
int skelgis::DPMap_vector< DPMapType >::size ( ) [inline]

size method of the DPMap_vector class

This method returns the size of the DPMap_vector, in other words the number of elements.

Definition at line 67 of file dpmap_vector.hpp.


Member Data Documentation

template<class DPMapType>
std::vector<typename DPMapType::impl_type *> skelgis::DPMap_vector< DPMapType >::data [protected]

std::vector to store pointers on DPMap_Nodes_impl or DPMap_Edges_impl

This is what is actually stored in the DPMap_vector to hide pointers.

Definition at line 24 of file dpmap_vector.hpp.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Defines