fix8  version 1.4.0
Open Source C++ FIX Framework
coroutine Class Reference

#include <coroutine.hpp>

Public Member Functions

 coroutine ()
 
bool is_child () const
 
bool is_parent () const
 
bool is_complete () const
 

Private Attributes

int value_
 

Friends

class coroutine_ref
 

Detailed Description

Definition at line 14 of file coroutine.hpp.

Constructor & Destructor Documentation

coroutine::coroutine ( )
inline

Definition at line 20 of file coroutine.hpp.

20 : value_(0) {}
int value_
Definition: coroutine.hpp:17

Member Function Documentation

bool coroutine::is_child ( ) const
inline

Definition at line 21 of file coroutine.hpp.

Referenced by is_parent().

21 { return value_ < 0; }
int value_
Definition: coroutine.hpp:17
bool coroutine::is_complete ( ) const
inline

Definition at line 23 of file coroutine.hpp.

23 { return value_ == -1; }
int value_
Definition: coroutine.hpp:17
bool coroutine::is_parent ( ) const
inline

Definition at line 22 of file coroutine.hpp.

References is_child().

22 { return !is_child(); }
bool is_child() const
Definition: coroutine.hpp:21

Friends And Related Function Documentation

friend class coroutine_ref
friend

Definition at line 16 of file coroutine.hpp.

Member Data Documentation

int coroutine::value_
private

Definition at line 17 of file coroutine.hpp.


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