casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::CallOnce Class Reference

CallOnce: func has one arg. More...

#include <Mutex.h>

Public Member Functions

 CallOnce ()
 
template<typename T >
void operator() (void(*fn)(T), T t)
 

Private Member Functions

 CallOnce (const CallOnce &)
 Forbid copy constructor. More...
 
CallOnceoperator= (const CallOnce &)
 Forbid assignment. More...
 

Private Attributes

Bool itsFlag
 

Detailed Description

CallOnce: func has one arg.

One arg can also be used as an output or to refer to an object (more args).

Definition at line 251 of file Mutex.h.

Constructor & Destructor Documentation

casacore::CallOnce::CallOnce ( )
inline

Definition at line 254 of file Mutex.h.

References itsFlag, and casacore::True.

casacore::CallOnce::CallOnce ( const CallOnce )
private

Forbid copy constructor.

Member Function Documentation

template<typename T >
void casacore::CallOnce::operator() ( void(*)(T)  fn,
t 
)
inline

Definition at line 262 of file Mutex.h.

References casacore::False, and itsFlag.

CallOnce& casacore::CallOnce::operator= ( const CallOnce )
private

Forbid assignment.

Member Data Documentation

Bool casacore::CallOnce::itsFlag
private

Definition at line 282 of file Mutex.h.

Referenced by CallOnce(), and operator()().


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