Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
ON_ClassArray< T > Class Template Reference

#include <pcl/surface/3rdparty/opennurbs/opennurbs_array.h>

+ Inheritance diagram for ON_ClassArray< T >:

Public Member Functions

 ON_ClassArray ()
 
 ON_ClassArray (int)
 
 ON_ClassArray (const ON_ClassArray< T > &)
 
virtual ~ON_ClassArray ()
 
ON_ClassArray< T > & operator= (const ON_ClassArray< T > &)
 
void EmergencyDestroy (void)
 
int Count () const
 
unsigned int UnsignedCount () const
 
int Capacity () const
 
unsigned int SizeOfArray () const
 
unsigned int SizeOfElement () const
 
T & operator[] (int)
 
T & operator[] (unsigned int)
 
T & operator[] (ON__INT64)
 
T & operator[] (ON__UINT64)
 
const T & operator[] (int) const
 
const T & operator[] (unsigned int) const
 
const T & operator[] (ON__INT64) const
 
const T & operator[] (ON__UINT64) const
 
 operator T * ()
 
 operator const T * () const
 
T * First ()
 
const T * First () const
 
T * At (int)
 
T * At (unsigned int)
 
T * At (ON__INT64)
 
T * At (ON__UINT64)
 
const T * At (int) const
 
const T * At (unsigned int) const
 
const T * At (ON__INT64) const
 
const T * At (ON__UINT64) const
 
T * Last ()
 
const T * Last () const
 
T & AppendNew ()
 
void Append (const T &)
 
void Append (int, const T *)
 
void Insert (int, const T &)
 
void Remove ()
 
void Remove (int)
 
void Empty ()
 
void Reverse ()
 
void Swap (int, int)
 
int Search (const T *, int(*)(const T *, const T *)) const
 
int BinarySearch (const T *, int(*)(const T *, const T *)) const
 
int BinarySearch (const T *, int(*)(const T *, const T *), int) const
 
virtual bool HeapSort (int(*)(const T *, const T *))
 
virtual bool QuickSort (int(*)(const T *, const T *))
 
bool Sort (ON::sort_algorithm sort_algorithm, int *, int(*)(const T *, const T *)) const
 
bool Sort (ON::sort_algorithm sort_algorithm, int *, int(*)(const T *, const T *, void *), void *) const
 
bool Permute (const int *)
 
void Zero ()
 
void Reserve (int)
 
void Shrink ()
 
void Destroy ()
 
virtual T * Realloc (T *, int)
 
T * Array ()
 
const T * Array () const
 
void SetCount (int)
 
void SetCapacity (int)
 
int NewCapacity () const
 
T * KeepArray ()
 
void SetArray (T *)
 
void SetArray (T *, int, int)
 

Protected Member Functions

void Move (int, int, int)
 
void ConstructDefaultElement (T *)
 
void DestroyElement (T &)
 

Protected Attributes

T * m_a
 
int m_count
 
int m_capacity
 

Detailed Description

template<class T>
class ON_ClassArray< T >

Definition at line 821 of file opennurbs_array.h.

Constructor & Destructor Documentation

template<class T >
ON_ClassArray< T >::ON_ClassArray ( )

Definition at line 937 of file opennurbs_array_defs.h.

template<class T >
ON_ClassArray< T >::ON_ClassArray ( int  c)

Definition at line 944 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::SetCapacity().

template<class T>
ON_ClassArray< T >::ON_ClassArray ( const ON_ClassArray< T > &  src)

Definition at line 955 of file opennurbs_array_defs.h.

template<class T >
ON_ClassArray< T >::~ON_ClassArray ( )
virtual

Definition at line 964 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::SetCapacity().

Member Function Documentation

template<class T>
void ON_ClassArray< T >::Append ( const T &  x)
template<class T>
void ON_ClassArray< T >::Append ( int  count,
const T *  p 
)
template<class T >
T & ON_ClassArray< T >::AppendNew ( )
template<class T >
T * ON_ClassArray< T >::Array ( )

Definition at line 1144 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::m_a.

template<class T >
const T * ON_ClassArray< T >::Array ( ) const

Definition at line 1150 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::m_a.

template<class T >
T * ON_ClassArray< T >::At ( int  i)
template<class T >
T * ON_ClassArray< T >::At ( unsigned int  i)
template<class T >
T * ON_ClassArray< T >::At ( ON__INT64  i)
template<class T >
T * ON_ClassArray< T >::At ( ON__UINT64  i)
template<class T >
const T * ON_ClassArray< T >::At ( int  i) const
template<class T >
const T * ON_ClassArray< T >::At ( unsigned int  i) const
template<class T >
const T * ON_ClassArray< T >::At ( ON__INT64  i) const
template<class T >
const T * ON_ClassArray< T >::At ( ON__UINT64  i) const
template<class T>
int ON_ClassArray< T >::BinarySearch ( const T *  key,
int(*)(const T *, const T *)  compar 
) const
template<class T>
int ON_ClassArray< T >::BinarySearch ( const T *  key,
int(*)(const T *, const T *)  compar,
int  count 
) const
template<class T >
int ON_ClassArray< T >::Capacity ( ) const

