21 template<
class Parameter>
23 EggMorph(
const string &name,
const Parameter &offset)
24 :
Namable(name), _offset(offset) {
34 template<
class Parameter>
46 template<
class Parameter>
58 template<
class Parameter>
61 return get_name() < other.get_name();
70 template<
class Parameter>
73 return get_name() == other.get_name();
81 template<
class Parameter>
84 return !operator == (other);
94 template<
class Parameter>
97 int compare = strcmp(get_name().c_str(), other.get_name().c_str());
101 return _offset.compare_to(other._offset, threshold);
109 template<
class Parameter>
111 output(ostream &out,
const string &tag,
int num_dimensions)
const {
112 out << tag <<
" " << get_name() <<
" {";
113 for (
int i = 0; i < num_dimensions; ++i) {
114 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.