uatlib
|
A type-erased class that represents an agent in the simulation. More...
#include <agent.hpp>
Public Member Functions | |
template<agent_compatible Agent> | |
any_agent (Agent a) | |
any_agent (const any_agent &)=delete | |
any_agent (any_agent &&) noexcept=default | |
auto | operator= (const any_agent &) -> any_agent &=delete |
auto | operator= (any_agent &&) noexcept -> any_agent &=default |
auto | bid_phase (uint_t, bid_fn, permit_public_status_fn, int) -> void |
auto | ask_phase (uint_t, ask_fn, permit_public_status_fn, int) -> void |
auto | on_bought (region_view, uint_t, value_t) -> void |
auto | on_sold (region_view, uint_t, value_t) -> void |
auto | stop (uint_t time, int seed) -> bool |
A type-erased class that represents an agent in the simulation.
Any type that inherits from agent
can be converted to an any_agent
.
|
inline |
Constructs a type-erased any_agent from an object of type that inherits from agent
and is movable.