A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::PairArray< KeyType, ValueType > Class Template Reference

#include <PairArray.h>

+ Inheritance diagram for pdb::PairArray< KeyType, ValueType >:
+ Collaboration diagram for pdb::PairArray< KeyType, ValueType >:

Public Member Functions

 PairArray ()
 
 PairArray (uint32_t numSlots)
 
 PairArray (const PairArray &copyFromMe)
 
 ~PairArray ()
 
void setUpAndCopyFrom (void *target, void *source) const
 
void deleteObject (void *deleteMe)
 
size_t getSize (void *forMe)
 
Handle< PairArray< KeyType,
ValueType > > 
doubleArray ()
 
ValueType & operator[] (const KeyType &which)
 
bool isOverFull ()
 
uint32_t numUsedSlots ()
 
int count (const KeyType &which)
 
void setUnused (const KeyType &clearMe)
 
void setDisableDestructor (bool disableOrNot)
 
bool isDestructorDisabled ()
 
- Public Member Functions inherited from pdb::Object
void setVTablePtr (void *setToMe)
 
void * getVTablePtr ()
 

Private Attributes

PDBTemplateBase keyTypeInfo
 
PDBTemplateBase valueTypeInfo
 
uint32_t objSize
 
uint32_t valueOffset
 
uint32_t usedSlots
 
uint32_t numSlots
 
uint32_t maxSlots
 
Nothing data [0]
 
bool disableDestructor
 

Friends

template<class KeyTwo , class ValueTwo >
class PDBMapIterator
 

Additional Inherited Members

- Static Public Member Functions inherited from pdb::Object
static void * operator new (size_t sz, const std::nothrow_t &tag)
 
static void * operator new (size_t sz)
 
static void operator delete (void *me)
 
static void * operator new (std::size_t count, void *ptr)
 

Detailed Description

template<class KeyType, class ValueType>
class pdb::PairArray< KeyType, ValueType >

Definition at line 36 of file PairArray.h.

Constructor & Destructor Documentation

template<class KeyType , class ValueType >
pdb::PairArray< KeyType, ValueType >::PairArray ( )

Definition at line 435 of file PairArray.cc.

+ Here is the call graph for this function:

template<class KeyType , class ValueType >
pdb::PairArray< KeyType, ValueType >::PairArray ( uint32_t  numSlots)

Definition at line 397 of file PairArray.cc.

+ Here is the call graph for this function:

template<class KeyType , class ValueType >
pdb::PairArray< KeyType, ValueType >::PairArray ( const PairArray< KeyType, ValueType > &  copyFromMe)

Definition at line 230 of file PairArray.cc.

template<class KeyType , class ValueType >
pdb::PairArray< KeyType, ValueType >::~PairArray ( )

Definition at line 461 of file PairArray.cc.

Member Function Documentation

template<class KeyType , class ValueType >
int pdb::PairArray< KeyType, ValueType >::count ( const KeyType &  which)

Definition at line 235 of file PairArray.cc.

+ Here is the call graph for this function:

template<class KeyType , class ValueType >
void pdb::PairArray< KeyType, ValueType >::deleteObject ( void *  deleteMe)
virtual

Reimplemented from pdb::Object.

Definition at line 526 of file PairArray.cc.

+ Here is the call graph for this function:

template<class KeyType , class ValueType >
Handle< PairArray< KeyType, ValueType > > pdb::PairArray< KeyType, ValueType >::doubleArray ( )

Definition at line 490 of file PairArray.cc.

template<class KeyType , class ValueType >
size_t pdb::PairArray< KeyType, ValueType >::getSize ( void *  forMe)
virtual

Reimplemented from pdb::Object.

Definition at line 531 of file PairArray.cc.

template<class KeyType , class ValueType >
bool pdb::PairArray< KeyType, ValueType >::isDestructorDisabled ( )

Definition at line 124 of file PairArray.cc.

template<class KeyType , class ValueType >
bool pdb::PairArray< KeyType, ValueType >::isOverFull ( )

Definition at line 430 of file PairArray.cc.

template<class KeyType , class ValueType >
uint32_t pdb::PairArray< KeyType, ValueType >::numUsedSlots ( )

Definition at line 521 of file PairArray.cc.

template<class KeyType , class ValueType >
ValueType & pdb::PairArray< KeyType, ValueType >::operator[] ( const KeyType &  which)

Definition at line 325 of file PairArray.cc.

+ Here is the call graph for this function:

template<class KeyType , class ValueType >
void pdb::PairArray< KeyType, ValueType >::setDisableDestructor ( bool  disableOrNot)

Definition at line 118 of file PairArray.cc.

+ Here is the caller graph for this function:

template<class KeyType , class ValueType >
void pdb::PairArray< KeyType, ValueType >::setUnused ( const KeyType &  clearMe)

Definition at line 276 of file PairArray.cc.

+ Here is the call graph for this function:

template<class KeyType , class ValueType >
void pdb::PairArray< KeyType, ValueType >::setUpAndCopyFrom ( void *  target,
void *  source 
) const
virtual

Reimplemented from pdb::Object.

Definition at line 131 of file PairArray.cc.

+ Here is the call graph for this function:

Friends And Related Function Documentation

template<class KeyType, class ValueType>
template<class KeyTwo , class ValueTwo >
friend class PDBMapIterator
friend

Definition at line 131 of file PairArray.h.

Member Data Documentation

template<class KeyType, class ValueType>
Nothing pdb::PairArray< KeyType, ValueType >::data[0]
private

Definition at line 106 of file PairArray.h.

template<class KeyType, class ValueType>
bool pdb::PairArray< KeyType, ValueType >::disableDestructor
private

Definition at line 110 of file PairArray.h.

template<class KeyType, class ValueType>
PDBTemplateBase pdb::PairArray< KeyType, ValueType >::keyTypeInfo
private

Definition at line 87 of file PairArray.h.

template<class KeyType, class ValueType>
uint32_t pdb::PairArray< KeyType, ValueType >::maxSlots
private

Definition at line 103 of file PairArray.h.

template<class KeyType, class ValueType>
uint32_t pdb::PairArray< KeyType, ValueType >::numSlots
private

Definition at line 100 of file PairArray.h.

template<class KeyType, class ValueType>
uint32_t pdb::PairArray< KeyType, ValueType >::objSize
private

Definition at line 91 of file PairArray.h.

template<class KeyType, class ValueType>
uint32_t pdb::PairArray< KeyType, ValueType >::usedSlots
private

Definition at line 97 of file PairArray.h.

template<class KeyType, class ValueType>
uint32_t pdb::PairArray< KeyType, ValueType >::valueOffset
private

Definition at line 94 of file PairArray.h.

template<class KeyType, class ValueType>
PDBTemplateBase pdb::PairArray< KeyType, ValueType >::valueTypeInfo
private

Definition at line 88 of file PairArray.h.


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