#include <sharelib.h>
Public Types | |
| typedef T | value_type |
| typedef size_t | size_type |
| typedef ptrdiff_t | difference_type |
| typedef RelocPtr< T > | pointer |
| Using relocable pointer type. | |
| typedef RelocPtr< const T > | const_pointer |
| Using relocable pointer type. | |
| typedef T & | reference |
| typedef const T & | const_reference |
Public Member Functions | |
| Allocator () throw () | |
| ~Allocator () throw () | |
| template<class U> | |
| Allocator (const Allocator< U > &) throw () | |
| pointer | address (reference obj) const |
| const_pointer | address (const_reference obj) const |
| pointer | allocate (size_type count) |
| void | deallocate (pointer addr, size_type count) |
| void | construct (pointer p, const T &val) |
| void | destroy (pointer p) |
| size_type | max_size () const throw () |
Classes | |
| struct | rebind |
| STL allocator type adapter template. More... | |
Equivalent to std::allocator using ShareManager to define storage.
Definition at line 623 of file sharelib.h.
| typedef T Share::Allocator< T >::value_type |
Definition at line 625 of file sharelib.h.
| typedef size_t Share::Allocator< T >::size_type |
Definition at line 626 of file sharelib.h.
| typedef ptrdiff_t Share::Allocator< T >::difference_type |
Definition at line 627 of file sharelib.h.
| typedef RelocPtr<T> Share::Allocator< T >::pointer |
| typedef RelocPtr<const T> Share::Allocator< T >::const_pointer |
| typedef T& Share::Allocator< T >::reference |
Definition at line 630 of file sharelib.h.
| typedef const T& Share::Allocator< T >::const_reference |
Definition at line 631 of file sharelib.h.
| Share::Allocator< T >::Allocator | ( | ) | throw () [inline] |
| Share::Allocator< T >::~Allocator | ( | ) | throw () [inline] |
| Share::Allocator< T >::Allocator | ( | const Allocator< U > & | ) | throw () [inline] |
Copy constructor
Definition at line 646 of file sharelib.h.
| pointer Share::Allocator< T >::address | ( | reference | obj | ) | const [inline] |
| obj | Reference to object |
Definition at line 661 of file sharelib.h.
| const_pointer Share::Allocator< T >::address | ( | const_reference | obj | ) | const [inline] |
| obj | Reference to const object |
Definition at line 669 of file sharelib.h.
| pointer Share::Allocator< T >::allocate | ( | size_type | count | ) | [inline] |
Allocate array of object
| count | Count of object to allocate |
Definition at line 678 of file sharelib.h.
References Share::ShareManager::instance().
| void Share::Allocator< T >::deallocate | ( | pointer | addr, | |
| size_type | count | |||
| ) | [inline] |
Deallocate array of object
| addr | Pointer to array to deallocate | |
| count | Count of object to deallocate |
count is not used by default implementation Definition at line 688 of file sharelib.h.
References Share::ShareManager::instance().
| void Share::Allocator< T >::construct | ( | pointer | p, | |
| const T & | val | |||
| ) | [inline] |
Definition at line 692 of file sharelib.h.
| void Share::Allocator< T >::destroy | ( | pointer | p | ) | [inline] |
Definition at line 696 of file sharelib.h.
| size_type Share::Allocator< T >::max_size | ( | ) | const throw () [inline] |
1.5.2