TPIE

2362a60
tpie::pipelining::empty_pipe_middle Class Reference

A empty_pipe_middle class has no effect. More...

#include <tpie/pipelining/pipe_base.h>

Inherits tpie::pipelining::bits::pipe_nonterm_base< empty_pipe_middle >.

Public Member Functions

 empty_pipe_middle (const empty_pipe_middle &)=delete
 
 empty_pipe_middle (empty_pipe_middle &&)=default
 
empty_pipe_middleoperator= (const empty_pipe_middle &)=delete
 
empty_pipe_middleoperator= (empty_pipe_middle &&)=default
 
template<typename fact_t >
pipe_middle< fact_t > operator| (pipe_middle< fact_t > &&r) const
 The pipe operator combines this generator/filter with another filter. More...
 
template<typename fact_t >
pipe_end< fact_t > operator| (pipe_end< fact_t > &&r) const
 This pipe operator combines this generator/filter with a terminator to make a pipeline. More...
 
constructed< dest_t >::type construct (const dest_t &dest)
 
empty_pipe_middle memory (double amount)
 Set memory fraction for this node in the pipeline phase. More...
 
double memory () const
 Get memory fraction for this node in the pipeline phase. More...
 
empty_pipe_middle name (const std::string &n, priority_type p=PRIORITY_USER)
 Set name for this node. More...
 
empty_pipe_middle phase_name (const std::string &n, priority_type p=PRIORITY_USER)
 Set name for this phase. More...
 
empty_pipe_middle add_to_set (node_set s)
 Get a refenerce to this node. More...
 
empty_pipe_middle add_dependencies (node_set s)
 Add a depencency to a referenced node. More...
 
empty_pipe_middle add_forwarding_dependencies (node_set s)
 Add a forwarding dependency to a referenced node. More...
 
empty_pipe_middle breadcrumb (const std::string &n)
 Set a prefix for the name of this node. More...
 
empty_pipe_middle forward_any (const std::string &key, any_noncopyable value)
 
empty_pipe_middle forward (const std::string &key, T value)
 

Protected Member Functions

empty_pipe_middleself ()
 
const empty_pipe_middleself () const
 

Detailed Description

A empty_pipe_middle class has no effect.

Definition at line 305 of file pipe_base.h.

Member Function Documentation

empty_pipe_middle tpie::pipelining::bits::pipe_base< empty_pipe_middle >::add_dependencies ( node_set  s)
inlineinherited

Add a depencency to a referenced node.

See also
factory_base::ref

Definition at line 127 of file pipe_base.h.

127  {
128  self().factory.add_dependencies(s);
129  return std::move(self());
130  }
empty_pipe_middle tpie::pipelining::bits::pipe_base< empty_pipe_middle >::add_forwarding_dependencies ( node_set  s)
inlineinherited

Add a forwarding dependency to a referenced node.

See also
factory_base::ref

Definition at line 137 of file pipe_base.h.

137  {
138  self().factory.add_forwarding_dependencies(s);
139  return std::move(self());
140  }
empty_pipe_middle tpie::pipelining::bits::pipe_base< empty_pipe_middle >::add_to_set ( node_set  s)
inlineinherited

Get a refenerce to this node.

This reference can be used to call add_dependency on another node

See also
factory_base::ref

Definition at line 117 of file pipe_base.h.

117  {
118  self().factory.add_to_set(s);
119  return std::move(self());
120  }
empty_pipe_middle tpie::pipelining::bits::pipe_base< empty_pipe_middle >::breadcrumb ( const std::string &  n)
inlineinherited

Set a prefix for the name of this node.

The name is used in the GraphViz plot generated by pipeline::plot.

See also
factory_base::push_breadcrumb

Definition at line 149 of file pipe_base.h.

149  {
150  self().factory.push_breadcrumb(n);
151  return std::move(self());
152  }
empty_pipe_middle tpie::pipelining::bits::pipe_base< empty_pipe_middle >::memory ( double  amount)
inlineinherited

Set memory fraction for this node in the pipeline phase.

In the absence of minimum and maximum memory requirements set by node implementations, the memory assigned to the node will be proportional to the amount parameter which sets the memory priority of this node in relation to the rest of the phase.

See also
factory_base::memory(double)

Definition at line 65 of file pipe_base.h.

65  {
66  self().factory.memory(amount);
67  return std::move(self());
68  }
double tpie::pipelining::bits::pipe_base< empty_pipe_middle >::memory ( ) const
inlineinherited

Get memory fraction for this node in the pipeline phase.

See also
memory(double)
factory_base::memory()

Definition at line 76 of file pipe_base.h.

76  {
77  return self().factory.memory();
78  }
empty_pipe_middle tpie::pipelining::bits::pipe_base< empty_pipe_middle >::name ( const std::string &  n,
priority_type  p = PRIORITY_USER 
)
inlineinherited

Set name for this node.

The name is used in the GraphViz plot generated by pipeline::plot.

The name priority given in the second argument should indicate how important this node is for the current phase, and is used in naming the progress indicator for this phase. The node with the highest priority name gets to name the entire phase.

See also
factory_base::name

Definition at line 92 of file pipe_base.h.

92  {
93  self().factory.name(n, p);
94  return std::move(self());
95  }
template<typename fact_t >
pipe_middle<fact_t> tpie::pipelining::empty_pipe_middle::operator| ( pipe_middle< fact_t > &&  r) const
inline

The pipe operator combines this generator/filter with another filter.

Definition at line 317 of file pipe_base.h.

317 {return std::move(r);}
template<typename fact_t >
pipe_end<fact_t> tpie::pipelining::empty_pipe_middle::operator| ( pipe_end< fact_t > &&  r) const
inline

This pipe operator combines this generator/filter with a terminator to make a pipeline.

Definition at line 324 of file pipe_base.h.

324 {return std::move(r);}
empty_pipe_middle tpie::pipelining::bits::pipe_base< empty_pipe_middle >::phase_name ( const std::string &  n,
priority_type  p = PRIORITY_USER 
)
inlineinherited

Set name for this phase.

The maximal priority phase name given for a phase wins.

See also
factory_base::phase_name

Definition at line 104 of file pipe_base.h.

104  {
105  self().factory.phase_name(n, p);
106  return std::move(self());
107  }

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