Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
lvr2::NodeData< BaseVecT > Class Template Reference

#include <NodeData.hpp>

Classes

class  Iterator
 

Public Member Functions

void add (BaseVecT input)
 
void addBuffered (BaseVecT input)
 
void addBufferedNormal (BaseVecT input)
 
void addNormal (BaseVecT input)
 
Iterator begin ()
 
Iterator end ()
 
BaseVecT get (int)
 
size_t getBufferSize ()
 
const string & getDataPath () const
 
const string getFolder () const
 
size_t getMaxWriteBufferSize ()
 
BaseVecT getNormal (int)
 
BaseVecT next ()
 
 NodeData (NodeData &origin)
 
 NodeData (size_t bufferSize)
 
void open (string path)
 
NodeDataoperator= (NodeData &origin)
 
void remove ()
 
void remove (unsigned int i)
 
size_t size ()
 
void writeBuffer ()
 

Static Public Member Functions

static void printTimer ()
 

Private Member Functions

void copy (NodeData &origin)
 
void fillBuffer (size_t start_id)
 
void fillBufferNormal (size_t start_id)
 

Private Attributes

size_t m_bufferSize
 
string m_dataPath
 
string m_dataPathNormal
 
bool m_gotSize
 
int m_id
 
vector< float > m_readBuffer
 
size_t m_readBufferIndex
 
size_t m_readBufferIndexNormal
 
vector< float > m_readBufferNormal
 
size_t m_size
 
vector< float > m_writeBuffer
 
vector< float > m_writeBufferNormal
 

Static Private Attributes

static int c_last_id
 
static time_t c_tstamp
 
static boost::timer::cpu_timer itimer
 
static boost::timer::cpu_timer otimer
 
static bool timer_init
 

Detailed Description

template<typename BaseVecT>
class lvr2::NodeData< BaseVecT >

Class that contains the actual points of a node

Definition at line 52 of file NodeData.hpp.

Constructor & Destructor Documentation

◆ NodeData() [1/2]

template<typename BaseVecT >
lvr2::NodeData< BaseVecT >::NodeData ( size_t  bufferSize)

Constructor

Parameters
bufferSizeamount of points to store in a buffer. when buffersize is reached all points are stored to hdd

◆ NodeData() [2/2]

template<typename BaseVecT >
lvr2::NodeData< BaseVecT >::NodeData ( NodeData< BaseVecT > &  origin)

copy constructor

Parameters
origin
Returns

Member Function Documentation

◆ add()

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::add ( BaseVecT  input)

add a vertex to the data

Parameters
input

◆ addBuffered()

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::addBuffered ( BaseVecT  input)

adds a vertex to buffer

Parameters
input

◆ addBufferedNormal()

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::addBufferedNormal ( BaseVecT  input)

◆ addNormal()

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::addNormal ( BaseVecT  input)

◆ begin()

template<typename BaseVecT >
Iterator lvr2::NodeData< BaseVecT >::begin ( )

Iterator referring to first element

Returns

◆ copy()

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::copy ( NodeData< BaseVecT > &  origin)
private

◆ end()

template<typename BaseVecT >
Iterator lvr2::NodeData< BaseVecT >::end ( )

Returns an iterator referring to the past-the-end element

Returns

◆ fillBuffer()

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::fillBuffer ( size_t  start_id)
private

◆ fillBufferNormal()

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::fillBufferNormal ( size_t  start_id)
private

◆ get()

template<typename BaseVecT >
BaseVecT lvr2::NodeData< BaseVecT >::get ( int  )

gets element at index

Returns

◆ getBufferSize()

template<typename BaseVecT >
size_t lvr2::NodeData< BaseVecT >::getBufferSize ( )

returns amount of poiunts stored in buffer

Returns

◆ getDataPath()

template<typename BaseVecT >
const string& lvr2::NodeData< BaseVecT >::getDataPath ( ) const
inline

returns path where data is stored on hdd

Returns

Definition at line 92 of file NodeData.hpp.

◆ getFolder()

template<typename BaseVecT >
const string lvr2::NodeData< BaseVecT >::getFolder ( ) const
inline

returns path to folder on hdd where data is stored

Returns

Definition at line 98 of file NodeData.hpp.

◆ getMaxWriteBufferSize()

template<typename BaseVecT >
size_t lvr2::NodeData< BaseVecT >::getMaxWriteBufferSize ( )

gets amount of points stored in write buffer

Returns

◆ getNormal()

