Documentation
Public Member Functions | |
virtual | ~TTBase ()=default |
virtual void | invoke () |
bool | set_trace_instance (bool value) |
bool | tracing () const |
template<typename T , typename... Ts> | |
void | trace (const T &t, const Ts &...ts) |
Like ttg::trace(), but only produces tracing output if this->tracing()==true More... | |
bool | set_lazy_pull_instance (bool value) |
bool | is_lazy_pull () |
std::optional< std::reference_wrapper< const TTBase > > | ttg () const |
const TTBase * | ttg_ptr () const |
bool | is_ttg () const |
void | set_name (const std::string &name) |
Sets the name of this operation. More... | |
const std::string & | get_name () const |
Gets the name of this operation. More... | |
std::string | get_class_name () const |
Gets the demangled class name (uses RTTI) More... | |
const std::vector< TerminalBase * > & | get_inputs () const |
Returns the vector of input terminals. More... | |
const std::vector< TerminalBase * > & | get_outputs () const |
Returns the vector of output terminals. More... | |
virtual ttg::World | get_world () const =0 |
ttg::TerminalBase * | in (size_t i) |
Returns a pointer to the i'th input terminal. More... | |
ttg::TerminalBase * | out (size_t i) |
Returns a pointer to the i'th output terminal. More... | |
template<std::size_t i> | |
ttg::TerminalBase * | in () |
Returns a pointer to the i'th input terminal ... to make API consistent with TT. More... | |
template<std::size_t i> | |
ttg::TerminalBase * | out () |
Returns a pointer to the i'th output terminal ... to make API consistent with TT. More... | |
auto | get_instance_id () const |
virtual void | fence ()=0 |
virtual void | release () |
virtual void | make_executable ()=0 |
Marks this executable. More... | |
bool | is_executable () const |
Static Public Member Functions | |
static bool | set_trace_all (bool value) |
static bool | set_lazy_pull (bool value) |
static const std::vector< TerminalBase * > * | get_outputs_tls_ptr () |
Returns this thread's pointer to the vector of output terminals. More... | |
Protected Member Functions | |
void | set_input (size_t i, TerminalBase *t) |
void | set_output (size_t i, TerminalBase *t) |
template<bool out, typename terminalT , std::size_t i, typename setfuncT > | |
void | register_terminal (terminalT &term, const std::string &name, const setfuncT setfunc) |
template<bool out, std::size_t... IS, typename terminalsT , typename namesT , typename setfuncT > | |
void | register_terminals (std::index_sequence< IS... >, terminalsT &terms, const namesT &names, const setfuncT setfunc) |
template<typename terminalsT , typename namesT > | |
void | register_input_terminals (terminalsT &terms, const namesT &names) |
template<typename terminalsT , typename namesT > | |
void | register_output_terminals (terminalsT &terms, const namesT &names) |
template<std::size_t... IS, typename terminalsT , typename setfuncT > | |
void | set_terminals (std::index_sequence< IS... >, terminalsT &terms, const setfuncT setfunc) |
template<typename terminalsT , typename setfuncT > | |
void | set_terminals (const terminalsT &terms, const setfuncT setfunc) |
TTBase (TTBase &&other) | |
TTBase & | operator= (TTBase &&other) |
TTBase (const std::string &name, size_t numins, size_t numouts) | |
void | set_outputs_tls_ptr () |
void | set_outputs_tls_ptr (const std::vector< TerminalBase * > *ptr) |
Static Protected Member Functions | |
static const std::vector< TerminalBase * > *& | outputs_tls_ptr_accessor () |
Friends | |
template<typename input_terminalsT , typename output_terminalsT > | |
class | TTG |
Constructor & Destructor Documentation
◆ TTBase() [1/2]
◆ TTBase() [2/2]
|
inlineprotected |
◆ ~TTBase()
|
virtualdefault |
Member Function Documentation
◆ fence()
|
pure virtual |
Waits for the entire TTG that contains this object to be completed (collective); if not contained by a TTG this is a no-op
Implemented in ttg::SinkTT< keyT, input_valueT >, ttg::TTG< input_terminalsT, output_terminalsT >, and ttg_madness::TT< keyT, output_terminalsT, derivedT, input_valueTs >.
◆ get_class_name()
|
inline |
◆ get_inputs()
|
inline |
◆ get_instance_id()
◆ get_name()
|
inline |
◆ get_outputs()
|
inline |
◆ get_outputs_tls_ptr()
|
inlinestatic |
◆ get_world()
|
pure virtual |
- Returns
- World in which this lives
Implemented in ttg::SinkTT< keyT, input_valueT >, ttg::TTG< input_terminalsT, output_terminalsT >, ttg_parsec::TT< keyT, output_terminalsT, derivedT, input_valueTs >, ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value >, Out< OutKey, Value > >, BinaryTreeReduce< Value, BinaryOp, OutKey >, ttg::typelist< Value, Value, Value > >, ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value > >, BinaryTreeBroadcast< Value, int >, ttg::typelist< Value > >, and ttg_madness::TT< keyT, output_terminalsT, derivedT, input_valueTs >.
◆ in() [1/2]
|
inline |
◆ in() [2/2]
|
inline |
◆ invoke()
|
inlinevirtual |
Use this to create a task that takes no data "manually"
- Warning
- calls ttg::abort() if the derived class TT did not override this; only makes sense to override this if the derived TT uses void for key or data
Reimplemented in ttg_parsec::TT< keyT, output_terminalsT, derivedT, input_valueTs >, ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value >, Out< OutKey, Value > >, BinaryTreeReduce< Value, BinaryOp, OutKey >, ttg::typelist< Value, Value, Value > >, ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value > >, BinaryTreeBroadcast< Value, int >, ttg::typelist< Value > >, ttg_madness::TT< keyT, output_terminalsT, derivedT, input_valueTs >, ttg_parsec::TT< keyT, output_terminalsT, derivedT, input_valueTs >, ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value >, Out< OutKey, Value > >, BinaryTreeReduce< Value, BinaryOp, OutKey >, ttg::typelist< Value, Value, Value > >, ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value > >, BinaryTreeBroadcast< Value, int >, ttg::typelist< Value > >, and ttg_madness::TT< keyT, output_terminalsT, derivedT, input_valueTs >.
◆ is_executable()
|
inline |
◆ is_lazy_pull()
◆ is_ttg()
◆ make_executable()
|
inlinepure virtual |
Marks this executable.
Implemented in ttg::SinkTT< keyT, input_valueT >, ttg::TTG< input_terminalsT, output_terminalsT >, ttg_parsec::TT< keyT, output_terminalsT, derivedT, input_valueTs >, ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value >, Out< OutKey, Value > >, BinaryTreeReduce< Value, BinaryOp, OutKey >, ttg::typelist< Value, Value, Value > >, ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value > >, BinaryTreeBroadcast< Value, int >, ttg::typelist< Value > >, and ttg_madness::TT< keyT, output_terminalsT, derivedT, input_valueTs >.
◆ operator=()
◆ out() [1/2]
|
inline |
◆ out() [2/2]
|
inline |
◆ outputs_tls_ptr_accessor()
|
inlinestaticprotected |
◆ register_input_terminals()
|
inlineprotected |
◆ register_output_terminals()
|
inlineprotected |
◆ register_terminal()
|
inlineprotected |
◆ register_terminals()
|
inlineprotected |
◆ release()
|
inlinevirtual |
Reimplemented in ttg_parsec::TT< keyT, output_terminalsT, derivedT, input_valueTs >, ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value >, Out< OutKey, Value > >, BinaryTreeReduce< Value, BinaryOp, OutKey >, ttg::typelist< Value, Value, Value > >, and ttg_parsec::TT< int, std::tuple< Out< int, Value >, Out< int, Value >, Out< int, Value > >, BinaryTreeBroadcast< Value, int >, ttg::typelist< Value > >.
◆ set_input()
|
inlineprotected |
◆ set_lazy_pull()
|
inlinestatic |
◆ set_lazy_pull_instance()
◆ set_name()
|
inline |
◆ set_output()
|
inlineprotected |
◆ set_outputs_tls_ptr() [1/2]
◆ set_outputs_tls_ptr() [2/2]
|
inlineprotected |
◆ set_terminals() [1/2]
|
inlineprotected |
◆ set_terminals() [2/2]
|
inlineprotected |
◆ set_trace_all()
|
inlinestatic |
Sets trace for all operations to value and returns previous setting. This has no effect unless trace_enabled()==true
◆ set_trace_instance()
|
inline |
Sets trace for just this instance to value and returns previous setting This has no effect unless trace_enabled()==true
◆ trace()
|
inline |
Like ttg::trace(), but only produces tracing output if this->tracing()==true
◆ tracing()
|
inline |
- Returns
- false if
trace_enabled()==false
, else true if tracing set for either this instance or all instances
◆ ttg()
|
inline |
◆ ttg_ptr()
Friends And Related Function Documentation
◆ TTG
|
friend |
The documentation for this class was generated from the following file:
- ttg/ttg/base/tt.h