OverSim
SimpleCoordDataContainer Class Reference

#include <SimpleCoordDataContainer.h>

Public Types

typedef UNORDERED_MAP
< SimpleCoordinate, int,
SimpleCoordinate::hashFcn
simpleCoordCountMap

Public Member Functions

 SimpleCoordDataContainer ()
 .cc
virtual ~SimpleCoordDataContainer ()
int getBitLength ()
 calculate the size of the coord data map

Public Attributes

simpleCoordCountMap coordData

Detailed Description

Definition at line 95 of file SimpleCoordDataContainer.h.

Member Typedef Documentation

Constructor & Destructor Documentation

SimpleCoordDataContainer::SimpleCoordDataContainer ( )

.cc

Author
Daniel Lienert

Definition at line 26 of file SimpleCoordDataContainer.cc.

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

Definition at line 31 of file SimpleCoordDataContainer.cc.

{
// TODO Auto-generated destructor stub
}

Member Function Documentation

int SimpleCoordDataContainer::getBitLength ( )

calculate the size of the coord data map

Returns
int size in bit

Definition at line 35 of file SimpleCoordDataContainer.cc.

{
int size = 0;
simpleCoordCountMap::const_iterator coordIterator = coordData.begin();
size += sizeof(coordData);
while(coordIterator != coordData.end()) {
size += sizeof(coordIterator->first);
size += sizeof(coordIterator->second);
coordIterator++;
}
return (size*8);
}

Member Data Documentation


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