template<typename BaseVecT >
BaseVecT lvr2::NodeData< BaseVecT >::getNormal ( int  )

◆ next()

template<typename BaseVecT >
BaseVecT lvr2::NodeData< BaseVecT >::next ( )

gets next element

Returns

◆ open()

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::open ( string  path)

sets data path

Parameters
path

◆ operator=()

template<typename BaseVecT >
NodeData& lvr2::NodeData< BaseVecT >::operator= ( NodeData< BaseVecT > &  origin)

assignment operator

Parameters
origin
Returns

◆ printTimer()

template<typename BaseVecT >
static void lvr2::NodeData< BaseVecT >::printTimer ( )
inlinestatic

Definition at line 174 of file NodeData.hpp.

◆ remove() [1/2]

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::remove ( )

removes the data file from hdd

◆ remove() [2/2]

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::remove ( unsigned int  i)

removes element at index i (not implemented)

Parameters
i

◆ size()

template<typename BaseVecT >
size_t lvr2::NodeData< BaseVecT >::size ( )

returns amount of elements stored in data

Returns

◆ writeBuffer()

template<typename BaseVecT >
void lvr2::NodeData< BaseVecT >::writeBuffer ( )

writes buffer to file

Member Data Documentation

◆ c_last_id

template<typename BaseVecT >
int lvr2::NodeData< BaseVecT >::c_last_id
staticprivate

Definition at line 213 of file NodeData.hpp.

◆ c_tstamp

template<typename BaseVecT >
time_t lvr2::NodeData< BaseVecT >::c_tstamp
staticprivate

Definition at line 215 of file NodeData.hpp.

◆ itimer

template<typename BaseVecT >
boost::timer::cpu_timer lvr2::NodeData< BaseVecT >::itimer
staticprivate

Definition at line 54 of file NodeData.hpp.

◆ m_bufferSize

template<typename BaseVecT >
size_t lvr2::NodeData< BaseVecT >::m_bufferSize
private

Definition at line 207 of file NodeData.hpp.

◆ m_dataPath

template<typename BaseVecT >
string lvr2::NodeData< BaseVecT >::m_dataPath
private

Definition at line 188 of file NodeData.hpp.

◆ m_dataPathNormal

template<typename BaseVecT >
string lvr2::NodeData< BaseVecT >::m_dataPathNormal
private

Definition at line 190 of file NodeData.hpp.

◆ m_gotSize

template<typename BaseVecT >
bool lvr2::NodeData< BaseVecT >::m_gotSize
private

Definition at line 192 of file NodeData.hpp.

◆ m_id

template<typename BaseVecT >
int lvr2::NodeData< BaseVecT >::m_id
private

Definition at line 196 of file NodeData.hpp.

◆ m_readBuffer

template<typename BaseVecT >
vector<float> lvr2::NodeData< BaseVecT >::m_readBuffer
private

Definition at line 198 of file NodeData.hpp.

◆ m_readBufferIndex

template<typename BaseVecT >
size_t lvr2::NodeData< BaseVecT >::m_readBufferIndex
private

Definition at line 209 of file NodeData.hpp.

◆ m_readBufferIndexNormal

template<typename BaseVecT >
size_t lvr2::NodeData< BaseVecT >::m_readBufferIndexNormal
private

Definition at line 211 of file NodeData.hpp.

◆ m_readBufferNormal

template<typename BaseVecT >
vector<float> lvr2::NodeData< BaseVecT >::m_readBufferNormal
private

Definition at line 202 of file NodeData.hpp.

◆ m_size

template<typename BaseVecT >
size_t lvr2::NodeData< BaseVecT >::m_size
private

Definition at line 194 of file NodeData.hpp.

◆ m_writeBuffer

template<typename BaseVecT >
vector<float> lvr2::NodeData< BaseVecT >::m_writeBuffer
private

Definition at line 200 of file NodeData.hpp.

◆ m_writeBufferNormal

template<typename BaseVecT >
vector<float> lvr2::NodeData< BaseVecT >::m_writeBufferNormal
private

Definition at line 204 of file NodeData.hpp.

◆ otimer

template<typename BaseVecT >
boost::timer::cpu_timer lvr2::NodeData< BaseVecT >::otimer
staticprivate

Definition at line 55 of file NodeData.hpp.

◆ timer_init

template<typename BaseVecT >
bool lvr2::NodeData< BaseVecT >::timer_init
staticprivate

Definition at line 56 of file NodeData.hpp.


The documentation for this class was generated from the following file:


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:27