![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <AlignedAlloc.hpp>
Classes | |
| struct | rebind |
Public Types | |
| typedef const T * | const_pointer |
| typedef const T & | const_reference |
| typedef std::size_t | difference_type |
| typedef T * | pointer |
| typedef T & | reference |
| typedef std::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!= (STLAlignedAllocator< S > const &) const throw () |
| template<typename S > | |
| STLAlignedAllocator< T > & | operator= (const STLAlignedAllocator< S > &cp) throw () |
| template<typename S > | |
| bool | operator== (STLAlignedAllocator< S > const &) const throw () |
| STLAlignedAllocator () throw () | |
| template<typename S > | |
| STLAlignedAllocator (const STLAlignedAllocator< S > &cp) throw () | |
Definition at line 69 of file AlignedAlloc.hpp.
| typedef const T* cat::STLAlignedAllocator< T >::const_pointer |
Definition at line 75 of file AlignedAlloc.hpp.
| typedef const T& cat::STLAlignedAllocator< T >::const_reference |
Definition at line 77 of file AlignedAlloc.hpp.
| typedef std::size_t cat::STLAlignedAllocator< T >::difference_type |
Definition at line 73 of file AlignedAlloc.hpp.
| typedef T* cat::STLAlignedAllocator< T >::pointer |
Definition at line 74 of file AlignedAlloc.hpp.
| typedef T& cat::STLAlignedAllocator< T >::reference |
Definition at line 76 of file AlignedAlloc.hpp.
| typedef std::size_t cat::STLAlignedAllocator< T >::size_type |
Definition at line 72 of file AlignedAlloc.hpp.
| typedef T cat::STLAlignedAllocator< T >::value_type |
Definition at line 78 of file AlignedAlloc.hpp.
| cat::STLAlignedAllocator< T >::STLAlignedAllocator | ( | ) | throw () [inline] |
Definition at line 96 of file AlignedAlloc.hpp.
{
}
| cat::STLAlignedAllocator< T >::STLAlignedAllocator | ( | const STLAlignedAllocator< S > & | cp | ) | throw () [inline] |
Definition at line 101 of file AlignedAlloc.hpp.
{
}
| pointer cat::STLAlignedAllocator< T >::address | ( | reference | X | ) | const [inline] |
Definition at line 86 of file AlignedAlloc.hpp.
{
return &X;
}
| const_pointer cat::STLAlignedAllocator< T >::address | ( | const_reference | X | ) | const [inline] |
Definition at line 91 of file AlignedAlloc.hpp.
{
return &X;
}
| pointer cat::STLAlignedAllocator< T >::allocate | ( | size_type | Count, |
| const void * | Hint = 0 |
||
| ) | [inline] |
Definition at line 111 of file AlignedAlloc.hpp.
References cat::Aligned::Acquire(), and T.
{
return (pointer)Aligned::Acquire((u32)Count * sizeof(T));
}
| void cat::STLAlignedAllocator< T >::construct | ( | pointer | Ptr, |
| const T & | Val | ||
| ) | [inline] |
Definition at line 121 of file AlignedAlloc.hpp.
{
std::_Construct(Ptr, Val);
}
| void cat::STLAlignedAllocator< T >::deallocate | ( | pointer | Ptr, |
| size_type | Count | ||
| ) | [inline] |
Definition at line 116 of file AlignedAlloc.hpp.
References cat::Aligned::Release().
{
Aligned::Release(Ptr);
}
| void cat::STLAlignedAllocator< T >::destroy | ( | pointer | Ptr | ) | [inline] |
Definition at line 126 of file AlignedAlloc.hpp.
{
std::_Destroy(Ptr);
}
| size_type cat::STLAlignedAllocator< T >::max_size | ( | ) | const [inline] |
Definition at line 131 of file AlignedAlloc.hpp.
{
return 0x00FFFFFF;
}
| bool cat::STLAlignedAllocator< T >::operator!= | ( | STLAlignedAllocator< S > const & | ) | const throw () [inline] |
Definition at line 143 of file AlignedAlloc.hpp.
{
return false;
}
| STLAlignedAllocator<T>& cat::STLAlignedAllocator< T >::operator= | ( | const STLAlignedAllocator< S > & | cp | ) | throw () [inline] |
Definition at line 106 of file AlignedAlloc.hpp.
{
return *this;
}
| bool cat::STLAlignedAllocator< T >::operator== | ( | STLAlignedAllocator< S > const & | ) | const throw () [inline] |
Definition at line 137 of file AlignedAlloc.hpp.
{
return true;
}
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.