Empirical
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... > Class Template Reference

#include <DataNode.h>

Inheritance diagram for emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >:
emp::DataNodeModule< VAL_TYPE, MODS... >

Public Member Functions

 DataNodeModule ()
 
void AddPull (const std::function< VAL_TYPE()> &fun)
 
void AddPullSet (const std::function< emp::vector< VAL_TYPE >()> &fun)
 
void PrintDebug (std::ostream &os=std::cout)
 

Protected Types

using this_t = DataNodeModule< VAL_TYPE, data::Pull, MODS... >
 
using parent_t = DataNodeModule< VAL_TYPE, MODS... >
 
using base_t = DataNodeModule< VAL_TYPE >
 

Protected Member Functions

void PullData_impl ()
 

Protected Attributes

emp::FunctionSet< VAL_TYPE()> pull_funs
 Functions to pull data. More...
 
emp::FunctionSet< emp::vector< VAL_TYPE >)> pull_set_funs
 Functions to pull sets of data. More...
 

Detailed Description

template<typename VAL_TYPE, emp::data... MODS>
class emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >

== data::Pull == This module makes it possible to give the DataNode a function that it can call to calculate new values or sets of values that it will then track. These functions are called every time the PullData method is called on this node, and the values they return are measured as specified by the other modules in this node.

Member Typedef Documentation

template<typename VAL_TYPE , emp::data... MODS>
using emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::base_t = DataNodeModule<VAL_TYPE>
protected
template<typename VAL_TYPE , emp::data... MODS>
using emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::parent_t = DataNodeModule<VAL_TYPE, MODS...>
protected
template<typename VAL_TYPE , emp::data... MODS>
using emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::this_t = DataNodeModule<VAL_TYPE, data::Pull, MODS...>
protected

Constructor & Destructor Documentation

template<typename VAL_TYPE , emp::data... MODS>
emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::DataNodeModule ( )
inline

Member Function Documentation

template<typename VAL_TYPE , emp::data... MODS>
void emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::AddPull ( const std::function< VAL_TYPE()> &  fun)
inline
template<typename VAL_TYPE , emp::data... MODS>
void emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::AddPullSet ( const std::function< emp::vector< VAL_TYPE >()> &  fun)
inline
template<typename VAL_TYPE , emp::data... MODS>
void emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::PrintDebug ( std::ostream &  os = std::cout)
inline
template<typename VAL_TYPE , emp::data... MODS>
void emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::PullData_impl ( )
inlineprotected

Member Data Documentation

template<typename VAL_TYPE , emp::data... MODS>
emp::FunctionSet<VAL_TYPE()> emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::pull_funs
protected

Functions to pull data.

template<typename VAL_TYPE , emp::data... MODS>
emp::FunctionSet<emp::vector<VAL_TYPE>)> emp::DataNodeModule< VAL_TYPE, data::Pull, MODS... >::pull_set_funs
protected

Functions to pull sets of data.


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