CYCLUS
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 
6 namespace cyclus {
7 namespace toolkit {
8 
9 /// This is a mixin class that provides an interface to access the underlying
10 /// agent that manages it.
11 class AgentManaged {
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_
AgentManaged(Agent *agent=NULL)
Definition: agent_managed.h:13
This is a mixin class that provides an interface to access the underlying agent that manages it...
Definition: agent_managed.h:11
The abstract base class used by all types of agents that live and interact in a simulation.
Definition: agent.h:51
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
Definition: agent.cc:14