libbio
Loading...
Searching...
No Matches
Public Member Functions | List of all members
bio::pointer_arena::Object< T > Class Template Reference

#include <PointerArena.h>

Public Member Functions

 Object ()
 
 Object (const T &value)
 
template<typename A1 >
 Object (const A1 &a1)
 
template<typename A1 , typename A2 >
 Object (const A1 &a1, A2 &a2)
 
template<typename A1 , typename A2 >
 Object (const A1 &a1, const A2 &a2)
 
 ~Object ()
 
TGet ()
 
const TGet () const
 

Detailed Description

template<typename T>
class bio::pointer_arena::Object< T >

RAII-ish arena object helper: constructs T inside the process pointer arena and runs T's destructor at scope exit. The arena owns the bytes for process lifetime; the helper owns only the lifetime of the object stored there.

Constructor & Destructor Documentation

◆ Object() [1/5]

template<typename T >
bio::pointer_arena::Object< T >::Object ( )
inline

◆ Object() [2/5]

template<typename T >
bio::pointer_arena::Object< T >::Object ( const T value)
inlineexplicit

◆ Object() [3/5]

template<typename T >
template<typename A1 >
bio::pointer_arena::Object< T >::Object ( const A1 a1)
inlineexplicit

◆ Object() [4/5]

template<typename T >
template<typename A1 , typename A2 >
bio::pointer_arena::Object< T >::Object ( const A1 a1,
A2 a2 
)
inline

◆ Object() [5/5]

template<typename T >
template<typename A1 , typename A2 >
bio::pointer_arena::Object< T >::Object ( const A1 a1,
const A2 a2 
)
inline

◆ ~Object()

template<typename T >
bio::pointer_arena::Object< T >::~Object ( )
inline

Member Function Documentation

◆ Get() [1/2]

template<typename T >
T * bio::pointer_arena::Object< T >::Get ( )
inline

◆ Get() [2/2]

template<typename T >
const T * bio::pointer_arena::Object< T >::Get ( ) const
inline

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