Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

backward::details::handle< T, Deleter > Class Template Reference

#include <ogdf/lib/backward/backward.hpp>

Public Types

using const_ref_t = const typename rm_ptr< T >::type &
 
using ref_t = typename rm_ptr< T >::type &
 

Public Member Functions

 handle ()
 
 handle (const handle &from)
 
 handle (T val)
 
 ~handle ()
 
get ()
 
 operator const dummy * () const
 
T * operator& ()
 
ref_t operator* ()
 
const_ref_t operator* () const
 
operator-> ()
 
const T operator-> () const
 
handleoperator= (const handle &from)
 
ref_t operator[] (size_t idx)
 
release ()
 
void reset (T new_val)
 
void swap (handle &b)
 

Private Attributes

bool _empty
 
_val
 

Detailed Description

template<typename T, typename Deleter = deleter<void, void*, &::free>>
class backward::details::handle< T, Deleter >

Definition at line 313 of file backward.hpp.

Member Typedef Documentation

◆ const_ref_t

template<typename T , typename Deleter = deleter<void, void*, &::free>>
using backward::details::handle< T, Deleter >::const_ref_t = const typename rm_ptr<T>::type&

Definition at line 379 of file backward.hpp.

◆ ref_t

template<typename T , typename Deleter = deleter<void, void*, &::free>>
using backward::details::handle< T, Deleter >::ref_t = typename rm_ptr<T>::type&

Definition at line 378 of file backward.hpp.

Constructor & Destructor Documentation

◆ ~handle()

template<typename T , typename Deleter = deleter<void, void*, &::free>>
backward::details::handle< T, Deleter >::~handle ( )
inline

Definition at line 324 of file backward.hpp.

◆ handle() [1/3]

template<typename T , typename Deleter = deleter<void, void*, &::free>>
backward::details::handle< T, Deleter >::handle ( )
inlineexplicit

Definition at line 330 of file backward.hpp.

◆ handle() [2/3]

template<typename T , typename Deleter = deleter<void, void*, &::free>>
backward::details::handle< T, Deleter >::handle ( val)
inlineexplicit

Definition at line 331 of file backward.hpp.

◆ handle() [3/3]

template<typename T , typename Deleter = deleter<void, void*, &::free>>
backward::details::handle< T, Deleter >::handle ( const handle< T, Deleter > &  from)
inlineexplicit

Definition at line 341 of file backward.hpp.

Member Function Documentation

◆ get()

template<typename T , typename Deleter = deleter<void, void*, &::free>>
T backward::details::handle< T, Deleter >::get ( )
inline

Definition at line 361 of file backward.hpp.

◆ operator const dummy *()

template<typename T , typename Deleter = deleter<void, void*, &::free>>
backward::details::handle< T, Deleter >::operator const dummy * ( ) const
inline

Definition at line 355 of file backward.hpp.

◆ operator&()

template<typename T , typename Deleter = deleter<void, void*, &::free>>
T* backward::details::handle< T, Deleter >::operator& ( )
inline

Definition at line 385 of file backward.hpp.

◆ operator*() [1/2]

template<typename T , typename Deleter = deleter<void, void*, &::free>>
ref_t backward::details::handle< T, Deleter >::operator* ( )
inline

Definition at line 380 of file backward.hpp.

◆ operator*() [2/2]

template<typename T , typename Deleter = deleter<void, void*, &::free>>
const_ref_t backward::details::handle< T, Deleter >::operator* ( ) const
inline

Definition at line 381 of file backward.hpp.

◆ operator->() [1/2]

template<typename T , typename Deleter = deleter<void, void*, &::free>>
T backward::details::handle< T, Deleter >::operator-> ( )
inline

Definition at line 375 of file backward.hpp.

◆ operator->() [2/2]

template<typename T , typename Deleter = deleter<void, void*, &::free>>
const T backward::details::handle< T, Deleter >::operator-> ( ) const
inline

Definition at line 376 of file backward.hpp.

◆ operator=()

template<typename T , typename Deleter = deleter<void, void*, &::free>>
handle& backward::details::handle< T, Deleter >::operator= ( const handle< T, Deleter > &  from)
inline

Definition at line 345 of file backward.hpp.

◆ operator[]()

template<typename T , typename Deleter = deleter<void, void*, &::free>>
ref_t backward::details::handle< T, Deleter >::operator[] ( size_t  idx)
inline

Definition at line 382 of file backward.hpp.

◆ release()

template<typename T , typename Deleter = deleter<void, void*, &::free>>
T backward::details::handle< T, Deleter >::release ( )
inline

Definition at line 364 of file backward.hpp.

◆ reset()

template<typename T , typename Deleter = deleter<void, void*, &::free>>
void backward::details::handle< T, Deleter >::reset ( new_val)
inline

Definition at line 351 of file backward.hpp.

◆ swap()

template<typename T , typename Deleter = deleter<void, void*, &::free>>
void backward::details::handle< T, Deleter >::swap ( handle< T, Deleter > &  b)
inline

Definition at line 368 of file backward.hpp.

Member Data Documentation

◆ _empty

template<typename T , typename Deleter = deleter<void, void*, &::free>>
bool backward::details::handle< T, Deleter >::_empty
private

Definition at line 316 of file backward.hpp.

◆ _val

template<typename T , typename Deleter = deleter<void, void*, &::free>>
T backward::details::handle< T, Deleter >::_val
private

Definition at line 314 of file backward.hpp.


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