Empirical
Public Member Functions | Public Attributes | List of all members
emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function Struct Reference

#include <EventDrivenGP.h>

Public Member Functions

 Function (const affinity_t &_aff=affinity_t(), const inst_seq_t &_seq=inst_seq_t())
 
inst_toperator[] (size_t id)
 
const inst_toperator[] (size_t id) const
 
bool operator== (const Function &in) const
 
bool operator!= (const Function &in) const
 
bool operator< (const Function &other) const
 
size_t GetSize () const
 
affinity_tGetAffinity ()
 
void PushInst (size_t id, arg_t a0, arg_t a1, arg_t a2, const affinity_t &aff)
 
void PushInst (const inst_t &inst)
 
void SetInst (size_t pos, size_t id, arg_t a0, arg_t a1, arg_t a2, const affinity_t &aff)
 
void SetInst (size_t pos, const inst_t &inst)
 

Public Attributes

affinity_t affinity
 
inst_seq_t inst_seq
 

Detailed Description

template<size_t AFFINITY_WIDTH>
struct emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function

Function struct. Defines an EventDrivenGP function. Each function has an associated:

Constructor & Destructor Documentation

template<size_t AFFINITY_WIDTH>
emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::Function ( const affinity_t _aff = affinity_t(),
const inst_seq_t _seq = inst_seq_t() 
)
inline

Member Function Documentation

template<size_t AFFINITY_WIDTH>
affinity_t& emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::GetAffinity ( )
inline
template<size_t AFFINITY_WIDTH>
size_t emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::GetSize ( ) const
inline
template<size_t AFFINITY_WIDTH>
bool emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::operator!= ( const Function in) const
inline
template<size_t AFFINITY_WIDTH>
bool emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::operator< ( const Function other) const
inline
template<size_t AFFINITY_WIDTH>
bool emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::operator== ( const Function in) const
inline
template<size_t AFFINITY_WIDTH>
inst_t& emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::operator[] ( size_t  id)
inline
template<size_t AFFINITY_WIDTH>
const inst_t& emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::operator[] ( size_t  id) const
inline
template<size_t AFFINITY_WIDTH>
void emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::PushInst ( size_t  id,
arg_t  a0,
arg_t  a1,
arg_t  a2,
const affinity_t aff 
)
inline
template<size_t AFFINITY_WIDTH>
void emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::PushInst ( const inst_t inst)
inline
template<size_t AFFINITY_WIDTH>
void emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::SetInst ( size_t  pos,
size_t  id,
arg_t  a0,
arg_t  a1,
arg_t  a2,
const affinity_t aff 
)
inline
template<size_t AFFINITY_WIDTH>
void emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::SetInst ( size_t  pos,
const inst_t inst 
)
inline

Member Data Documentation

template<size_t AFFINITY_WIDTH>
affinity_t emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::affinity
template<size_t AFFINITY_WIDTH>
inst_seq_t emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Function::inst_seq

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