Allocator< T > Class Template Reference

#include <GlobalDefinitions.h>

Inheritance diagram for Allocator< T >:

Inheritance graph
[legend]
Collaboration diagram for Allocator< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T MyType

Public Member Functions

 Allocator (T **ptr, const string &name, ostream &monStream=cerr)
virtual Allocator< T > * clone (T **ptr, const string &name, ostream &monStream)=0
virtual void allocate (unsigned long size)=0
virtual void allocateAndZero (unsigned long size)=0
virtual void load (unsigned long size)=0
virtual void save ()=0
virtual void deallocate ()=0
virtual ~Allocator ()

Public Attributes

T ** ptr_
string name_
unsigned long size_
bool isAllocated_
ostream & monStream_

Detailed Description

template<typename T>
class Allocator< T >

Definition at line 726 of file GlobalDefinitions.h.


Member Typedef Documentation

template<typename T>
typedef T Allocator< T >::MyType

Definition at line 729 of file GlobalDefinitions.h.


Constructor & Destructor Documentation

template<typename T>
Allocator< T >::Allocator ( T **  ptr,
const string &  name,
ostream &  monStream = cerr 
) [inline]

Definition at line 731 of file GlobalDefinitions.h.

00731                                                                     : 
00732     ptr_(ptr), name_(name), size_(0), isAllocated_(false), 
00733     monStream_( monStream )
00734     {}

template<typename T>
virtual Allocator< T >::~Allocator (  )  [inline, virtual]

Definition at line 755 of file GlobalDefinitions.h.

00755 {}


Member Function Documentation

template<typename T>
virtual Allocator<T>* Allocator< T >::clone ( T **  ptr,
const string &  name,
ostream &  monStream 
) [pure virtual]

Implemented in AllocatorLocal< T >, AllocatorLocal< PositionInHitList >, AllocatorLocal< PositionPacked >, and AllocatorLocal< PositionInDatabase >.

Referenced by HashTableView< PositionInDatabase, HashTable >::HashTableView(), and HashTableGeneric::setupHitList().

Here is the caller graph for this function:

template<typename T>
virtual void Allocator< T >::allocate ( unsigned long  size  )  [pure virtual]

Implemented in AllocatorLocal< T >, AllocatorLocal< PositionInHitList >, AllocatorLocal< PositionPacked >, and AllocatorLocal< PositionInDatabase >.

Referenced by HashTableView< PositionInDatabase, HashTable >::allocateHitList().

Here is the caller graph for this function:

template<typename T>
virtual void Allocator< T >::allocateAndZero ( unsigned long  size  )  [pure virtual]

Implemented in AllocatorLocal< T >, AllocatorLocal< PositionInHitList >, AllocatorLocal< PositionPacked >, and AllocatorLocal< PositionInDatabase >.

Referenced by HashTableGeneric::setupHitList(), and HashTableGeneric::setupPointerArray().

Here is the caller graph for this function:

template<typename T>
virtual void Allocator< T >::load ( unsigned long  size  )  [pure virtual]

Implemented in AllocatorLocal< T >, AllocatorLocal< PositionInHitList >, AllocatorLocal< PositionPacked >, and AllocatorLocal< PositionInDatabase >.

Referenced by HashTableView< PositionInDatabase, HashTable >::loadHitList().

Here is the caller graph for this function:

template<typename T>
virtual void Allocator< T >::save (  )  [pure virtual]

Implemented in AllocatorLocal< T >, AllocatorLocal< PositionInHitList >, AllocatorLocal< PositionPacked >, and AllocatorLocal< PositionInDatabase >.

Referenced by HashTableGeneric::saveHashTable(), and HashTableView< PositionInDatabase, HashTable >::saveHitList().

Here is the caller graph for this function:

template<typename T>
virtual void Allocator< T >::deallocate (  )  [pure virtual]

Implemented in AllocatorLocal< T >, AllocatorLocal< PositionInHitList >, AllocatorLocal< PositionPacked >, and AllocatorLocal< PositionInDatabase >.


Member Data Documentation

template<typename T>
T** Allocator< T >::ptr_

Definition at line 757 of file GlobalDefinitions.h.

Referenced by AllocatorLocal< PositionInDatabase >::allocateAndZero(), AllocatorLocal< PositionInDatabase >::load(), and AllocatorLocal< PositionInDatabase >::save().

template<typename T>
string Allocator< T >::name_

Definition at line 758 of file GlobalDefinitions.h.

Referenced by AllocatorLocal< PositionInDatabase >::load(), and AllocatorLocal< PositionInDatabase >::save().

template<typename T>
unsigned long Allocator< T >::size_

Definition at line 759 of file GlobalDefinitions.h.

Referenced by AllocatorLocal< PositionInDatabase >::allocate(), AllocatorLocal< PositionInDatabase >::allocateAndZero(), AllocatorLocal< PositionInDatabase >::load(), and AllocatorLocal< PositionInDatabase >::save().

template<typename T>
bool Allocator< T >::isAllocated_

Definition at line 760 of file GlobalDefinitions.h.

Referenced by AllocatorLocal< PositionInDatabase >::allocate(), and AllocatorLocal< PositionInDatabase >::deallocate().

template<typename T>
ostream& Allocator< T >::monStream_

Definition at line 761 of file GlobalDefinitions.h.

Referenced by AllocatorLocal< PositionInDatabase >::load(), and AllocatorLocal< PositionInDatabase >::save().


The documentation for this class was generated from the following file:
Generated on Fri Dec 21 13:15:36 2007 for ssaha by  doxygen 1.5.2