#include <block.hpp>
Inheritance diagram for TaoCrypt::AllocatorWithCleanup< T >:


Public Types | |
| typedef AllocatorBase< T >::pointer | pointer |
| typedef AllocatorBase< T >::size_type | size_type |
Public Member Functions | |
| pointer | allocate (size_type n, const void *=0) |
| void | deallocate (void *p, size_type n) |
| pointer | reallocate (T *p, size_type oldSize, size_type newSize, bool preserve) |
Classes | |
| struct | rebind |
Definition at line 95 of file block.hpp.
| typedef AllocatorBase<T>::pointer TaoCrypt::AllocatorWithCleanup< T >::pointer |
| typedef AllocatorBase<T>::size_type TaoCrypt::AllocatorWithCleanup< T >::size_type |
| pointer TaoCrypt::AllocatorWithCleanup< T >::allocate | ( | size_type | n, | |
| const void * | = 0 | |||
| ) | [inline] |
| void TaoCrypt::AllocatorWithCleanup< T >::deallocate | ( | void * | p, | |
| size_type | n | |||
| ) | [inline] |
Definition at line 109 of file block.hpp.
References memset, and TaoCrypt::tcArrayDelete().
00110 { 00111 memset(p, 0, n * sizeof(T)); 00112 tcArrayDelete((T*)p); 00113 }
Here is the call graph for this function:

| pointer TaoCrypt::AllocatorWithCleanup< T >::reallocate | ( | T * | p, | |
| size_type | oldSize, | |||
| size_type | newSize, | |||
| bool | preserve | |||
| ) | [inline] |
Definition at line 115 of file block.hpp.
References TaoCrypt::StdReallocate().
00117 { 00118 return StdReallocate(*this, p, oldSize, newSize, preserve); 00119 }
Here is the call graph for this function:

1.4.7

