CYCLUS
src
toolkit
commodity.cc
Go to the documentation of this file.
1
#include "
commodity.h
"
2
3
namespace
cyclus
{
4
namespace
toolkit {
5
6
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7
Commodity::Commodity
() : name_(
""
) {}
8
9
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
10
Commodity::Commodity
(
std::string
name
) : name_(name) {}
11
12
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
13
std::string
Commodity::name
()
const
{
14
return
name_;
15
}
16
17
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
18
bool
Commodity::operator==
(
const
Commodity
& other)
const
{
19
return
(name_ == other.
name
());
20
}
21
22
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
23
bool
Commodity::operator!=
(
const
Commodity
& other)
const
{
24
return
!(*
this
== other);
25
}
26
27
}
// namespace toolkit
28
}
// namespace cyclus
cyclus::toolkit::Commodity
A simple class defining a commodity; it is currently super simple.
Definition:
commodity.h:12
hdf5_back_gen.string
def string(s)
Definition:
hdf5_back_gen.py:1705
cyclus::toolkit::Commodity::operator==
bool operator==(const Commodity &other) const
Equality operator.
Definition:
commodity.cc:18
cyclus::toolkit::Commodity::operator!=
bool operator!=(const Commodity &other) const
Inequality operator.
Definition:
commodity.cc:23
cyclus::toolkit::Commodity::Commodity
Commodity()
Default constructor.
Definition:
commodity.cc:7
cyclus::toolkit::Commodity::name
std::string name() const
The commodity's name.
Definition:
commodity.cc:13
cyclus
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
Definition:
agent.cc:14
commodity.h
Generated by
1.8.13