Polygon Crucher SDK - Documentation
Documentation
Loading...
Searching...
No Matches
CAssociationCollector< MAPTYPE, ASSOCTYPE, SIZETYPE > Class Template Reference

This collector is to used when you know that the collecting process does not involves duplicate pairs in the CAssociationMap. More...

Detailed Description

template<class MAPTYPE, class ASSOCTYPE, class SIZETYPE>
class CAssociationCollector< MAPTYPE, ASSOCTYPE, SIZETYPE >

This collector is to used when you know that the collecting process does not involves duplicate pairs in the CAssociationMap.

It is quicker to build than CSingleAssociationCollector which verify that the value has not already been inserted. Once build the collector can be used to build a CAssociationMap which is a very compact way to store the association data

#include <AssociationMap.h>

Classes

struct  CollectorEntry
 

Public Types

typedef struct CAssociationCollector::CollectorEntry CollectorEntry
 
typedef CXArray< CollectorEntryCollectorArray
 
typedef CHashMap< MAPTYPE, const MAPTYPE &, unsigned intCollectorMap
 

Public Member Functions

 CAssociationCollector (int elementNbr=0, int collectorGrowMode=CollectorArray::GROW_DOUBLE_SIZE)
 
void Add (const MAPTYPE &key, const ASSOCTYPE &assoc)
 
void Add (const CollectorEntry &entry)
 

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