The Gaudi Framework  master (e44094cc)
Loading...
Searching...
No Matches
Gaudi::TestSuite::Eventually Struct Reference
Collaboration diagram for Gaudi::TestSuite::Eventually:

Public Member Functions

 Eventually (Gaudi::Algorithm const *p, void(*a)(Gaudi::Algorithm const *))
 Eventually (Eventually const &)=delete
Eventuallyoperator= (Eventually const &)=delete
 Eventually (Eventually &&other)
Eventuallyoperator= (Eventually &&other)
 ~Eventually ()

Public Attributes

Gaudi::Algorithm const * parent = nullptr
void(* action )(Gaudi::Algorithm const *) = nullptr

Detailed Description

Definition at line 702 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ Eventually() [1/3]

Gaudi::TestSuite::Eventually::Eventually ( Gaudi::Algorithm const * p,
void(* )(Gaudi::Algorithm const *) )
inline

Definition at line 705 of file MakeAndConsume.cpp.

705: parent{ p }, action{ a } {}
void(* action)(Gaudi::Algorithm const *)
Gaudi::Algorithm const * parent

◆ Eventually() [2/3]

Gaudi::TestSuite::Eventually::Eventually ( Eventually const & )
delete

◆ Eventually() [3/3]

Gaudi::TestSuite::Eventually::Eventually ( Eventually && other)
inline

Definition at line 708 of file MakeAndConsume.cpp.

709 : parent{ std::exchange( other.parent, nullptr ) }, action{ std::exchange( other.action, nullptr ) } {}

◆ ~Eventually()

Gaudi::TestSuite::Eventually::~Eventually ( )
inline

Definition at line 715 of file MakeAndConsume.cpp.

715 {
716 if ( action ) action( parent );
717 }

Member Function Documentation

◆ operator=() [1/2]

Eventually & Gaudi::TestSuite::Eventually::operator= ( Eventually && other)
inline

Definition at line 710 of file MakeAndConsume.cpp.

710 {
711 parent = std::exchange( other.parent, nullptr );
712 action = std::exchange( other.action, nullptr );
713 return *this;
714 }

◆ operator=() [2/2]

Eventually & Gaudi::TestSuite::Eventually::operator= ( Eventually const & )
delete

Member Data Documentation

◆ action

void(* Gaudi::TestSuite::Eventually::action) (Gaudi::Algorithm const *) = nullptr

Definition at line 704 of file MakeAndConsume.cpp.

◆ parent

Gaudi::Algorithm const* Gaudi::TestSuite::Eventually::parent = nullptr

Definition at line 703 of file MakeAndConsume.cpp.


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