![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <RegionAllocator.hpp>
Classes | |
| struct | rebind |
Public Types | |
| typedef const T * | const_pointer |
| typedef const T & | const_reference |
| typedef size_t | difference_type |
| typedef T * | pointer |
| typedef T & | reference |
| typedef size_t | size_type |
| typedef T | value_type |
Public Member Functions | |
| pointer | address (reference X) const |
| const_pointer | address (const_reference X) const |
| pointer | allocate (size_type Count, const void *Hint=0) |
| void | construct (pointer Ptr, const T &Val) |
| void | deallocate (pointer Ptr, size_type Count) |
| void | destroy (pointer Ptr) |
| size_type | max_size () const |
| template<typename S > | |
| bool | operator!= (STLRegionAllocator< S > const &) const throw () |
| template<typename S > | |
| STLRegionAllocator< T > & | operator= (const STLRegionAllocator< S > &cp) throw () |
| template<typename S > | |
| bool | operator== (STLRegionAllocator< S > const &) const throw () |
| STLRegionAllocator () throw () | |
| template<typename S > | |
| STLRegionAllocator (const STLRegionAllocator< S > &cp) throw () | |
Definition at line 101 of file RegionAllocator.hpp.
| typedef const T* cat::STLRegionAllocator< T >::const_pointer |
Definition at line 107 of file RegionAllocator.hpp.
| typedef const T& cat::STLRegionAllocator< T >::const_reference |
Definition at line 109 of file RegionAllocator.hpp.
| typedef size_t cat::STLRegionAllocator< T >::difference_type |
Definition at line 105 of file RegionAllocator.hpp.
| typedef T* cat::STLRegionAllocator< T >::pointer |
Definition at line 106 of file RegionAllocator.hpp.
| typedef T& cat::STLRegionAllocator< T >::reference |
Definition at line 108 of file RegionAllocator.hpp.
| typedef size_t cat::STLRegionAllocator< T >::size_type |
Definition at line 104 of file RegionAllocator.hpp.
| typedef T cat::STLRegionAllocator< T >::value_type |
Definition at line 110 of file RegionAllocator.hpp.
| cat::STLRegionAllocator< T >::STLRegionAllocator | ( | ) | throw () [inline] |
Definition at line 128 of file RegionAllocator.hpp.
{
}
| cat::STLRegionAllocator< T >::STLRegionAllocator | ( | const STLRegionAllocator< S > & | cp | ) | throw () [inline] |
Definition at line 133 of file RegionAllocator.hpp.
{
}
| pointer cat::STLRegionAllocator< T >::address | ( | reference | X | ) | const [inline] |
Definition at line 118 of file RegionAllocator.hpp.
{
return &X;
}
| const_pointer cat::STLRegionAllocator< T >::address | ( | const_reference | X | ) | const [inline] |
Definition at line 123 of file RegionAllocator.hpp.
{
return &X;
}
| pointer cat::STLRegionAllocator< T >::allocate | ( | size_type | Count, |
| const void * | Hint = 0 |
||
| ) | [inline] |
Definition at line 143 of file RegionAllocator.hpp.
References cat::RegionAllocator::Acquire(), cat::Singleton< RegionAllocator >::ii, and T.
{
return (pointer)RegionAllocator::ii->Acquire((u32)Count * sizeof(T));
}
| void cat::STLRegionAllocator< T >::construct | ( | pointer | Ptr, |
| const T & | Val | ||
| ) | [inline] |
Definition at line 153 of file RegionAllocator.hpp.
{
std::_Construct(Ptr, Val);
}
| void cat::STLRegionAllocator< T >::deallocate | ( | pointer | Ptr, |
| size_type | Count | ||
| ) | [inline] |
Definition at line 148 of file RegionAllocator.hpp.
References cat::Singleton< RegionAllocator >::ii, and cat::RegionAllocator::Release().
{
RegionAllocator::ii->Release(Ptr);
}
| void cat::STLRegionAllocator< T >::destroy | ( | pointer | Ptr | ) | [inline] |
Definition at line 158 of file RegionAllocator.hpp.
{
std::_Destroy(Ptr);
}
| size_type cat::STLRegionAllocator< T >::max_size | ( | ) | const [inline] |
Definition at line 163 of file RegionAllocator.hpp.
{
return 0x00FFFFFF;
}
| bool cat::STLRegionAllocator< T >::operator!= | ( | STLRegionAllocator< S > const & | ) | const throw () [inline] |
Definition at line 175 of file RegionAllocator.hpp.
{
return false;
}
| STLRegionAllocator<T>& cat::STLRegionAllocator< T >::operator= | ( | const STLRegionAllocator< S > & | cp | ) | throw () [inline] |
Definition at line 138 of file RegionAllocator.hpp.
{
return *this;
}
| bool cat::STLRegionAllocator< T >::operator== | ( | STLRegionAllocator< S > const & | ) | const throw () [inline] |
Definition at line 169 of file RegionAllocator.hpp.
{
return true;
}
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.