Rhino C++ API  8.5
Public Member Functions | List of all members
CRhinoObjRefArray Class Reference

#include <rhinoSdkObject.h>

Inheritance diagram for CRhinoObjRefArray:
ON_ClassArray< CRhinoObjRef >

Public Member Functions

int AppendObjects (class CRhinoObjectIterator &it)
 
- Public Member Functions inherited from ON_ClassArray< CRhinoObjRef >
 ON_ClassArray () ON_NOEXCEPT
 construction //////////////////////////////////////////////////////// More...
 
 ON_ClassArray (const ON_ClassArray< CRhinoObjRef > &)
 Copy constructor. More...
 
 ON_ClassArray (size_t)
 size_t parameter = initial capacity More...
 
virtual ~ON_ClassArray ()
 override for struct member deallocation, etc. More...
 
void Append (const CRhinoObjRef &)
 
void Append (int, const CRhinoObjRef *)
 Append copy of an array T[count]. More...
 
CRhinoObjRefAppendNew ()
 array operations //////////////////////////////////////////////////// More...
 
CRhinoObjRefArray ()
 The Array() function return the. More...
 
const CRhinoObjRefArray () const
 m_a pointer value. More...
 
CRhinoObjRefAt (int)
 At(index) returns nullptr if index < 0 or index >= count. More...
 
const CRhinoObjRefAt (int) const
 
CRhinoObjRefAt (ON__INT64)
 
const CRhinoObjRefAt (ON__INT64) const
 
CRhinoObjRefAt (ON__UINT64)
 
const CRhinoObjRefAt (ON__UINT64) const
 
CRhinoObjRefAt (unsigned int)
 
const CRhinoObjRefAt (unsigned int) const
 
int BinarySearch (const CRhinoObjRef *, int(*)(const CRhinoObjRef *, const CRhinoObjRef *)) const
 See Also: ON_CompareIncreasing<T> and ON_CompareDeccreasing<T> More...
 
int BinarySearch (const CRhinoObjRef *, int(*)(const CRhinoObjRef *, const CRhinoObjRef *), int) const
 
int Capacity () const
 capacity of array More...
 
int Count () const
 query /////////////////////////////////////////////////////////////// More...
 
void Destroy ()
 onfree any memory and set count and capacity to zero More...
 
void EmergencyDestroy (void)
 emergency bailout /////////////////////////////////////////////////// More...
 
void Empty ()
 Sets count to 0, leaves capacity untouched. More...
 
CRhinoObjRefFirst ()
 
const CRhinoObjRefFirst () const
 returns nullptr if count = 0 More...
 
virtual bool HeapSort (int(*)(const CRhinoObjRef *, const CRhinoObjRef *))
 QuickSort() is generally the better choice. More...
 
void Insert (int, const CRhinoObjRef &)
 Insert called with a reference uses operator =. More...
 
int InsertInSortedList (const CRhinoObjRef &, int(*)(const CRhinoObjRef *, const CRhinoObjRef *))
 
int InsertInSortedList (const CRhinoObjRef &, int(*)(const CRhinoObjRef *, const CRhinoObjRef *), int)
 
CRhinoObjRefKeepArray ()
 
CRhinoObjRefLast ()
 
const CRhinoObjRefLast () const
 returns nullptr if count = 0 More...
 
int NewCapacity () const
 
 operator const CRhinoObjRef * () const
 
 operator CRhinoObjRef * ()
 The cast operators return a pointer. More...
 
ON_ClassArray< CRhinoObjRef > & operator= (const ON_ClassArray< CRhinoObjRef > &)
 Assignment operator. More...
 
CRhinoObjRefoperator[] (int)
 
const CRhinoObjRefoperator[] (int) const
 
CRhinoObjRefoperator[] (ON__INT64)
 
const CRhinoObjRefoperator[] (ON__INT64) const
 
CRhinoObjRefoperator[] (ON__UINT64)
 
const CRhinoObjRefoperator[] (ON__UINT64) const
 
CRhinoObjRefoperator[] (unsigned int)
 
const CRhinoObjRefoperator[] (unsigned int) const
 
bool Permute (const int *)
 
virtual bool QuickSort (int(*)(const CRhinoObjRef *, const CRhinoObjRef *))
 Sorts the array using the heap sort algorithm. More...
 
virtual CRhinoObjRefRealloc (CRhinoObjRef *, int)
 low level memory management /////////////////////////////////////// More...
 
void Remove ()
 
void Remove (int)
 
CRhinoObjRefReserve (size_t)
 memory management ///////////////////////////////////////////////// More...
 
void Reverse ()
 reverse order More...
 
int Search (const CRhinoObjRef *, int(*)(const CRhinoObjRef *, const CRhinoObjRef *)) const
 
void SetArray (CRhinoObjRef *)
 
void SetArray (CRhinoObjRef *, int, int)
 
CRhinoObjRefSetCapacity (size_t)
 
void SetCount (int)
 low level memory management ////////////////////////////////////////// More...
 
void Shrink ()
 remove unused capacity More...
 
unsigned int SizeOfArray () const
 amount of memory in the m_a[] array More...
 
unsigned int SizeOfElement () const
 amount of memory in an m_a[] array element More...
 
bool Sort (ON::sort_algorithm sort_algorithm, int *, int(*)(const CRhinoObjRef *, const CRhinoObjRef *)) const
 
bool Sort (ON::sort_algorithm sort_algorithm, int *, int(*)(const CRhinoObjRef *, const CRhinoObjRef *, void *), void *) const
 
void Swap (int, int)
 swap elements i and j More...
 
unsigned int UnsignedCount () const
 
void Zero ()
 

Additional Inherited Members

- Protected Member Functions inherited from ON_ClassArray< CRhinoObjRef >
void ConstructDefaultElement (CRhinoObjRef *)
 
void DestroyElement (CRhinoObjRef &)
 
void Move (int, int, int)
 implementation ////////////////////////////////////////////////////// More...
 
- Protected Attributes inherited from ON_ClassArray< CRhinoObjRef >
CRhinoObjRefm_a
 pointer to array memory More...
 
int m_capacity
 actual length of m_a[] More...
 
int m_count
 0 <= m_count <= m_capacity More...
 

Member Function Documentation

◆ AppendObjects()

int CRhinoObjRefArray::AppendObjects ( class CRhinoObjectIterator it)

Description: Appends all selected objects to the array.

Parameters: it - [in] iterator for objects to append.

Returns: Number of objects appended to array.