List of all members
blaze::SerialSection< T > Class Template Reference

Section to enforce the serial execution of operations.The SerialSection class is an auxiliary helper class for the BLAZE_SERIAL_SECTION macro. It provides the functionality to detect whether a serial section is active, i.e. if the currently executed code is inside a serial section. More...

#include <SerialSection.h>

Public Member Functions

Constructor
 SerialSection (bool activate)
 Constructor for the SerialSection class. More...
 
Destructor
 ~SerialSection ()
 Destructor of the SerialSection class.
 
Conversion operator
 operator bool () const
 Conversion operator to bool. More...
 

Static Private Attributes

Member variables
static bool active_
 Activity flag for the serial section. More...
 

Detailed Description

template<typename T>
class blaze::SerialSection< T >

Section to enforce the serial execution of operations.

The SerialSection class is an auxiliary helper class for the BLAZE_SERIAL_SECTION macro. It provides the functionality to detect whether a serial section is active, i.e. if the currently executed code is inside a serial section.

Constructor & Destructor Documentation

template<typename T >
blaze::SerialSection< T >::SerialSection ( bool  activate)
inline

Constructor for the SerialSection class.

Parameters
activateActivation flag for the serial section.
Exceptions
std::runtime_errorNested serial sections detected.

Member Function Documentation

template<typename T >
blaze::SerialSection< T >::operator bool ( ) const
inline

Conversion operator to bool.

The conversion operator returns true in case a serial section is active and false otherwise.

Member Data Documentation

template<typename T >
bool blaze::SerialSection< T >::active_
staticprivate

Activity flag for the serial section.

In case a serial section is active (i.e. the currently executed code is inside a serial section), the flag is set to true, otherwise it is false.


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