The Gaudi Framework  master (37c0b60a)
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 618 of file MakeAndConsume.cpp.

Constructor & Destructor Documentation

◆ Eventually() [1/3]

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

Definition at line 621 of file MakeAndConsume.cpp.

621 : parent{ p }, action{ a } {}

◆ Eventually() [2/3]

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

◆ Eventually() [3/3]

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

Definition at line 624 of file MakeAndConsume.cpp.

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

◆ ~Eventually()

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

Definition at line 631 of file MakeAndConsume.cpp.

631  {
632  if ( action ) action( parent );
633  }

Member Function Documentation

◆ operator=() [1/2]

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

Definition at line 626 of file MakeAndConsume.cpp.

626  {
627  parent = std::exchange( other.parent, nullptr );
628  action = std::exchange( other.action, nullptr );
629  return *this;
630  }

◆ 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 620 of file MakeAndConsume.cpp.

◆ parent

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

Definition at line 619 of file MakeAndConsume.cpp.


The documentation for this struct was generated from the following file:
Gaudi::TestSuite::Eventually::action
void(* action)(Gaudi::Algorithm const *)
Definition: MakeAndConsume.cpp:620
Gaudi::TestSuite::Eventually::parent
Gaudi::Algorithm const * parent
Definition: MakeAndConsume.cpp:619