kblib 0.2.3
General utilities library for modern C++
kblib::live_wrapper< T > Class Template Reference

#include <kblib/memory.h>

Inheritance diagram for kblib::live_wrapper< T >:
Collaboration diagram for kblib::live_wrapper< T >:

Classes

struct  _destroy
 

Public Member Functions

live_ptr< T > ref ()
 
live_ptr< const T > ref () const
 
live_ptr< const T > cref () const
 

Public Attributes

data
 
null_construct< detail_memory::on_destroy< std::vector< live_wrapper ** >, _destroy > > _observers {}
 

Detailed Description

template<typename T>
class kblib::live_wrapper< T >

Definition at line 194 of file memory.h.

Member Function Documentation

◆ cref()

template<typename T >
live_ptr< const T > kblib::live_wrapper< T >::cref

Definition at line 413 of file memory.h.

◆ ref() [1/2]

template<typename T >
live_ptr< T > kblib::live_wrapper< T >::ref

Definition at line 403 of file memory.h.

◆ ref() [2/2]

template<typename T >
live_ptr< const T > kblib::live_wrapper< T >::ref

Definition at line 408 of file memory.h.

Member Data Documentation

◆ _observers

template<typename T >
null_construct< detail_memory::on_destroy<std::vector<live_wrapper**>, _destroy> > kblib::live_wrapper< T >::_observers {}

Definition at line 215 of file memory.h.

◆ data

template<typename T >
T kblib::live_wrapper< T >::data

Definition at line 200 of file memory.h.


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