Shadowrun: Awakened 29 September 2011 - Build 871
Classes | Public Types | Public Member Functions
cat::STLAlignedAllocator< 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!= (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 ()

Detailed Description

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

Definition at line 69 of file AlignedAlloc.hpp.


Member Typedef Documentation

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

Definition at line 75 of file AlignedAlloc.hpp.

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

Definition at line 77 of file AlignedAlloc.hpp.

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

Definition at line 73 of file AlignedAlloc.hpp.

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

Definition at line 74 of file AlignedAlloc.hpp.

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

Definition at line 76 of file AlignedAlloc.hpp.

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

Definition at line 72 of file AlignedAlloc.hpp.

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

Definition at line 78 of file AlignedAlloc.hpp.


Constructor & Destructor Documentation

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

Definition at line 96 of file AlignedAlloc.hpp.

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

Definition at line 101 of file AlignedAlloc.hpp.

    {
    }

Member Function Documentation

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

Definition at line 86 of file AlignedAlloc.hpp.

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

Definition at line 91 of file AlignedAlloc.hpp.

    {
        return &X;
    }
template<typename T>
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));
    }
template<typename T>
void cat::STLAlignedAllocator< T >::construct ( pointer  Ptr,
const T Val 
) [inline]

Definition at line 121 of file AlignedAlloc.hpp.

    {
        std::_Construct(Ptr, Val);
    }
template<typename T>
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);
    }
template<typename T>
void cat::STLAlignedAllocator< T >::destroy ( pointer  Ptr) [inline]

Definition at line 126 of file AlignedAlloc.hpp.

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

Definition at line 131 of file AlignedAlloc.hpp.

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

Definition at line 143 of file AlignedAlloc.hpp.

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

Definition at line 106 of file AlignedAlloc.hpp.

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

Definition at line 137 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