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
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_
agent.h
cyclus::Agent
The abstract base class used by all types of agents that live and interact in a simulation.
Definition
agent.h:49
cyclus::toolkit::AgentManaged::agent
Agent * agent() const
Definition
agent_managed.h:14
cyclus::toolkit::AgentManaged::AgentManaged
AgentManaged(Agent *agent=NULL)
Definition
agent_managed.h:13
cyclus::toolkit
Definition
pyhooks.cc:87
cyclus
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition
agent.cc:14
src
toolkit
agent_managed.h
Generated by
1.13.2