CYCLUS
Loading...
Searching...
No Matches
agent_managed.h
Go to the documentation of this file.
1#ifndef CYCLUS_SRC_TOOLKIT_AGENT_MANAGED_H_
2#define CYCLUS_SRC_TOOLKIT_AGENT_MANAGED_H_
3
4#include "agent.h"
5
6namespace cyclus {
7namespace toolkit {
8
9/// This is a mixin class that provides an interface to access the underlying
10/// agent that manages it.
12 public:
13 explicit AgentManaged(Agent* agent = NULL) : agent_(agent) {}
14 inline Agent* agent() const { return agent_; }
15
16 private:
17 /// The agent managing this instance
18 Agent* agent_;
19};
20
21} // namespace toolkit
22} // namespace cyclus
23
24#endif // CYCLUS_SRC_TOOLKIT_AGENT_MANAGED_H_
The abstract base class used by all types of agents that live and interact in a simulation.
Definition agent.h:49
This is a mixin class that provides an interface to access the underlying agent that manages it.
AgentManaged(Agent *agent=NULL)
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition agent.cc:14
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters