Disk ARchive  2.7.14
Full featured and portable backup and archiving tool
Public Member Functions | Private Attributes | List of all members
libdar::smart_node< T > Class Template Reference

class which holds the address of the allocated memory for many smart_pointers More...

#include <smart_pointer.hpp>

+ Collaboration diagram for libdar::smart_node< T >:

Public Member Functions

 smart_node (T *arg)
 
 smart_node (const smart_node &ref)=delete
 
 smart_node (smart_node &&ref) noexcept=delete
 
smart_nodeoperator= (const smart_node &ref)=delete
 
smart_nodeoperator= (smart_node &&ref)=delete
 
void add_ref ()
 
void del_ref ()
 
T & get_val ()
 

Private Attributes

T * ptr
 
infinint count_ref
 

Detailed Description

template<class T>
class libdar::smart_node< T >

class which holds the address of the allocated memory for many smart_pointers

Note
it should not be used directly, rather see below the smart_pointer class template

Definition at line 46 of file smart_pointer.hpp.

Constructor & Destructor Documentation

◆ smart_node()

template<class T >
libdar::smart_node< T >::smart_node ( T *  arg)
inline
Note
the given pointed to object passes under the responsibility of the smart_node

Definition at line 50 of file smart_pointer.hpp.


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