17 template<
class Parameter>
19 EggMorph(
const std::string &name,
const Parameter &offset)
20 :
Namable(name), _offset(offset) {
28 template<
class Parameter>
38 template<
class Parameter>
48 template<
class Parameter>
51 return get_name() < other.get_name();
58 template<
class Parameter>
61 return get_name() == other.get_name();
67 template<
class Parameter>
70 return !operator == (other);
77 template<
class Parameter>
80 int compare = strcmp(get_name().c_str(), other.get_name().c_str());
84 return _offset.compare_to(other._offset, threshold);
90 template<
class Parameter>
92 output(std::ostream &out,
const std::string &tag,
int num_dimensions)
const {
93 out << tag <<
" " << get_name() <<
" {";
94 for (
int i = 0; i < num_dimensions; ++i) {
95 out <<
" " << MAYBE_ZERO(_offset[i]);
int compare_to(const EggMorph< Parameter > &other, double threshold) const
compare_to() compares a different space than the operator methods, which only check the name.
A single <Dxyz> or <Duv> or some such entry.
A base class for all things which can have a name.