Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard Class Reference

RAII guard for Dial initialization and cleanup. More...

Collaboration diagram for Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard:
[legend]

Public Member Functions

 Dial_Init_Guard (Dial_Min_Paths &__owner, const GT &__g) noexcept
 Constructor.
 
 Dial_Init_Guard (const Dial_Init_Guard &)=delete
 Deleted copy constructor.
 
Dial_Init_Guardoperator= (const Dial_Init_Guard &)=delete
 Deleted copy assignment.
 
 Dial_Init_Guard (Dial_Init_Guard &&)=delete
 Deleted move constructor.
 
Dial_Init_Guardoperator= (Dial_Init_Guard &&)=delete
 Deleted move assignment.
 
void commit () noexcept
 Commits the operation, preventing cleanup on destruction.
 
 ~Dial_Init_Guard () noexcept
 Destructor.
 

Private Attributes

Dial_Min_Pathsowner = nullptr
 
const GTg = nullptr
 
bool committed = false
 

Detailed Description

template<class GT, class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
class Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard

RAII guard for Dial initialization and cleanup.

Definition at line 168 of file Dial.H.

Constructor & Destructor Documentation

◆ Dial_Init_Guard() [1/3]

template<class GT , class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::Dial_Init_Guard ( Dial_Min_Paths __owner,
const GT __g 
)
inlinenoexcept

Constructor.

Parameters
[in]__ownerThe Dial_Min_Paths instance.
[in]__gThe graph being processed.

Definition at line 179 of file Dial.H.

◆ Dial_Init_Guard() [2/3]

template<class GT , class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::Dial_Init_Guard ( const Dial_Init_Guard )
delete

Deleted copy constructor.

◆ Dial_Init_Guard() [3/3]

template<class GT , class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::Dial_Init_Guard ( Dial_Init_Guard &&  )
delete

Deleted move constructor.

◆ ~Dial_Init_Guard()

Member Function Documentation

◆ commit()

template<class GT , class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
void Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::commit ( )
inlinenoexcept

Commits the operation, preventing cleanup on destruction.

Definition at line 195 of file Dial.H.

References Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::committed.

◆ operator=() [1/2]

template<class GT , class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
Dial_Init_Guard & Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::operator= ( const Dial_Init_Guard )
delete

Deleted copy assignment.

◆ operator=() [2/2]

template<class GT , class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
Dial_Init_Guard & Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::operator= ( Dial_Init_Guard &&  )
delete

Deleted move assignment.

Member Data Documentation

◆ committed

template<class GT , class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
bool Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::committed = false
private

◆ g

template<class GT , class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
const GT* Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::g = nullptr
private

Definition at line 171 of file Dial.H.

◆ owner

template<class GT , class Distance = Dft_Dist<GT>, template< typename, class > class Itor = Node_Arc_Iterator, class SA = Dft_Show_Arc<GT>>
Dial_Min_Paths* Aleph::Dial_Min_Paths< GT, Distance, Itor, SA >::Dial_Init_Guard::owner = nullptr
private

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