OverSim
RegionDataContainer Class Reference

#include <RegionDataContainer.h>

Public Member Functions

 RegionDataContainer ()
 .cc
virtual ~RegionDataContainer ()
int getBitLength ()
 calculate the size of the region data map

Public Attributes

regionCountMap regionData

Detailed Description

Definition at line 36 of file RegionDataContainer.h.

Constructor & Destructor Documentation

RegionDataContainer::RegionDataContainer ( )

.cc

Author
Daniel Lienert

Definition at line 26 of file RegionDataContainer.cc.

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

Definition at line 32 of file RegionDataContainer.cc.

{
// TODO Auto-generated destructor stub
}

Member Function Documentation

int RegionDataContainer::getBitLength ( )

calculate the size of the region data map

Returns
int size in bit

Definition at line 37 of file RegionDataContainer.cc.

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

Member Data Documentation

regionCountMap RegionDataContainer::regionData

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