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::Array< TypeContained > Class Template Reference

#include <Array.h>

+ Inheritance diagram for pdb::Array< TypeContained >:
+ Collaboration diagram for pdb::Array< TypeContained >:

Public Member Functions

 Array ()
 
 Array (uint32_t numSlots)
 
 Array (const Array &copyFromMe)
 
 ~Array ()
 
 Array (uint32_t numSlots, uint32_t numUsedSlots)
 
void setUpAndCopyFrom (void *target, void *source) const
 
void deleteObject (void *deleteMe)
 
size_t getSize (void *forMe)
 
Handle< Array< TypeContained > > resize (uint32_t howMany)
 
TypeContained * c_ptr ()
 
TypeContained & getObj (uint32_t which)
 
void assign (uint32_t which, const TypeContained &val)
 
void push_back (const TypeContained &val)
 
void push_back ()
 
void pop_back ()
 
Handle< Array< TypeContained > > doubleSize ()
 
bool isFull ()
 
uint32_t numUsedSlots ()
 
void setUsed (uint32_t toMe)
 
- Public Member Functions inherited from pdb::Object
void setVTablePtr (void *setToMe)
 
void * getVTablePtr ()
 

Private Attributes

PDBTemplateBase typeInfo
 
uint32_t usedSlots
 
uint32_t numSlots
 
Nothing data [0]
 

Friends

class PDBCommunicator
 

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 TypeContained>
class pdb::Array< TypeContained >

Definition at line 45 of file Array.h.

Constructor & Destructor Documentation

template<class TypeContained >
pdb::Array< TypeContained >::Array ( )

Definition at line 139 of file Array.cc.

template<class TypeContained >
pdb::Array< TypeContained >::Array ( uint32_t  numSlots)

Definition at line 121 of file Array.cc.

template<class TypeContained >
pdb::Array< TypeContained >::Array ( const Array< TypeContained > &  copyFromMe)

Definition at line 96 of file Array.cc.

template<class TypeContained >
pdb::Array< TypeContained >::~Array ( )

Definition at line 148 of file Array.cc.

template<class TypeContained >
pdb::Array< TypeContained >::Array ( uint32_t  numSlots,
uint32_t  numUsedSlots 
)

Definition at line 101 of file Array.cc.

Member Function Documentation

template<class TypeContained >
void pdb::Array< TypeContained >::assign ( uint32_t  which,
const TypeContained &  val 
)

Definition at line 215 of file Array.cc.

template<class TypeContained >
TypeContained * pdb::Array< TypeContained >::c_ptr ( )

Definition at line 242 of file Array.cc.

template<class TypeContained >
void pdb::Array< TypeContained >::deleteObject ( void *  deleteMe)
virtual

Reimplemented from pdb::Object.

Definition at line 265 of file Array.cc.

+ Here is the call graph for this function:

template<class TypeContained >
Handle< Array< TypeContained > > pdb::Array< TypeContained >::doubleSize ( )

Definition at line 128 of file Array.cc.

template<class TypeContained >
TypeContained & pdb::Array< TypeContained >::getObj ( uint32_t  which)

Definition at line 210 of file Array.cc.

template<class TypeContained >
size_t pdb::Array< TypeContained >::getSize ( void *  forMe)
virtual

Reimplemented from pdb::Object.

Definition at line 270 of file Array.cc.

template<class TypeContained >
bool pdb::Array< TypeContained >::isFull ( )

Definition at line 133 of file Array.cc.

template<class TypeContained >
uint32_t pdb::Array< TypeContained >::numUsedSlots ( )

Definition at line 255 of file Array.cc.

template<class TypeContained >
void pdb::Array< TypeContained >::pop_back ( )

Definition at line 247 of file Array.cc.

template<class TypeContained >
void pdb::Array< TypeContained >::push_back ( const TypeContained &  val)

Definition at line 224 of file Array.cc.

template<class TypeContained >
void pdb::Array< TypeContained >::push_back ( )

Definition at line 233 of file Array.cc.

template<class TypeContained >
Handle< Array< TypeContained > > pdb::Array< TypeContained >::resize ( uint32_t  howMany)

Definition at line 171 of file Array.cc.

template<class TypeContained >
void pdb::Array< TypeContained >::setUpAndCopyFrom ( void *  target,
void *  source 
) const
virtual

Reimplemented from pdb::Object.

Definition at line 41 of file Array.cc.

+ Here is the call graph for this function:

template<class TypeContained >
void pdb::Array< TypeContained >::setUsed ( uint32_t  toMe)

Definition at line 260 of file Array.cc.

Friends And Related Function Documentation

template<class TypeContained>
friend class PDBCommunicator
friend

Definition at line 112 of file Array.h.

Member Data Documentation

template<class TypeContained>
Nothing pdb::Array< TypeContained >::data[0]
private

Definition at line 77 of file Array.h.

template<class TypeContained>
uint32_t pdb::Array< TypeContained >::numSlots
private

Definition at line 74 of file Array.h.

template<class TypeContained>
PDBTemplateBase pdb::Array< TypeContained >::typeInfo
private

Definition at line 68 of file Array.h.

template<class TypeContained>
uint32_t pdb::Array< TypeContained >::usedSlots
private

Definition at line 71 of file Array.h.


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