Panda3D
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
EggMorphList< MorphType > Class Template Reference

A collection of <Dxyz>'s or <Duv>'s or some such. More...

#include "eggMorphList.h"

Public Types

typedef Morphs::const_iterator const_iterator
 
typedef Morphs::iterator iterator
 
typedef Morphs::size_type size_type
 

Public Member Functions

 EggMorphList (const EggMorphList< MorphType > &copy)
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 Empties the list of morphs.
 
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.
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
std::pair< iterator, bool > insert (const MorphType &value)
 This is similar to the insert() interface for sets, except it does not guarantee that the resulting list is sorted.
 
bool operator!= (const EggMorphList< MorphType > &other) const
 
bool operator< (const EggMorphList< MorphType > &other) const
 
void operator= (const EggMorphList< MorphType > &copy)
 
bool operator== (const EggMorphList< MorphType > &other) const
 
size_type size () const
 
void write (std::ostream &out, int indent_level, const std::string &tag, int num_dimensions) const
 

Detailed Description

template<class MorphType>
class EggMorphList< MorphType >

A collection of <Dxyz>'s or <Duv>'s or some such.

Definition at line 29 of file eggMorphList.h.

Member Typedef Documentation

◆ const_iterator

template<class MorphType >
typedef Morphs::const_iterator EggMorphList< MorphType >::const_iterator

Definition at line 35 of file eggMorphList.h.

◆ iterator

template<class MorphType >
typedef Morphs::iterator EggMorphList< MorphType >::iterator

Definition at line 34 of file eggMorphList.h.

◆ size_type

template<class MorphType >
typedef Morphs::size_type EggMorphList< MorphType >::size_type

Definition at line 36 of file eggMorphList.h.

Constructor & Destructor Documentation

◆ EggMorphList() [1/2]

template<class MorphType >
EggMorphList< MorphType >::EggMorphList ( )
inline

Definition at line 18 of file eggMorphList.I.

◆ EggMorphList() [2/2]

template<class MorphType >
EggMorphList< MorphType >::EggMorphList ( const EggMorphList< MorphType > & copy)
inline

Definition at line 26 of file eggMorphList.I.

◆ ~EggMorphList()

template<class MorphType >
EggMorphList< MorphType >::~EggMorphList ( )
inline

Definition at line 45 of file eggMorphList.I.

Member Function Documentation

◆ begin() [1/2]

template<class MorphType >
EggMorphList< MorphType >::iterator EggMorphList< MorphType >::begin ( )
inline

Definition at line 100 of file eggMorphList.I.

◆ begin() [2/2]

template<class MorphType >
EggMorphList< MorphType >::const_iterator EggMorphList< MorphType >::begin ( ) const
inline

Definition at line 109 of file eggMorphList.I.

◆ clear()

template<class MorphType >
void EggMorphList< MorphType >::clear ( )
inline

Empties the list of morphs.

Definition at line 182 of file eggMorphList.I.

◆ compare_to()

template<class MorphType >
int EggMorphList< MorphType >::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.

compare_to() compares the name and the value as well.

Definition at line 82 of file eggMorphList.I.

Referenced by EggAttributes::compare_to(), EggVertex::compare_to(), EggAttributes::matches_color(), and EggAttributes::matches_normal().

◆ empty()

template<class MorphType >
bool EggMorphList< MorphType >::empty ( ) const
inline

Definition at line 145 of file eggMorphList.I.

◆ end() [1/2]

template<class MorphType >
EggMorphList< MorphType >::iterator EggMorphList< MorphType >::end ( )
inline

Definition at line 118 of file eggMorphList.I.

◆ end() [2/2]

template<class MorphType >
EggMorphList< MorphType >::const_iterator EggMorphList< MorphType >::end ( ) const
inline

Definition at line 127 of file eggMorphList.I.

◆ insert()

template<class MorphType >
std::pair< typename EggMorphList< MorphType >::iterator, bool > EggMorphList< MorphType >::insert ( const MorphType & value)

This is similar to the insert() interface for sets, except it does not guarantee that the resulting list is sorted.

We have this member function so the EggMorphList resembles a set. It used to *be* a set, but we cannot export STL sets from a Windows DLL.

Definition at line 158 of file eggMorphList.I.

◆ operator!=()

template<class MorphType >
bool EggMorphList< MorphType >::operator!= ( const EggMorphList< MorphType > & other) const
inline

Definition at line 62 of file eggMorphList.I.

◆ operator<()

template<class MorphType >
bool EggMorphList< MorphType >::operator< ( const EggMorphList< MorphType > & other) const
inline

Definition at line 71 of file eggMorphList.I.

◆ operator=()

template<class MorphType >
void EggMorphList< MorphType >::operator= ( const EggMorphList< MorphType > & copy)
inline

Definition at line 36 of file eggMorphList.I.

◆ operator==()

template<class MorphType >
bool EggMorphList< MorphType >::operator== ( const EggMorphList< MorphType > & other) const
inline

Definition at line 53 of file eggMorphList.I.

◆ size()

template<class MorphType >
EggMorphList< MorphType >::size_type EggMorphList< MorphType >::size ( ) const
inline

Definition at line 136 of file eggMorphList.I.

◆ write()

template<class MorphType >
void EggMorphList< MorphType >::write ( std::ostream & out,
int indent_level,
const std::string & tag,
int num_dimensions ) const

Definition at line 191 of file eggMorphList.I.


The documentation for this class was generated from the following files: