Commit 708abdc0 authored by Jason Rhinelander's avatar Jason Rhinelander

Dedent various header classes

No code changes: just removing extra class body indentation and comment
rewrapping.  Applies to:

Member.hpp
Good.hpp
Market.hpp
Firm.hpp

There are still more left, but these in particular are changed in the
subsequent commit.
parent bba1a1d1
This diff is collapsed.
......@@ -10,31 +10,31 @@ namespace eris {
* \sa Bundle
*/
class Good : public Member {
public:
/// Constructor; takes an optional name.
explicit Good(std::string name = "") : name{std::move(name)} {}
public:
/// Constructor; takes an optional name.
explicit Good(std::string name = "") : name{std::move(name)} {}
/** The name of the good. */
std::string name;
/** The name of the good. */
std::string name;
/** Good::Continuous is a typedef for Good, provided for backwards compatibility.
*
* \deprecated in eris v0.5.0
*/
[[deprecated("eris::Good::Continuous is deprecated; use eris::Good instead")]]
typedef Good Continuous;
/** Good::Continuous is a typedef for Good, provided for backwards compatibility.
*
* \deprecated in eris v0.5.0
*/
[[deprecated("eris::Good::Continuous is deprecated; use eris::Good instead")]]
typedef Good Continuous;
/** Returns the smallest increment that this good should come in, if this good is discrete.
* For a continuous good (the default), this returns 0.
*
* Note that this increment is not actually enforced within eris: it is provided for
* convenience for callers that which to explicitly handle discrete goods; any such handling
* is up to the individual users.
*/
virtual double atom() { return 0.0; }
/** Returns the smallest increment that this good should come in, if this good is discrete. For
* a continuous good (the default), this returns 0.
*
* Note that this increment is not actually enforced within eris: it is provided for convenience
* for callers that which to explicitly handle discrete goods; any such handling is up to the
* individual users.
*/
virtual double atom() { return 0.0; }
protected:
SharedMember<Member> sharedSelf() const override { return simGood(id()); }
protected:
SharedMember<Member> sharedSelf() const override { return simGood(id()); }
};
}
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment