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

#include <RegionAllocator.hpp>

List of all members.

Classes

struct  rebind

Public Types

typedef const Tconst_pointer
typedef const Tconst_reference
typedef size_t difference_type
typedef Tpointer
typedef Treference
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 ()

Detailed Description

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

Definition at line 101 of file RegionAllocator.hpp.


Member Typedef Documentation

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

Definition at line 107 of file RegionAllocator.hpp.

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

Definition at line 109 of file RegionAllocator.hpp.

template<typename T>
typedef size_t cat::STLRegionAllocator< T >::difference_type

Definition at line 105 of file RegionAllocator.hpp.

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

Definition at line 106 of file RegionAllocator.hpp.

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

Definition at line 108 of file RegionAllocator.hpp.

template<typename T>
typedef size_t cat::STLRegionAllocator< T >::size_type

Definition at line 104 of file RegionAllocator.hpp.

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

Definition at line 110 of file RegionAllocator.hpp.


Constructor & Destructor Documentation

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

Definition at line 128 of file RegionAllocator.hpp.

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

Definition at line 133 of file RegionAllocator.hpp.

    {
    }

Member Function Documentation

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

Definition at line 118 of file RegionAllocator.hpp.

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

Definition at line 123 of file RegionAllocator.hpp.

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

Definition at line 153 of file RegionAllocator.hpp.

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

Definition at line 158 of file RegionAllocator.hpp.

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

Definition at line 163 of file RegionAllocator.hpp.

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

Definition at line 175 of file RegionAllocator.hpp.

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

Definition at line 138 of file RegionAllocator.hpp.

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

Definition at line 169 of file RegionAllocator.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