15 #ifndef EGGMORPHLIST_H 16 #define EGGMORPHLIST_H 18 #include "pandabase.h" 30 template<
class MorphType>
33 typedef epvector<MorphType> Morphs;
36 typedef TYPENAME Morphs::iterator iterator;
37 typedef TYPENAME Morphs::const_iterator const_iterator;
38 typedef TYPENAME Morphs::size_type size_type;
43 INLINE ~EggMorphList();
47 INLINE
bool operator < (const EggMorphList<MorphType> &other)
const;
50 INLINE iterator begin();
51 INLINE const_iterator begin()
const;
52 INLINE iterator end();
53 INLINE const_iterator end()
const;
55 INLINE size_type size()
const;
56 INLINE
bool empty()
const;
58 pair<iterator, bool>
insert(
const MorphType &value);
61 void write(ostream &out,
int indent_level,
62 const string &tag,
int num_dimensions)
const;
73 #include "eggMorphList.I" pair< iterator, bool > insert(const MorphType &value)
This is similar to the insert() interface for sets, except it does not guarantee that the resulting l...
void clear()
Empties the list of morphs.
A collection of <Dxyz>'s or <Duv>'s or some such.
int compare_to(const EggMorphList< MorphType > &other, double threshold) const
compare_to() compares a different space than the operator methods, which only check the morph's name...