OverSim
CoordDataContainer Class Reference

.h More...

#include <CoordDataContainer.h>

Public Member Functions

 CoordDataContainer ()
 .cc
virtual ~CoordDataContainer ()
int getBitLength ()
 calculate the size of the coordinatesVector

Public Attributes

std::vector< std::vector
< double > > 
coordinatesVector

Detailed Description

.h

Author
Daniel Lienert

Definition at line 30 of file CoordDataContainer.h.

Constructor & Destructor Documentation

CoordDataContainer::CoordDataContainer ( )

.cc

Author
Daniel Lienert

Definition at line 26 of file CoordDataContainer.cc.

{
// TODO Auto-generated constructor stub
}
CoordDataContainer::~CoordDataContainer ( )
virtual

Definition at line 31 of file CoordDataContainer.cc.

{
// TODO Auto-generated destructor stub
}

Member Function Documentation

int CoordDataContainer::getBitLength ( )

calculate the size of the coordinatesVector

Returns
int size in bit

Definition at line 35 of file CoordDataContainer.cc.

{
int size = 0;
std::vector<std::vector<double> >::const_iterator vCoordsIterator = coordinatesVector.begin();
std::vector<double>::const_iterator dimIterator;
while(vCoordsIterator != coordinatesVector.end()) {
size += sizeof((*vCoordsIterator));
dimIterator = (*vCoordsIterator).begin();
while(dimIterator != (*vCoordsIterator).end()) {
size += sizeof((*dimIterator));
dimIterator++;
}
vCoordsIterator++;
}
return (size * 8);
}

Member Data Documentation

std::vector<std::vector<double> > CoordDataContainer::coordinatesVector

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