SCIP-SDP  2.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Private Attributes | Friends | List of all members
BlockMemoryAllocator< T > Class Template Reference

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

 BlockMemoryAllocator (SCIP *scip)
 
 BlockMemoryAllocator (const BlockMemoryAllocator &other)
 
template<class U >
 BlockMemoryAllocator (const BlockMemoryAllocator< U > &other)
 
 ~BlockMemoryAllocator ()
 
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
pointer allocate (size_type n, const_pointer=0)
 
void deallocate (pointer p, size_type n)
 
size_type max_size () const
 
void construct (pointer p, const value_type &x)
 
void destroy (pointer p)
 
void operator= (BlockMemoryAllocator const &b)
 

Private Attributes

SCIP * scip_
 

Friends

template<typename S >
bool operator== (const BlockMemoryAllocator< S > &left, const BlockMemoryAllocator< S > &right)
 
template<typename S >
bool operator!= (const BlockMemoryAllocator< S > &left, const BlockMemoryAllocator< S > &right)
 

Detailed Description

template<class T>
class BlockMemoryAllocator< T >

direct implementation of the Allocator interface

Definition at line 45 of file BlockMemoryAllocator.h.

Member Typedef Documentation

template<class T>
typedef T BlockMemoryAllocator< T >::value_type

Definition at line 48 of file BlockMemoryAllocator.h.

template<class T>
typedef value_type* BlockMemoryAllocator< T >::pointer

Definition at line 49 of file BlockMemoryAllocator.h.

template<class T>
typedef const value_type* BlockMemoryAllocator< T >::const_pointer

Definition at line 50 of file BlockMemoryAllocator.h.

template<class T>
typedef value_type& BlockMemoryAllocator< T >::reference

Definition at line 51 of file BlockMemoryAllocator.h.

template<class T>
typedef const value_type& BlockMemoryAllocator< T >::const_reference

Definition at line 52 of file BlockMemoryAllocator.h.

template<class T>
typedef std::size_t BlockMemoryAllocator< T >::size_type

Definition at line 53 of file BlockMemoryAllocator.h.

template<class T>
typedef std::ptrdiff_t BlockMemoryAllocator< T >::difference_type

Definition at line 54 of file BlockMemoryAllocator.h.

Constructor & Destructor Documentation

template<class T>
BlockMemoryAllocator< T >::BlockMemoryAllocator ( SCIP *  scip)
inline

Definition at line 59 of file BlockMemoryAllocator.h.

template<class T>
BlockMemoryAllocator< T >::BlockMemoryAllocator ( const BlockMemoryAllocator< T > &  other)
inline

Definition at line 61 of file BlockMemoryAllocator.h.

template<class T>
template<class U >
BlockMemoryAllocator< T >::BlockMemoryAllocator ( const BlockMemoryAllocator< U > &  other)
inline

Definition at line 63 of file BlockMemoryAllocator.h.

template<class T>
BlockMemoryAllocator< T >::~BlockMemoryAllocator ( )
inline

Definition at line 64 of file BlockMemoryAllocator.h.

References BlockMemoryAllocator< T >::scip_.

Member Function Documentation

template<class T>
pointer BlockMemoryAllocator< T >::address ( reference  x) const
inline

Definition at line 69 of file BlockMemoryAllocator.h.

template<class T>
const_pointer BlockMemoryAllocator< T >::address ( const_reference  x) const
inline

Definition at line 71 of file BlockMemoryAllocator.h.

template<class T>
pointer BlockMemoryAllocator< T >::allocate ( size_type  n,
const_pointer  = 0 
)
inline

Definition at line 76 of file BlockMemoryAllocator.h.

References BlockMemoryAllocator< T >::scip_.

template<class T>
void BlockMemoryAllocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline

Definition at line 86 of file BlockMemoryAllocator.h.

References BlockMemoryAllocator< T >::scip_.

template<class T>
size_type BlockMemoryAllocator< T >::max_size ( ) const
inline

Definition at line 91 of file BlockMemoryAllocator.h.

template<class T>
void BlockMemoryAllocator< T >::construct ( pointer  p,
const value_type x 
)
inline

Definition at line 95 of file BlockMemoryAllocator.h.

template<class T>
void BlockMemoryAllocator< T >::destroy ( pointer  p)
inline

Definition at line 98 of file BlockMemoryAllocator.h.

template<class T>
void BlockMemoryAllocator< T >::operator= ( BlockMemoryAllocator< T > const &  b)
inline

Definition at line 103 of file BlockMemoryAllocator.h.

References BlockMemoryAllocator< T >::scip_.

Friends And Related Function Documentation

template<class T>
template<typename S >
bool operator== ( const BlockMemoryAllocator< S > &  left,
const BlockMemoryAllocator< S > &  right 
)
friend
template<class T>
template<typename S >
bool operator!= ( const BlockMemoryAllocator< S > &  left,
const BlockMemoryAllocator< S > &  right 
)
friend

Member Data Documentation

template<class T>
SCIP* BlockMemoryAllocator< T >::scip_
private

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