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

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

Public Member Functions

 ON_SimpleArray ()
 
 ON_SimpleArray (int)
 
 ON_SimpleArray (const ON_SimpleArray< T > &)
 
virtual ~ON_SimpleArray ()
 
virtual ON_SimpleArray< T > & operator= (const ON_SimpleArray< T > &)
 
void EmergencyDestroy (void)
 
int Count () const
 
unsigned int UnsignedCount () const
 
int Capacity () const
 
unsigned int SizeOfArray () const
 
unsigned int SizeOfElement () const
 
ON__UINT32 DataCRC (ON__UINT32 current_remainder) 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 ()
 
virtual void Remove (int)
 
void Empty ()
 
void Reverse ()
 
void Swap (int, int)
 
int Search (const T &) const
 
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
 
bool HeapSort (int(*)(const T *, const T *))
 
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 MemSet (unsigned char)
 
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)
 

Protected Attributes

T * m_a
 
int m_count
 
int m_capacity
 

Detailed Description

template<class T>
class ON_SimpleArray< T >

Definition at line 46 of file opennurbs_array.h.

Constructor & Destructor Documentation

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

Definition at line 65 of file opennurbs_array_defs.h.

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

Definition at line 72 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::SetCapacity().

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

Definition at line 83 of file opennurbs_array_defs.h.

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

Definition at line 92 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::SetCapacity().

Member Function Documentation

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

Definition at line 278 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::m_a.

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

Definition at line 284 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::m_a.

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

Definition at line 142 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::m_capacity.

template<class T >
int ON_SimpleArray< T >::Count ( ) const

Definition at line 130 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::m_count.

template<class T >
ON__UINT32 ON_SimpleArray< T >::DataCRC ( ON__UINT32  current_remainder) const
template<class T >
void ON_SimpleArray< T >::Destroy ( )

Definition at line 749 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::SetCapacity().

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

Definition at line 59 of file opennurbs_array_defs.h.

Referenced by ON_SimpleArray< T >::SetCapacity().

template<class T >
void ON_SimpleArray< T >::Remove ( )

Definition at line 483 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::m_count.

template<class T >
void ON_SimpleArray< T >::Remove ( int  i)
virtual
template<class T >
void ON_SimpleArray< T >::Reserve ( int  newcap)
template<class T >
void ON_SimpleArray< T >::Reverse ( )
template<class T>
int ON_SimpleArray< T >::Search ( const T &  key) const
template<class T>
int ON_SimpleArray< T >::Search ( const T *  key,
int(*)(const T *, const T *)  compar 
) const
template<class T>
void ON_SimpleArray< T >::SetArray ( T *  p)

Definition at line 300 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::m_a.

template<class T>
void ON_SimpleArray< T >::SetArray ( T *  p,
int  count,
int  capacity 
)
template<class T >
void ON_SimpleArray< T >::SetCapacity ( int  capacity)
template<class T >
void ON_SimpleArray< T >::SetCount ( int  count)
template<class T >
void ON_SimpleArray< T >::Shrink ( )
template<class T >
unsigned int ON_SimpleArray< T >::SizeOfArray ( ) const

Definition at line 148 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::m_capacity.

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

Definition at line 154 of file opennurbs_array_defs.h.

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

Definition at line 523 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::m_a.

template<class T >
unsigned int ON_SimpleArray< T >::UnsignedCount ( ) const

Definition at line 136 of file opennurbs_array_defs.h.

References ON_SimpleArray< T >::m_count.

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

Member Data Documentation

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

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