SHORE API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
shore::conversion_pipe< T, U, Converter > Class Template Reference

Simply pass the data on, but perform a type conversion. More...

Inheritance diagram for shore::conversion_pipe< T, U, Converter >:
shore::pipe_facade< conversion_pipe< T, U >, T, U > shore::buffer_chain< U >

Friends

class pipeline_core_access
 

Additional Inherited Members

- Public Types inherited from shore::pipe_facade< conversion_pipe< T, U >, T, U >
typedef T append_type
 
typedef U current_type
 
- Public Types inherited from shore::buffer_chain< U >
typedef plugin< U > plugin_type
 
- Public Member Functions inherited from shore::pipe_facade< conversion_pipe< T, U >, T, U >
 pipe_facade (const pipe_facade &t)
 Copy constructor: need to bind the slots to the correct object.
 
void disconnect_inputs ()
 Disconnect all connected upstream pipeline elements.
 
void disconnect_outputs ()
 Disconnect all connected downstream pipeline elements.
 
signal< const U & > & sigdata ()
 
signal< void > & sigflush ()
 
slot< const T & > & slotdata ()
 
slot< void > & slotflush ()
 
slot< void > & slotfreeze ()
 
slot< void > & slotthaw ()
 
signal< void > & sigfreeze ()
 
signal< void > & sigthaw ()
 
- Public Member Functions inherited from shore::buffer_chain< U >
 buffer_chain ()
 Constructor - initialize empty buffer chain.
 
 ~buffer_chain ()
 Destructor - free all buffers.
 
void add_plugin (plugin_type *const p)
 Add a plugin object.
 
void clear_plugins ()
 Remove all plugin objects.
 
- Protected Types inherited from shore::pipe_facade< conversion_pipe< T, U >, T, U >
typedef pipe_facade
< conversion_pipe< T, U >, T,
U, false > 
facade_type
 
- Protected Member Functions inherited from shore::pipe_facade< conversion_pipe< T, U >, T, U >
void emit (const U &d)
 Called by derived classes to emit data to downstream pipeline elements. More...
 
- Protected Member Functions inherited from shore::buffer_chain< U >
bool buffer_chain_ready () const
 Check if there is an element ready to be retrieved.
 
U & buffer_chain_push ()
 Get an empty buffer.
 
bool buffer_chain_prepare ()
 Apply plugins after having initialized a new buffer.
 
bool buffer_chain_flush (const bool undo_last_push)
 Indicate that no more data will be added. More...
 
const U & buffer_chain_front () const
 Get the contents of the first buffer.
 
bool buffer_chain_waiting () const
 Check that the buffer chain is neither ready nor flushed.
 
bool buffer_chain_pop ()
 Discard the buffer holding the first element.
 
void buffer_chain_reset ()
 Clear all data and reset the state of the buffer chain.
 
U * buffer_chain_swap (U *buf)
 Exchange the last pushed buffer with an external one. More...
 

Detailed Description

template<typename T, typename U = T, typename Converter = conversion<T,U>>
class shore::conversion_pipe< T, U, Converter >

Simply pass the data on, but perform a type conversion.


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