#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 (size_t bufferSize) | |
NodeData (NodeData &origin) | |
void | open (string path) |
NodeData & | operator= (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 |
Class that contains the actual points of a node
Definition at line 52 of file NodeData.hpp.
lvr2::NodeData< BaseVecT >::NodeData | ( | size_t | bufferSize | ) |
Constructor
bufferSize | amount of points to store in a buffer. when buffersize is reached all points are stored to hdd |
lvr2::NodeData< BaseVecT >::NodeData | ( | NodeData< BaseVecT > & | origin | ) |
copy constructor
origin |
void lvr2::NodeData< BaseVecT >::add | ( | BaseVecT | input | ) |
add a vertex to the data
input |
void lvr2::NodeData< BaseVecT >::addBuffered | ( | BaseVecT | input | ) |
adds a vertex to buffer
input |
void lvr2::NodeData< BaseVecT >::addBufferedNormal | ( | BaseVecT | input | ) |
void lvr2::NodeData< BaseVecT >::addNormal | ( | BaseVecT | input | ) |
Iterator lvr2::NodeData< BaseVecT >::begin | ( | ) |
Iterator referring to first element
|
private |
Iterator lvr2::NodeData< BaseVecT >::end | ( | ) |
Returns an iterator referring to the past-the-end element
|
private |
|
private |
BaseVecT lvr2::NodeData< BaseVecT >::get | ( | int | ) |
gets element at index
size_t lvr2::NodeData< BaseVecT >::getBufferSize | ( | ) |
returns amount of poiunts stored in buffer
|
inline |
|
inline |
returns path to folder on hdd where data is stored
Definition at line 98 of file NodeData.hpp.
size_t lvr2::NodeData< BaseVecT >::getMaxWriteBufferSize | ( | ) |
gets amount of points stored in write buffer
BaseVecT lvr2::NodeData< BaseVecT >::getNormal | ( | int | ) |
BaseVecT lvr2::NodeData< BaseVecT >::next | ( | ) |
gets next element
void lvr2::NodeData< BaseVecT >::open | ( | string | path | ) |
sets data path
path |
NodeData& lvr2::NodeData< BaseVecT >::operator= | ( | NodeData< BaseVecT > & | origin | ) |
assignment operator
origin |
|
inlinestatic |
Definition at line 174 of file NodeData.hpp.
void lvr2::NodeData< BaseVecT >::remove | ( | ) |
removes the data file from hdd
void lvr2::NodeData< BaseVecT >::remove | ( | unsigned int | i | ) |
removes element at index i (not implemented)
i |
size_t lvr2::NodeData< BaseVecT >::size | ( | ) |
returns amount of elements stored in data
void lvr2::NodeData< BaseVecT >::writeBuffer | ( | ) |
writes buffer to file
|
staticprivate |
Definition at line 213 of file NodeData.hpp.
|
staticprivate |
Definition at line 215 of file NodeData.hpp.
|
staticprivate |
Definition at line 54 of file NodeData.hpp.
|
private |
Definition at line 207 of file NodeData.hpp.
|
private |
Definition at line 188 of file NodeData.hpp.
|
private |
Definition at line 190 of file NodeData.hpp.
|
private |
Definition at line 192 of file NodeData.hpp.
|
private |
Definition at line 196 of file NodeData.hpp.
|
private |
Definition at line 198 of file NodeData.hpp.
|
private |
Definition at line 209 of file NodeData.hpp.
|
private |
Definition at line 211 of file NodeData.hpp.
|
private |
Definition at line 202 of file NodeData.hpp.
|
private |
Definition at line 194 of file NodeData.hpp.
|
private |
Definition at line 200 of file NodeData.hpp.
|
private |
Definition at line 204 of file NodeData.hpp.
|
staticprivate |
Definition at line 55 of file NodeData.hpp.
|
staticprivate |
Definition at line 56 of file NodeData.hpp.