TPIE

2362a60
tpie::pipelining::bits::termpair_factory< fact1_t, termfact2_t > Class Template Reference

Inherits tpie::pipelining::bits::pair_factory_base< termpair_factory< fact1_t, termfact2_t > >.

Public Types

typedef fact1_t::template
constructed< typename
termfact2_t::constructed_type >
::type 
constructed_type
 

Public Member Functions

 termpair_factory (const termpair_factory &)=delete
 
 termpair_factory (termpair_factory &&)=default
 
termpair_factoryoperator= (const termpair_factory &)=delete
 
termpair_factoryoperator= (termpair_factory &&)=default
 
 termpair_factory (fact1_t &&fact1, termfact2_t &&fact2)
 
constructed_type construct ()
 
constructed_type construct_copy ()
 
void recursive_connected_check () const
 
void hook_initialization_impl (factory_init_hook *hook)
 
double memory () const
 
void name (const std::string &n, priority_type)
 
void push_breadcrumb (const std::string &n)
 
void hook_initialization (factory_init_hook *hook)
 See factory_base::hook_initialization. More...
 
pipe_t record (size_t idx, pipe_t &&pipe) const
 Internal - used by subclasses to record references to node_maps for a later connectivity check. More...
 
void assert_connected () const
 
termpair_factory< fact1_t,
termfact2_t > & 
finalize ()
 Signal that this factory is used to instantiate a pipeline_impl, i.e. More...
 
void set_destination_kind_push ()
 
void set_destination_kind_pull ()
 

Public Attributes

fact1_t fact1
 
termfact2_t fact2
 

Detailed Description

template<typename fact1_t, typename termfact2_t>
class tpie::pipelining::bits::termpair_factory< fact1_t, termfact2_t >

Definition at line 194 of file pair_factory.h.

Member Function Documentation

termpair_factory< fact1_t, termfact2_t > & tpie::pipelining::bits::pair_factory_base< termpair_factory< fact1_t, termfact2_t > >::finalize ( )
inlineinherited

Signal that this factory is used to instantiate a pipeline_impl, i.e.

that it was made by piping together a pipe_begin and a pipe_end.

Definition at line 116 of file pair_factory.h.

116  {
117  m_final = true;
118  return self();
119  }
void tpie::pipelining::bits::pair_factory_base< termpair_factory< fact1_t, termfact2_t > >::hook_initialization ( factory_init_hook hook)
inlineinherited

See factory_base::hook_initialization.

Definition at line 74 of file pair_factory.h.

74  {
75  self().hook_initialization_impl(hook);
76  }
pipe_t tpie::pipelining::bits::pair_factory_base< termpair_factory< fact1_t, termfact2_t > >::record ( size_t  idx,
pipe_t &&  pipe 
) const
inlineinherited

Internal - used by subclasses to record references to node_maps for a later connectivity check.

Definition at line 83 of file pair_factory.h.

83  {
84  m_maps[idx] = pipe.get_node_map();
85  if (idx == 0 && m_final) {
86  // Now is the opportunity to check that the constructed pipeline is
87  // connected.
88  assert_connected();
89  self().recursive_connected_check();
90  }
91  return std::move(pipe);
92  }

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