Lumiera  0.pre.03
»edit your freedom«
TypedAllocationManager::Slot< XOX > Struct Template Reference

#include "lib/typed-allocation-manager.hpp"

Description

template<class XOX>
struct lib::TypedAllocationManager::Slot< XOX >

a token representing a newly opened slot capable for holding an object of type XOX .

The receiver is responsible for

  • either calling releaseSlot
  • or building a smart-ptr / handle wired to the deleter function

Definition at line 143 of file typed-allocation-manager.hpp.

Public Member Functions

shared_ptr< XOX > build (XOX *toTrack)
 build a refcounting smart-ptr, complete with back-link to the manager for de-allocation
 
Killer< XOX > const & getDeleter ()
 

Public Attributes

void *const storage_
 pointer to the allocated storage with sizeof(XOX) bytes
 

Friends

class TypedAllocationManager
 

Protected Member Functions

 Slot (_TheManager *don, void *mem)
 

Additional Inherited Members

- Private Member Functions inherited from TypedAllocationManager::Killer< XOX >
void operator() (XOX *victim)
 
 Killer (_TheManager *m)
 
+ Inheritance diagram for TypedAllocationManager::Slot< XOX >:
+ Collaboration diagram for TypedAllocationManager::Slot< XOX >:

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