Public Member Functions | Private Attributes | List of all members
coroutine::Channel< Type > Class Template Reference

#include <coroutine.h>

Public Member Functions

 Channel ()
 
 Channel (routine_t id)
 
void clear ()
 
void consumer (routine_t id)
 
bool empty ()
 
Type pop ()
 
void push (const Type &obj)
 
void push (Type &&obj)
 
size_t size ()
 
void touch ()
 

Private Attributes

std::list< Type > _list
 
routine_t _taker
 

Detailed Description

template<typename Type>
class coroutine::Channel< Type >

Definition at line 398 of file coroutine.h.

Constructor & Destructor Documentation

template<typename Type >
coroutine::Channel< Type >::Channel ( )
inline

Definition at line 401 of file coroutine.h.

template<typename Type >
coroutine::Channel< Type >::Channel ( routine_t  id)
inline

Definition at line 406 of file coroutine.h.

Member Function Documentation

template<typename Type >
void coroutine::Channel< Type >::clear ( )
inline

Definition at line 443 of file coroutine.h.

template<typename Type >
void coroutine::Channel< Type >::consumer ( routine_t  id)
inline

Definition at line 411 of file coroutine.h.

template<typename Type >
bool coroutine::Channel< Type >::empty ( )
inline

Definition at line 459 of file coroutine.h.

template<typename Type >
Type coroutine::Channel< Type >::pop ( )
inline

Definition at line 430 of file coroutine.h.

template<typename Type >
void coroutine::Channel< Type >::push ( const Type &  obj)
inline

Definition at line 416 of file coroutine.h.

template<typename Type >
void coroutine::Channel< Type >::push ( Type &&  obj)
inline

Definition at line 423 of file coroutine.h.

template<typename Type >
size_t coroutine::Channel< Type >::size ( )
inline

Definition at line 454 of file coroutine.h.

template<typename Type >
void coroutine::Channel< Type >::touch ( )
inline

Definition at line 448 of file coroutine.h.

Member Data Documentation

template<typename Type >
std::list<Type> coroutine::Channel< Type >::_list
private

Definition at line 465 of file coroutine.h.

template<typename Type >
routine_t coroutine::Channel< Type >::_taker
private

Definition at line 466 of file coroutine.h.


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


behaviortree_cpp
Author(s): Michele Colledanchise, Davide Faconti
autogenerated on Sat Feb 2 2019 04:01:55