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

#include <EventDrivenGP.h>

Public Member Functions

 Event (size_t _id=0, const affinity_t &aff=affinity_t(), const memory_t &_msg=memory_t(), const properties_t &_properties=properties_t())
 
 Event (const Event &)=default
 
 Event (Event &&)=default
 
Eventoperator= (const Event &)=default
 
Eventoperator= (Event &&)=default
 
bool HasProperty (std::string property) const
 Does event object have given property? More...
 

Public Attributes

size_t id
 
affinity_t affinity
 
memory_t msg
 
properties_t properties
 

Detailed Description

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

Struct to represent an instance of an Event. Events have an associated ID, affinity, message, and set of properties.

Constructor & Destructor Documentation

template<size_t AFFINITY_WIDTH>
emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::Event ( size_t  _id = 0,
const affinity_t aff = affinity_t(),
const memory_t _msg = memory_t(),
const properties_t _properties = properties_t() 
)
inline
template<size_t AFFINITY_WIDTH>
emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::Event ( const Event )
default
template<size_t AFFINITY_WIDTH>
emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::Event ( Event &&  )
default

Member Function Documentation

template<size_t AFFINITY_WIDTH>
bool emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::HasProperty ( std::string  property) const
inline

Does event object have given property?

template<size_t AFFINITY_WIDTH>
Event& emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::operator= ( const Event )
default
template<size_t AFFINITY_WIDTH>
Event& emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::operator= ( Event &&  )
default

Member Data Documentation

template<size_t AFFINITY_WIDTH>
affinity_t emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::affinity
template<size_t AFFINITY_WIDTH>
size_t emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::id
template<size_t AFFINITY_WIDTH>
memory_t emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::msg
template<size_t AFFINITY_WIDTH>
properties_t emp::EventDrivenGP_AW< AFFINITY_WIDTH >::Event::properties

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