Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::GC::Alloc< T, scan, collect > Class Template Reference

#include <gc-alloc.h>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef T * pointer
 
typedef std::size_t size_type
 

Public Member Functions

 Alloc ()=default
 
template<typename U >
 Alloc (Alloc< U, scan, collect > const &)
 
pointer allocate (size_type count, void const *=nullptr)
 
void deallocate (pointer p, size_type)
 

Detailed Description

template<typename T, ScanPolicy scan = SCANNED, CollectionPolicy collect = AUTO>
class Inkscape::GC::Alloc< T, scan, collect >

Definition at line 26 of file gc-alloc.h.

Member Typedef Documentation

◆ pointer

template<typename T , ScanPolicy scan = SCANNED, CollectionPolicy collect = AUTO>
typedef T* Inkscape::GC::Alloc< T, scan, collect >::pointer

Definition at line 29 of file gc-alloc.h.

◆ size_type

template<typename T , ScanPolicy scan = SCANNED, CollectionPolicy collect = AUTO>
typedef std::size_t Inkscape::GC::Alloc< T, scan, collect >::size_type

Definition at line 30 of file gc-alloc.h.

◆ value_type

template<typename T , ScanPolicy scan = SCANNED, CollectionPolicy collect = AUTO>
typedef T Inkscape::GC::Alloc< T, scan, collect >::value_type

Definition at line 28 of file gc-alloc.h.

Constructor & Destructor Documentation

◆ Alloc() [1/2]

template<typename T , ScanPolicy scan = SCANNED, CollectionPolicy collect = AUTO>
Inkscape::GC::Alloc< T, scan, collect >::Alloc ( )
default

◆ Alloc() [2/2]

template<typename T , ScanPolicy scan = SCANNED, CollectionPolicy collect = AUTO>
template<typename U >
Inkscape::GC::Alloc< T, scan, collect >::Alloc ( Alloc< U, scan, collect > const &  )
inline

Definition at line 36 of file gc-alloc.h.

Member Function Documentation

◆ allocate()

template<typename T , ScanPolicy scan = SCANNED, CollectionPolicy collect = AUTO>
pointer Inkscape::GC::Alloc< T, scan, collect >::allocate ( size_type  count,
void const *  = nullptr 
)
inline

Definition at line 38 of file gc-alloc.h.

◆ deallocate()

template<typename T , ScanPolicy scan = SCANNED, CollectionPolicy collect = AUTO>
void Inkscape::GC::Alloc< T, scan, collect >::deallocate ( pointer  p,
size_type   
)
inline

Definition at line 42 of file gc-alloc.h.

References Inkscape::GC::GC.


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