bux API Reference 1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
bux::C_AutoNode< T > Class Template Reference

#include <XAutoPtr.h>

Inheritance diagram for bux::C_AutoNode< T >:

Public Member Functions

constexpr C_AutoNode () noexcept
 
constexpr C_AutoNode (T *p, bool owned) noexcept
 
 C_AutoNode (C_AutoNode &another) noexcept
 
template<class T2 >
 C_AutoNode (C_AutoNode< T2 > &another) noexcept
 
 ~C_AutoNode ()
 
void operator= (C_AutoNode &another)
 
template<class T2 >
void operator= (C_AutoNode< T2 > &another)
 
 operator bool () const noexcept
 
template<class T2 >
 operator T2 * () const noexcept
 
T * operator-> () const noexcept
 
T ** operator& () noexcept
 
T & operator* () const noexcept
 
void assign (T *ptr, bool owned)
 
void reset (T *ptr) noexcept
 
void clear () noexcept
 
T * disown () noexcept
 
T * get () const noexcept
 
bool owned () const noexcept
 
void swap (C_AutoNode &another) noexcept
 
template<class T2 >
bool takeOver (C_AutoNode< T2 > &another)
 

Friends

template<class T2 >
class C_AutoNode
 

Detailed Description

template<class T>
class bux::C_AutoNode< T >

Definition at line 12 of file XAutoPtr.h.

Constructor & Destructor Documentation

◆ C_AutoNode() [1/4]

template<class T >
bux::C_AutoNode< T >::C_AutoNode ( )
inlineconstexprnoexcept

Definition at line 17 of file XAutoPtr.h.

◆ C_AutoNode() [2/4]

template<class T >
bux::C_AutoNode< T >::C_AutoNode ( T * p,
bool owned )
inlineconstexprnoexcept

Definition at line 18 of file XAutoPtr.h.

◆ C_AutoNode() [3/4]

template<class T >
bux::C_AutoNode< T >::C_AutoNode ( C_AutoNode< T > & another)
inlineexplicitnoexcept

Definition at line 19 of file XAutoPtr.h.

◆ C_AutoNode() [4/4]

template<class T >
template<class T2 >
bux::C_AutoNode< T >::C_AutoNode ( C_AutoNode< T2 > & another)
inlineexplicitnoexcept

Definition at line 22 of file XAutoPtr.h.

◆ ~C_AutoNode()

template<class T >
bux::C_AutoNode< T >::~C_AutoNode ( )

Definition at line 72 of file XAutoPtr.h.

Member Function Documentation

◆ assign()

template<class T >
void bux::C_AutoNode< T >::assign ( T * ptr,
bool owned )

Definition at line 94 of file XAutoPtr.h.

Referenced by bux::C_AutoNode< T >::clear(), bux::C_AutoNode< T >::operator&(), and bux::C_AutoNode< T >::reset().

Here is the caller graph for this function:

◆ clear()

template<class T >
void bux::C_AutoNode< T >::clear ( )
inlinenoexcept

Definition at line 36 of file XAutoPtr.h.

References bux::C_AutoNode< T >::assign().

◆ disown()

template<class T >
T * bux::C_AutoNode< T >::disown ( )
noexcept

Definition at line 101 of file XAutoPtr.h.

◆ get()

template<class T >
T * bux::C_AutoNode< T >::get ( ) const
inlinenoexcept

Definition at line 38 of file XAutoPtr.h.

Referenced by bux::C_AutoNode< T >::takeOver().

Here is the caller graph for this function:

◆ operator bool()

template<class T >
bux::C_AutoNode< T >::operator bool ( ) const
inlinenoexcept

Definition at line 28 of file XAutoPtr.h.

◆ operator T2 *()

template<class T >
template<class T2 >
bux::C_AutoNode< T >::operator T2 * ( ) const
inlinenoexcept

Definition at line 30 of file XAutoPtr.h.

◆ operator&()

template<class T >
T ** bux::C_AutoNode< T >::operator& ( )
inlinenoexcept

Definition at line 32 of file XAutoPtr.h.

References bux::C_AutoNode< T >::assign().

◆ operator*()

template<class T >
T & bux::C_AutoNode< T >::operator* ( ) const
inlinenoexcept

Definition at line 33 of file XAutoPtr.h.

◆ operator->()

template<class T >
T * bux::C_AutoNode< T >::operator-> ( ) const
inlinenoexcept

Definition at line 31 of file XAutoPtr.h.

◆ operator=() [1/2]

template<class T >
void bux::C_AutoNode< T >::operator= ( C_AutoNode< T > & another)

Definition at line 79 of file XAutoPtr.h.

◆ operator=() [2/2]

template<class T >
template<class T2 >
void bux::C_AutoNode< T >::operator= ( C_AutoNode< T2 > & another)

Definition at line 87 of file XAutoPtr.h.

◆ owned()

template<class T >
bool bux::C_AutoNode< T >::owned ( ) const
inlinenoexcept

Definition at line 39 of file XAutoPtr.h.

◆ reset()

template<class T >
void bux::C_AutoNode< T >::reset ( T * ptr)
inlinenoexcept

Definition at line 35 of file XAutoPtr.h.

References bux::C_AutoNode< T >::assign().

◆ swap()

template<class T >
void bux::C_AutoNode< T >::swap ( C_AutoNode< T > & another)
noexcept

Definition at line 112 of file XAutoPtr.h.

◆ takeOver()

template<class T >
template<class T2 >
bool bux::C_AutoNode< T >::takeOver ( C_AutoNode< T2 > & another)

Definition at line 125 of file XAutoPtr.h.

References bux::C_AutoNode< T >::get().

Friends And Related Symbol Documentation

◆ C_AutoNode

template<class T >
template<class T2 >
friend class C_AutoNode
friend

Definition at line 51 of file XAutoPtr.h.


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