dynamic_graph_manager
dynamic_graph::internal::BindedSignal< T, BufferSize > Struct Template Reference
Inheritance diagram for dynamic_graph::internal::BindedSignal< T, BufferSize >:
Collaboration diagram for dynamic_graph::internal::BindedSignal< T, BufferSize >:

Public Types

typedef dynamicgraph::Signal< T, int > Signal_t
 
typedef boost::shared_ptr< Signal_t > SignalPtr_t
 
typedef std::vector< T > buffer_t
 
typedef buffer_t::size_type size_type
 
- Public Types inherited from dynamic_graph::internal::BindedSignalBase
typedef boost::shared_ptr< ros::Subscriber > Subscriber_t
 

Public Member Functions

 BindedSignal (RosQueuedSubscribe *e)
 
void clear ()
 See comments in reader and writer for details about synchronisation.
 
bool empty () const
 
bool full () const
 
size_type size () const
 
template<typename R >
void writer (const R &data)
 
T & reader (T &val, int time)
 
- Public Member Functions inherited from dynamic_graph::internal::BindedSignalBase
 BindedSignalBase (RosQueuedSubscribe *e)
 

Public Attributes

SignalPtr_t signal
 
size_type frontIdx
 Index of the next value to be read.
 
size_type backIdx
 Index of the slot where to write next value (does not contain valid data). More...
 
buffer_t buffer
 
boost::mutex wmutex
 
boost::mutex rmutex
 
last
 
bool init
 
- Public Attributes inherited from dynamic_graph::internal::BindedSignalBase
Subscriber_t subscriber
 
RosQueuedSubscribeentity
 

Member Data Documentation

◆ backIdx

template<typename T , int BufferSize>
size_type dynamic_graph::internal::BindedSignal< T, BufferSize >::backIdx

Index of the slot where to write next value (does not contain valid data).


The documentation for this struct was generated from the following files: