#include <OpenMS/SYSTEM/ExternalAllocator.h>
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef T & | reference |
typedef const T & | const_reference |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
Public Member Functions | |
pointer | address (reference value) const |
return address of value | |
const_pointer | address (const_reference value) const |
return address of value as const pointer | |
ExternalAllocator (const String &filename=File::getUniqueName(), const Offset64Int &filesize=1) | |
C'tor where filename specifies the swap file of size filesize bytes. | |
ExternalAllocator (const ExternalAllocator &rhs) throw () | |
copy C'tor | |
template<class U> | |
ExternalAllocator (const ExternalAllocator< U > &rhs) throw () | |
copy C'tor with other template parameter | |
~ExternalAllocator () throw () | |
D'tor. | |
size_type | max_size () const throw () |
return maximum number of elements that can be allocated | |
pointer | allocate (size_type num, const void *=0) |
allocate but don't initialize num elements of type T | |
void | construct (pointer p, const T &value) |
initialize elements of allocated storage p with value value | |
void | destroy (pointer) |
destroy elements of initialized storage p | |
void | deallocate (pointer p, size_type num) |
deallocate storage p of deleted elements | |
Offset64Int | getMappingSize () |
number of bytes currently mapped from file into virtual memory | |
Protected Attributes | |
boost::shared_ptr < ExternalAllocatorUnique > | shared_extalloc_ |
stores the allocator's data and prevent data corruption when copying this allocator | |
Friends | |
class | ExternalAllocator |
allow other template instances to access private members | |
Classes | |
struct | rebind |
rebind allocator to type U More... |
typedef T value_type |
typedef T* pointer |
typedef const T* const_pointer |
typedef T& reference |
typedef const T& const_reference |
typedef std::size_t size_type |
typedef std::ptrdiff_t difference_type |
ExternalAllocator | ( | const String & | filename = File::getUniqueName() , |
|
const Offset64Int & | filesize = 1 | |||
) | [inline] |
C'tor where filename
specifies the swap file of size filesize
bytes.
ExternalAllocator | ( | const ExternalAllocator< T > & | rhs | ) | throw () [inline] |
copy C'tor
ExternalAllocator | ( | const ExternalAllocator< U > & | rhs | ) | throw () [inline] |
copy C'tor with other template parameter
~ExternalAllocator | ( | ) | throw () [inline] |
D'tor.
const_pointer address | ( | const_reference | value | ) | const [inline] |
return address of value
as const pointer
size_type max_size | ( | ) | const throw () [inline] |
return maximum number of elements that can be allocated
allocate but don't initialize num
elements of type T
void construct | ( | pointer | p, | |
const T & | value | |||
) | [inline] |
initialize elements of allocated storage p
with value value
void destroy | ( | pointer | ) | [inline] |
destroy elements of initialized storage p
Offset64Int getMappingSize | ( | ) | [inline] |
number of bytes currently mapped from file into virtual memory
friend class ExternalAllocator [friend] |
allow other template instances to access private members
boost::shared_ptr<ExternalAllocatorUnique> shared_extalloc_ [protected] |
stores the allocator's data and prevent data corruption when copying this allocator
Generated Tue Apr 1 15:36:47 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |