Lines Matching defs:Unit
39 class Unit
40 : boost::equality_comparable<Unit>
43 Unit();
44 Unit(UnitType type,
62 bool compatibleWith(Unit const *u) const;
74 bool operator==(Unit const &other) const;
80 double convert(double from_dist, Unit const *to) const;
89 Unit const *unit;
93 Quantity(double q, Unit const *u);
98 bool compatibleWith(Unit const *u) const;
103 double value(Unit const *u) const;
108 Glib::ustring string(Unit const *u) const;
113 no NULL check is performed on the passed pointers to Unit objects! */
114 static double convert(double from_dist, Unit const *from, Unit const *to);
115 static double convert(double from_dist, Glib::ustring const &from, Unit const *to);
116 static double convert(double from_dist, Unit const *from, Glib::ustring const &to);
140 typedef INK_UNORDERED_MAP<Glib::ustring, Unit> UnitMap;
141 typedef INK_UNORDERED_MAP<unsigned, Unit*> UnitCodeMap;
144 void addUnit(Unit const &u, bool primary);
147 Unit const *getUnit(Glib::ustring const &name) const;
148 Unit const *getUnit(char const *name) const;
151 Unit const *findUnit(double factor, UnitType type) const;
154 Unit const *getUnit(SVGLength::Unit u) const;
160 * DISABLED, unsafe with the current passing around pointers to Unit objects in this table */
161 //bool deleteUnit(Unit const &u);
193 static Unit _empty_unit;