Shadowrun: Awakened 29 September 2011 - Build 871
Classes | Public Types | Public Member Functions
cat::STLLargeAlignedAllocator< T > Class Template Reference

#include <AlignedAlloc.hpp>

List of all members.

Classes

struct  rebind

Public Types

typedef const Tconst_pointer
typedef const Tconst_reference
typedef std::size_t difference_type
typedef Tpointer
typedef Treference
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!= (STLLargeAlignedAllocator< S > const &) const throw ()
template<typename S >
STLLargeAlignedAllocator< T > & operator= (const STLLargeAlignedAllocator< S > &cp) throw ()
template<typename S >
bool operator== (STLLargeAlignedAllocator< S > const &) const throw ()
 STLLargeAlignedAllocator () throw ()
template<typename S >
 STLLargeAlignedAllocator (const STLLargeAlignedAllocator< S > &cp) throw ()

Detailed Description

template<typename T>
class cat::STLLargeAlignedAllocator< T >

Definition at line 164 of file AlignedAlloc.hpp.


Member Typedef Documentation

template<typename T>
typedef const T* cat::STLLargeAlignedAllocator< T >::const_pointer

Definition at line 170 of file AlignedAlloc.hpp.

template<typename T>
typedef const T& cat::STLLargeAlignedAllocator< T >::const_reference

Definition at line 172 of file AlignedAlloc.hpp.

template<typename T>
typedef std::size_t cat::STLLargeAlignedAllocator< T >::difference_type

Definition at line 168 of file AlignedAlloc.hpp.

template<typename T>
typedef T* cat::STLLargeAlignedAllocator< T >::pointer

Definition at line 169 of file AlignedAlloc.hpp.

template<typename T>
typedef T& cat::STLLargeAlignedAllocator< T >::reference

Definition at line 171 of file AlignedAlloc.hpp.

template<typename T>
typedef std::size_t cat::STLLargeAlignedAllocator< T >::size_type

Definition at line 167 of file AlignedAlloc.hpp.

template<typename T>
typedef T cat::STLLargeAlignedAllocator< T >::value_type

Definition at line 173 of file AlignedAlloc.hpp.


Constructor & Destructor Documentation

template<typename T>
cat::STLLargeAlignedAllocator< T >::STLLargeAlignedAllocator ( ) throw () [inline]

Definition at line 191 of file AlignedAlloc.hpp.

    {
    }
template<typename T>
template<typename S >
cat::STLLargeAlignedAllocator< T >::STLLargeAlignedAllocator ( const STLLargeAlignedAllocator< S > &  cp) throw () [inline]

Definition at line 196 of file AlignedAlloc.hpp.

    {
    }

Member Function Documentation

template<typename T>
pointer cat::STLLargeAlignedAllocator< T >::address ( reference  X) const [inline]

Definition at line 181 of file AlignedAlloc.hpp.

    {
        return &X;
    }
template<typename T>
const_pointer cat::STLLargeAlignedAllocator< T >::address ( const_reference  X) const [inline]

Definition at line 186 of file AlignedAlloc.hpp.

    {
        return &X;
    }
template<typename T>
pointer cat::STLLargeAlignedAllocator< T >::allocate ( size_type  Count,
const void *  Hint = 0 
) [inline]

Definition at line 206 of file AlignedAlloc.hpp.

References cat::LargeAligned::Acquire(), and T.

    {
        return (pointer)LargeAligned::Acquire((u32)Count * sizeof(T));
    }
template<typename T>
void cat::STLLargeAlignedAllocator< T >::construct ( pointer  Ptr,
const T Val 
) [inline]

Definition at line 216 of file AlignedAlloc.hpp.

    {
        std::_Construct(Ptr, Val);
    }
template<typename T>
void cat::STLLargeAlignedAllocator< T >::deallocate ( pointer  Ptr,
size_type  Count 
) [inline]

Definition at line 211 of file AlignedAlloc.hpp.

References cat::LargeAligned::Release().

template<typename T>
void cat::STLLargeAlignedAllocator< T >::destroy ( pointer  Ptr) [inline]

Definition at line 221 of file AlignedAlloc.hpp.

    {
        std::_Destroy(Ptr);
    }
template<typename T>
size_type cat::STLLargeAlignedAllocator< T >::max_size ( ) const [inline]

Definition at line 226 of file AlignedAlloc.hpp.

    {
        return 0x00FFFFFF;
    }
template<typename T>
template<typename S >
bool cat::STLLargeAlignedAllocator< T >::operator!= ( STLLargeAlignedAllocator< S > const &  ) const throw () [inline]

Definition at line 238 of file AlignedAlloc.hpp.

    {
        return false;
    }
template<typename T>
template<typename S >
STLLargeAlignedAllocator<T>& cat::STLLargeAlignedAllocator< T >::operator= ( const STLLargeAlignedAllocator< S > &  cp) throw () [inline]

Definition at line 201 of file AlignedAlloc.hpp.

    {
        return *this;
    }
template<typename T>
template<typename S >
bool cat::STLLargeAlignedAllocator< T >::operator== ( STLLargeAlignedAllocator< S > const &  ) const throw () [inline]

Definition at line 232 of file AlignedAlloc.hpp.

    {
        return true;
    }

The documentation for this class was generated from the following file:

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net