Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::ArrayAllocatorIndex< IndexBase, SizeBits > Class Template Reference

This type represents an index into the allocated memory, as a bit-field parameterized by the template argument SizeBits. More...

#include <ArrayAllocatorIndex.h>

Inheritance diagram for PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >:

Inheritance graph
[legend]
Collaboration diagram for PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef IndexBase index_base
typedef ArrayAllocatorIndex<
IndexBase, SizeBits > 
index_type

Public Member Functions

 ArrayAllocatorIndex (unsigned the_index, unsigned the_size=0)
bool operator== (index_type other) const
bool operator!= (index_type other) const
bool isNull () const
void swap (index_type &other)

Public Attributes

unsigned index: 8*sizeof(IndexBase) - SizeBits
 assume that a char contains 8 bits

unsigned size: SizeBits

Detailed Description

template<class IndexBase, unsigned SizeBits>
class PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >

This type represents an index into the allocated memory, as a bit-field parameterized by the template argument SizeBits.

Definition at line 52 of file ArrayAllocatorIndex.h.


Member Typedef Documentation

template<class IndexBase, unsigned SizeBits>
typedef IndexBase PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >::index_base
 

Definition at line 54 of file ArrayAllocatorIndex.h.

template<class IndexBase, unsigned SizeBits>
typedef ArrayAllocatorIndex<IndexBase,SizeBits> PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >::index_type
 

Definition at line 55 of file ArrayAllocatorIndex.h.


Constructor & Destructor Documentation

template<class IndexBase, unsigned SizeBits>
PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >::ArrayAllocatorIndex unsigned  the_index,
unsigned  the_size = 0
[inline]
 

Definition at line 61 of file ArrayAllocatorIndex.h.


Member Function Documentation

template<class IndexBase, unsigned SizeBits>
bool PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >::isNull  )  const [inline]
 

Definition at line 70 of file ArrayAllocatorIndex.h.

Referenced by PLearn::ArrayAllocator< T, SizeBits >::allocate(), PLearn::ArrayAllocator< T, SizeBits >::deallocate(), and PLearn::ArrayAllocator< T, SizeBits >::toPointer().

template<class IndexBase, unsigned SizeBits>
bool PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >::operator!= index_type  other  )  const [inline]
 

< don't consider block size

Definition at line 67 of file ArrayAllocatorIndex.h.

template<class IndexBase, unsigned SizeBits>
bool PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >::operator== index_type  other  )  const [inline]
 

< don't consider block size

Definition at line 64 of file ArrayAllocatorIndex.h.

template<class IndexBase, unsigned SizeBits>
void PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >::swap index_type other  )  [inline]
 

Definition at line 73 of file ArrayAllocatorIndex.h.


Member Data Documentation

template<class IndexBase, unsigned SizeBits>
unsigned PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >::index
 

assume that a char contains 8 bits

Definition at line 58 of file ArrayAllocatorIndex.h.

Referenced by PLearn::ArrayAllocator< T, SizeBits >::allocate(), PLearn::ArrayAllocator< T, SizeBits >::deallocate(), PLearn::ArrayAllocator< T, SizeBits >::derefIndex(), PLearn::ArrayAllocator< T, SizeBits >::resize(), and PLearn::ArrayAllocator< T, SizeBits >::toPointer().

template<class IndexBase, unsigned SizeBits>
unsigned PLearn::ArrayAllocatorIndex< IndexBase, SizeBits >::size
 

Definition at line 59 of file ArrayAllocatorIndex.h.

Referenced by PLearn::ArrayAllocator< T, SizeBits >::allocate(), PLearn::ArrayAllocator< T, SizeBits >::deallocate(), and PLearn::ArrayAllocator< T, SizeBits >::resize().


The documentation for this class was generated from the following file:
Generated on Tue Aug 17 16:22:33 2004 for PLearn by doxygen 1.3.7