CrystalSpace

Public API Reference

CS::Memory::AllocatorPointerWrapper< T, Allocator > Struct Template Reference

Class to store a pointer that is allocated from Allocator, to eliminate overhead from a possibly empty Allocator. More...

#include <csutil/allocator.h>

List of all members.

Public Member Functions

 AllocatorPointerWrapper (const Allocator &alloc, T *p)
 AllocatorPointerWrapper (T *p)
 AllocatorPointerWrapper (const Allocator &alloc)
 AllocatorPointerWrapper ()

Public Attributes

T * p
 The allocated pointer.


Detailed Description

template<typename T, typename Allocator>
struct CS::Memory::AllocatorPointerWrapper< T, Allocator >

Class to store a pointer that is allocated from Allocator, to eliminate overhead from a possibly empty Allocator.

See http://www.cantrip.org/emptyopt.html for details.

Definition at line 362 of file allocator.h.


Member Data Documentation

template<typename T, typename Allocator>
T* CS::Memory::AllocatorPointerWrapper< T, Allocator >::p

The allocated pointer.

Definition at line 365 of file allocator.h.

Referenced by csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::csArray(), CS::DataBuffer< Allocator >::DataBuffer(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::DeleteAll(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::DeleteIndex(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::DeleteIndexFast(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::DeleteRange(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Find(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::FindKey(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::FindSortedKey(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Get(), CS::DataBuffer< Allocator >::GetData(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::GetExtend(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::GetIndex(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::InitRegion(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Insert(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::InsertSorted(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Pop(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Push(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Put(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Section(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::SetData(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::SetSize(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::ShrinkBestFit(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Sort(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Top(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::TransferTo(), csArray< iEventHandler *, csRefArrayElementHandler< iEventHandler * >, CS::Memory::AllocatorMalloc >::Truncate(), and CS::DataBuffer< Allocator >::~DataBuffer().


The documentation for this struct was generated from the following file:
Generated for Crystal Space 1.2.1 by doxygen 1.5.3