Virtual chunk that has input and output. More...
#include <tpie/pipelining/virtual.h>
Inherits tpie::pipelining::bits::virtual_chunk_base.
Public Member Functions | |
virtual_chunk () | |
Constructor that leaves the virtual chunk unassigned. More... | |
template<typename fact_t > | |
virtual_chunk (pipe_middle< fact_t > &&pipe, virtual_container *ctr=0) | |
Constructor that recursively constructs a node and takes ownership of it. More... | |
template<typename Mid > | |
virtual_chunk (const virtual_chunk< Input, Mid > &left, const virtual_chunk< Mid, Output > &right) | |
Constructor that combines two virtual chunks. More... | |
virtual_chunk (const virtual_chunk_end< Input > &left, const virtual_chunk_begin< Output > &right) | |
template<typename fact_t > | |
virtual_chunk & | operator= (pipe_middle< fact_t > &&pipe) |
Construct a node and assign it to this virtual chunk. More... | |
template<typename NextOutput > | |
virtual_chunk< Input, NextOutput > | operator| (virtual_chunk< Output, NextOutput > dest) |
Connect this virtual chunk to another chunk. More... | |
virtual_chunk_end< Input > | operator| (virtual_chunk_end< Output > dest) |
Connect this virtual chunk to another chunk. More... | |
virt_node::ptr | get_node () const |
void | set_container (virtual_container *ctr) |
bool | empty () const |
void | operator() (stream_size_type items, progress_indicator_base &pi, memory_size_type filesAvailable, memory_size_type mem, const char *file, const char *function) |
Invoke the pipeline. More... | |
void | operator() (stream_size_type items, progress_indicator_base &pi, memory_size_type mem, const char *file, const char *function) |
Invoke the pipeline with amount of available files automatically configured. More... | |
double | memory () const |
void | order_before (pipeline_base &other) |
void | plot (std::ostream &out) |
Generate a GraphViz plot of the pipeline. More... | |
void | plot_full (std::ostream &out) |
Generate a GraphViz plot of the actor graph. More... | |
void | forward_any (std::string key, any_noncopyable value) |
bool | can_fetch (std::string key) |
any_noncopyable & | fetch_any (std::string key) |
node_map::ptr | get_node_map () const |
void | output_memory (std::ostream &o) const |
size_t | uid () const |
Protected Attributes | |
virt_node::ptr | m_node |
double | m_memory |
node_map::ptr | m_nodeMap |
size_t | m_uid |
Friends | |
class | bits::access |
Virtual chunk that has input and output.
|
inline |
|
inline |
|
inline |
Constructor that combines two virtual chunks.
Assumes that the virtual nodes are already connected. You should not use this constructor directly; instead, use the pipe operator.
Definition at line 412 of file virtual.h.
|
inherited |
Invoke the pipeline.
Referenced by tpie::pipelining::bits::pipeline_base::operator()().
|
inlineinherited |
Invoke the pipeline with amount of available files automatically configured.
Definition at line 123 of file pipeline.h.
References tpie::get_file_manager(), and tpie::pipelining::bits::pipeline_base::operator()().
|
inline |
Construct a node and assign it to this virtual chunk.
Definition at line 433 of file virtual.h.
References tpie::pipelining::node::get_node_map(), tpie::log_error(), and tpie::pipelining::bits::virt_node::take_own().
|
inline |
|
inline |
Connect this virtual chunk to another chunk.
|
inlineinherited |
Generate a GraphViz plot of the pipeline.
When rendered with dot, GraphViz will place the nodes in the topological order of the item flow graph with items flowing from the top downwards.
Thus, a downwards arrow in the plot is a push edge, and an upwards arrow is a pull edge (assuming no cycles in the item flow graph).
Compared to plot_full, sorts, buffers and reversers will be represented as one node in the graph as apposed to 3 or 2. Nodes added by virtual wrapping will not be showed at all
Definition at line 65 of file pipeline.h.
|
inlineinherited |
Generate a GraphViz plot of the actor graph.
When rendered with dot, GraphViz will place the nodes in the topological order of the item flow graph with items flowing from the top downwards.
Thus, a downwards arrow in the plot is a push edge, and an upwards arrow is a pull edge (assuming no cycles in the item flow graph).
Definition at line 77 of file pipeline.h.