Definition at line 1017 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::m_capacity.

template<class T>
void ON_ClassArray< T >::ConstructDefaultElement ( T *  p)
protected
template<class T >
int ON_ClassArray< T >::Count ( ) const

Definition at line 1005 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::m_count.

template<class T >
void ON_ClassArray< T >::Destroy ( )

Definition at line 1651 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::SetCapacity().

Referenced by ON_ClassArray< T >::SetArray().

template<class T>
void ON_ClassArray< T >::DestroyElement ( T &  x)
protected
template<class T >
void ON_ClassArray< T >::EmergencyDestroy ( void  )
template<class T >
void ON_ClassArray< T >::Empty ( )
template<class T >
T * ON_ClassArray< T >::First ( )
template<class T >
const T * ON_ClassArray< T >::First ( ) const
template<class T>
bool ON_ClassArray< T >::HeapSort ( int(*)(const T *, const T *)  compar)
virtual
template<class T>
void ON_ClassArray< T >::Insert ( int  i,
const T &  x 
)
template<class T >
T * ON_ClassArray< T >::KeepArray ( )
template<class T >
T * ON_ClassArray< T >::Last ( )
template<class T >
const T * ON_ClassArray< T >::Last ( ) const
template<class T >
void ON_ClassArray< T >::Move ( int  dest_i,
int  src_i,
int  ele_cnt 
)
protected
template<class T >
int ON_ClassArray< T >::NewCapacity ( ) const
template<class T >
ON_ClassArray< T >::operator const T * ( ) const
template<class T >
ON_ClassArray< T >::operator T * ( )
template<class T>
ON_ClassArray< T > & ON_ClassArray< T >::operator= ( const ON_ClassArray< T > &  src)
template<class T >
T & ON_ClassArray< T >::operator[] ( int  i)
template<class T >
T & ON_ClassArray< T >::operator[] ( unsigned int  i)
template<class T >
T & ON_ClassArray< T >::operator[] ( ON__INT64  i)
template<class T >
T & ON_ClassArray< T >::operator[] ( ON__UINT64  i)
template<class T >
const T & ON_ClassArray< T >::operator[] ( int  i) const
template<class T >
const T & ON_ClassArray< T >::operator[] ( unsigned int  i) const
template<class T >
const T & ON_ClassArray< T >::operator[] ( ON__INT64  i) const
template<class T >
const T & ON_ClassArray< T >::operator[] ( ON__UINT64  i) const
template<class T >
bool ON_ClassArray< T >::Permute ( const int *  index)
template<class T>
bool ON_ClassArray< T >::QuickSort ( int(*)(const T *, const T *)  compar)
virtual
template<class T>
T * ON_ClassArray< T >::Realloc ( T *  ptr,
int  capacity 
)
virtual
template<class T >
void ON_ClassArray< T >::Remove ( )

Definition at line 1389 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::m_count.

template<class T >
void ON_ClassArray< T >::Remove ( int  i)
template<class T >
void ON_ClassArray< T >::Reserve ( int  newcap)
template<class T >
void ON_ClassArray< T >::Reverse ( )
template<class T>
int ON_ClassArray< T >::Search ( const T *  key,
int(*)(const T *, const T *)  compar 
) const
template<class T>
void ON_ClassArray< T >::SetArray ( T *  p)
template<class T>
void ON_ClassArray< T >::SetArray ( T *  p,
int  count,
int  capacity 
)
template<class T >
void ON_ClassArray< T >::SetCapacity ( int  capacity)
template<class T >
void ON_ClassArray< T >::SetCount ( int  count)
template<class T >
void ON_ClassArray< T >::Shrink ( )
template<class T >
unsigned int ON_ClassArray< T >::SizeOfArray ( ) const

Definition at line 1023 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::m_capacity.

template<class T >
unsigned int ON_ClassArray< T >::SizeOfElement ( ) const

Definition at line 1029 of file opennurbs_array_defs.h.

template<class T>
bool ON_ClassArray< T >::Sort ( ON::sort_algorithm  sort_algorithm,
int *  index,
int(*)(const T *, const T *)  compar 
) const
template<class T>
bool ON_ClassArray< T >::Sort ( ON::sort_algorithm  sort_algorithm,
int *  index,
int(*)(const T *, const T *, void *)  compar,
void *  p 
) const
template<class T >
void ON_ClassArray< T >::Swap ( int  i,
int  j 
)
template<class T >
unsigned int ON_ClassArray< T >::UnsignedCount ( ) const

Definition at line 1011 of file opennurbs_array_defs.h.

References ON_ClassArray< T >::m_count.

template<class T >
void ON_ClassArray< T >::Zero ( )

Member Data Documentation

template<class T>
T* ON_ClassArray< T >::m_a
protected
template<class T>
int ON_ClassArray< T >::m_capacity
protected
template<class T>
int ON_ClassArray< T >::m_count
protected

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