HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SIM_PtrArraySorted< T > Class Template Reference

#include <SIM_PtrArraySorted.h>

Public Member Functions

 SIM_PtrArraySorted ()
 
 SIM_PtrArraySorted (typename UT_ValArray< T >::Comparator comparator)
 
virtual ~SIM_PtrArraySorted ()
 
void setComparator (typename UT_ValArray< T >::Comparator cmp)
 
void sort ()
 
exint size () const
 
void setSize (exint newsize)
 
void setCapacity (exint newcapacity)
 
exint entries () const
 
void entries (int newnumentries)
 
void resize (int newsize)
 
T operator() (int index) const
 
T last () const
 
int find (T ptr) const
 
bool operator== (const SIM_PtrArraySorted &cmp) const
 
bool containsAny (const SIM_PtrArraySorted &cmp) const
 
bool containsFully (const SIM_PtrArraySorted &cmp) const
 
void remove (int index)
 
void remove (T ptr)
 
void remove (const SIM_PtrArraySorted &src)
 
void keepOnly (const SIM_PtrArraySorted &src)
 
const SIM_PtrArraySortedoperator= (const SIM_PtrArraySorted &src)
 
int add (T ptr)
 
void set (const SIM_PtrArraySorted &src)
 
void setUnsorted (const UT_ValArray< T > &src, SIM_PtrArraySorted &duplicates)
 
void merge (const SIM_PtrArraySorted &src)
 
void mergeSelected (const SIM_PtrArraySorted &src, bool(*selectfunc)(T))
 
void appendUnsafe (T ptr)
 
const UT_ValArray< T > & getRawArray () const
 
UT_ValArray< T > & getRawArray ()
 

Detailed Description

template<class T>
class SIM_PtrArraySorted< T >

Definition at line 27 of file SIM_PtrArraySorted.h.

Constructor & Destructor Documentation

template<class T>
SIM_PtrArraySorted< T >::SIM_PtrArraySorted ( )
inline

Definition at line 30 of file SIM_PtrArraySorted.h.

template<class T>
SIM_PtrArraySorted< T >::SIM_PtrArraySorted ( typename UT_ValArray< T >::Comparator  comparator)
inline

Definition at line 36 of file SIM_PtrArraySorted.h.

template<class T>
virtual SIM_PtrArraySorted< T >::~SIM_PtrArraySorted ( )
inlinevirtual

Definition at line 40 of file SIM_PtrArraySorted.h.

Member Function Documentation

template<class T>
int SIM_PtrArraySorted< T >::add ( T  ptr)
inline

Definition at line 232 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::appendUnsafe ( T  ptr)
inline

Definition at line 350 of file SIM_PtrArraySorted.h.

template<class T>
bool SIM_PtrArraySorted< T >::containsAny ( const SIM_PtrArraySorted< T > &  cmp) const
inline

Definition at line 97 of file SIM_PtrArraySorted.h.

template<class T>
bool SIM_PtrArraySorted< T >::containsFully ( const SIM_PtrArraySorted< T > &  cmp) const
inline

Definition at line 127 of file SIM_PtrArraySorted.h.

template<class T>
exint SIM_PtrArraySorted< T >::entries ( void  ) const
inline

Definition at line 61 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::entries ( int  newnumentries)
inline

Definition at line 63 of file SIM_PtrArraySorted.h.

template<class T>
int SIM_PtrArraySorted< T >::find ( T  ptr) const
inline

Definition at line 72 of file SIM_PtrArraySorted.h.

template<class T>
const UT_ValArray<T>& SIM_PtrArraySorted< T >::getRawArray ( ) const
inline

Definition at line 353 of file SIM_PtrArraySorted.h.

template<class T>
UT_ValArray<T>& SIM_PtrArraySorted< T >::getRawArray ( )
inline

Definition at line 356 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::keepOnly ( const SIM_PtrArraySorted< T > &  src)
inline

Definition at line 195 of file SIM_PtrArraySorted.h.

template<class T>
T SIM_PtrArraySorted< T >::last ( ) const
inline

Definition at line 70 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::merge ( const SIM_PtrArraySorted< T > &  src)
inline

Definition at line 263 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::mergeSelected ( const SIM_PtrArraySorted< T > &  src,
bool(*)(T selectfunc 
)
inline

Definition at line 310 of file SIM_PtrArraySorted.h.

template<class T>
T SIM_PtrArraySorted< T >::operator() ( int  index) const
inline

Definition at line 68 of file SIM_PtrArraySorted.h.

template<class T>
const SIM_PtrArraySorted& SIM_PtrArraySorted< T >::operator= ( const SIM_PtrArraySorted< T > &  src)
inline

Definition at line 230 of file SIM_PtrArraySorted.h.

template<class T>
bool SIM_PtrArraySorted< T >::operator== ( const SIM_PtrArraySorted< T > &  cmp) const
inline

Definition at line 75 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::remove ( int  index)
inline

Definition at line 159 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::remove ( T  ptr)
inline

Definition at line 161 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::remove ( const SIM_PtrArraySorted< T > &  src)
inline

Definition at line 163 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::resize ( int  newsize)
inline

Definition at line 65 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::set ( const SIM_PtrArraySorted< T > &  src)
inline

Definition at line 237 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::setCapacity ( exint  newcapacity)
inline

Definition at line 57 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::setComparator ( typename UT_ValArray< T >::Comparator  cmp)
inline

Definition at line 43 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::setSize ( exint  newsize)
inline

Definition at line 53 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::setUnsorted ( const UT_ValArray< T > &  src,
SIM_PtrArraySorted< T > &  duplicates 
)
inline

Definition at line 242 of file SIM_PtrArraySorted.h.

template<class T>
exint SIM_PtrArraySorted< T >::size ( void  ) const
inline

Definition at line 49 of file SIM_PtrArraySorted.h.

template<class T>
void SIM_PtrArraySorted< T >::sort ( void  )
inline

Definition at line 46 of file SIM_PtrArraySorted.h.


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