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

#include <DataNode.h>

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

Public Member Functions

 DataNodeModule ()
 
const VAL_TYPE & GetCurrent () const
 Return the current (most recently added) value. More...
 
void AddDatum (const VAL_TYPE &val)
 Add. More...
 
void PrintDebug (std::ostream &os=std::cout)
 Print debug information (useful for figuring out which modifiers you included) More...
 

Protected Types

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

Protected Attributes

VAL_TYPE cur_val
 Most recent value passed to this node. More...
 

Detailed Description

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

== data::Current == This module lets you track the current (i.e. most recently added) value

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename VAL_TYPE , emp::data... MODS>
void emp::DataNodeModule< VAL_TYPE, data::Current, MODS... >::AddDatum ( const VAL_TYPE &  val)
inline

Add.

Parameters
valto this DataNode
template<typename VAL_TYPE , emp::data... MODS>
const VAL_TYPE& emp::DataNodeModule< VAL_TYPE, data::Current, MODS... >::GetCurrent ( ) const
inline

Return the current (most recently added) value.

template<typename VAL_TYPE , emp::data... MODS>
void emp::DataNodeModule< VAL_TYPE, data::Current, MODS... >::PrintDebug ( std::ostream &  os = std::cout)
inline

Print debug information (useful for figuring out which modifiers you included)

Member Data Documentation

template<typename VAL_TYPE , emp::data... MODS>
VAL_TYPE emp::DataNodeModule< VAL_TYPE, data::Current, MODS... >::cur_val
protected

Most recent value passed to this node.


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