TwiceAsNice  2019-02-18
Public Member Functions | Private Attributes | Friends | List of all members
Nice::SimpleBarrier Class Reference

Barrier notifies the main Barrier class when its MemFuncActor function "completion" is called. It also checks for the Nice::Completion id so that no notifies from other commands get processed. More...

#include <Barrier.h>

Collaboration diagram for Nice::SimpleBarrier:
Collaboration graph

Public Member Functions

 SimpleBarrier (const Nice::Date &_t)
 Constructor. More...
 
virtual ~SimpleBarrier ()
 
virtual void completion (const Nice::Completion &_c)
 Nice::MemFuncActor which is called any time the complation property has changed its value. More...
 
Nice::CompletionState state ()
 Return the state of the finished command. More...
 
bool done ()
 Checks wether the command is done. More...
 
 SimpleBarrier (const Nice::Date &_t)
 Constructor. More...
 
virtual ~SimpleBarrier ()
 
virtual void completion (const Nice::Completion &_c)
 Nice::MemFuncActor which is called any time the complation property has changed its value. More...
 
Nice::CompletionState state ()
 Return the state of the finished command. More...
 
bool done ()
 Checks wether the command is done. More...
 

Private Attributes

bool m_done
 
Nice::CompletionState m_state
 
Nice::Date m_id
 
Nice::Monitor m_monitor
 

Friends

class Nice::Barrier
 

Detailed Description

Barrier notifies the main Barrier class when its MemFuncActor function "completion" is called. It also checks for the Nice::Completion id so that no notifies from other commands get processed.

Author
Florian Briegel and Juergen Berwein
Version
11.02.04
Date
2012-08-10 11:04:58 AM

Constructor & Destructor Documentation

◆ SimpleBarrier() [1/2]

Nice::SimpleBarrier::SimpleBarrier ( const Nice::Date _t)
inline

Constructor.

Parameters
_tId of the connected Nice::Completion.

◆ ~SimpleBarrier() [1/2]

virtual Nice::SimpleBarrier::~SimpleBarrier ( )
inlinevirtual

◆ SimpleBarrier() [2/2]

Nice::SimpleBarrier::SimpleBarrier ( const Nice::Date _t)
inline

Constructor.

Parameters
_tId of the connected Nice::Completion.

◆ ~SimpleBarrier() [2/2]

virtual Nice::SimpleBarrier::~SimpleBarrier ( )
inlinevirtual

Member Function Documentation

◆ completion() [1/2]

virtual void Nice::SimpleBarrier::completion ( const Nice::Completion _c)
inlinevirtual

Nice::MemFuncActor which is called any time the complation property has changed its value.

If the completion state differs from EXEC or BUSY the monitor is notified so that the main class gets informed that the command is finished. Each command property has uses its own SimpleBerrier object which processes value changes.

Parameters
_cNew Nice::Completion set by the executed command.

◆ completion() [2/2]

virtual void Nice::SimpleBarrier::completion ( const Nice::Completion _c)
inlinevirtual

Nice::MemFuncActor which is called any time the complation property has changed its value.

If the completion state differs from EXEC or BUSY the monitor is notified so that the main class gets informed that the command is finished. Each command property has uses its own SimpleBerrier object which processes value changes.

Parameters
_cNew Nice::Completion set by the executed command.

◆ done() [1/2]

bool Nice::SimpleBarrier::done ( )
inline

Checks wether the command is done.

Returns
True if the command is done.

◆ done() [2/2]

bool Nice::SimpleBarrier::done ( )
inline

Checks wether the command is done.

Returns
True if the command is done.

◆ state() [1/2]

Nice::CompletionState Nice::SimpleBarrier::state ( )
inline

Return the state of the finished command.

Returns
State of the finished command.

◆ state() [2/2]

Nice::CompletionState Nice::SimpleBarrier::state ( )
inline

Return the state of the finished command.

Returns
State of the finished command.

Friends And Related Function Documentation

◆ Nice::Barrier

Nice::Barrier
friend

Member Data Documentation

◆ m_done

bool Nice::SimpleBarrier::m_done
private

◆ m_id

Nice::Date Nice::SimpleBarrier::m_id
private

◆ m_monitor

Nice::Monitor Nice::SimpleBarrier::m_monitor
private

Monitor which notifies the main Barrier class

◆ m_state

Nice::CompletionState Nice::SimpleBarrier::m_state
private

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