TPIE

v1.1rc1-6-g0c97303
tpie::pipelining::factory_4< R, T1, T2, T3, T4 > Class Template Reference

Node factory for 4-argument generator. More...

#include <tpie/pipelining/factory_helpers.h>

Inherits tpie::pipelining::factory_base.

Classes

struct  constructed
 

Public Member Functions

 factory_4 (T1 t1, T2 t2, T3 t3, T4 t4)
 
template<typename dest_t >
R< dest_t > construct (const dest_t &dest) const
 
void memory (double amount)
 
double memory () const
 
void hook_initialization (factory_init_hook *hook)
 Add a node initialization hook. More...
 
void copy_hooks_to (factory_base &other) const
 Copy the hooks that have been added to this factory to another. More...
 
void init_segment (node &r) const
 
void init_node (node &r) const
 
void init_sub_node (node &r) const
 
void name (const std::string &n, priority_type p)
 
void push_breadcrumb (const std::string &n)
 

Detailed Description

template<template< typename dest_t > class R, typename T1, typename T2, typename T3, typename T4>
class tpie::pipelining::factory_4< R, T1, T2, T3, T4 >

Node factory for 4-argument generator.

Definition at line 205 of file factory_helpers.h.

Member Function Documentation

void tpie::pipelining::factory_base::copy_hooks_to ( factory_base other) const
inlineinherited

Copy the hooks that have been added to this factory to another.

Definition at line 63 of file factory_base.h.

63  {
64  for (size_t i = 0; i < m_hooks.size(); ++i) {
65  other.m_hooks.push_back(m_hooks[i]);
66  }
67  }
void tpie::pipelining::factory_base::hook_initialization ( factory_init_hook hook)
inlineinherited

Add a node initialization hook.

When a node is instantiated in construct(), the given hook will get a chance to do some additional initialization.

Definition at line 56 of file factory_base.h.

56  {
57  m_hooks.push_back(hook);
58  }

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