#include <opennurbs_array.h>
Public Member Functions | |
void | Append (const T &) |
void | Append (int, const T *) |
T & | AppendNew () |
T * | Array () |
const T * | Array () 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 |
int | BinarySearch (const T *, int(*)(const T *, const T *)) const |
int | BinarySearch (const T *, int(*)(const T *, const T *), int) const |
int | Capacity () const |
int | Count () const |
ON__UINT32 | DataCRC (ON__UINT32 current_remainder) const |
void | Destroy () |
void | EmergencyDestroy (void) |
void | Empty () |
T * | First () |
const T * | First () const |
bool | HeapSort (int(*)(const T *, const T *)) |
void | Insert (int, const T &) |
T * | KeepArray () |
T * | Last () |
const T * | Last () const |
void | MemSet (unsigned char) |
int | NewCapacity () const |
ON_SimpleArray () | |
ON_SimpleArray (int) | |
ON_SimpleArray (const ON_SimpleArray< T > &) | |
operator const T * () const | |
operator T * () | |
virtual ON_SimpleArray< T > & | operator= (const ON_SimpleArray< T > &) |
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 |
bool | Permute (const int *) |
bool | QuickSort (int(*)(const T *, const T *)) |
virtual T * | Realloc (T *, int) |
void | Remove () |
virtual void | Remove (int) |
void | Reserve (int) |
void | Reverse () |
int | Search (const T &) const |
int | Search (const T *, int(*)(const T *, const T *)) const |
void | SetArray (T *) |
void | SetArray (T *, int, int) |
void | SetCapacity (int) |
void | SetCount (int) |
void | Shrink () |
unsigned int | SizeOfArray () const |
unsigned int | SizeOfElement () const |
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 |
void | Swap (int, int) |
unsigned int | UnsignedCount () const |
void | Zero () |
virtual | ~ON_SimpleArray () |
Protected Member Functions | |
void | Move (int, int, int) |
Protected Attributes | |
T * | m_a |
int | m_capacity |
int | m_count |
Definition at line 46 of file opennurbs_array.h.
ON_SimpleArray< T >::ON_SimpleArray | ( | ) |
Definition at line 65 of file opennurbs_array_defs.h.
ON_SimpleArray< T >::ON_SimpleArray | ( | int | c | ) |
Definition at line 72 of file opennurbs_array_defs.h.
ON_SimpleArray< T >::ON_SimpleArray | ( | const ON_SimpleArray< T > & | src | ) |
Definition at line 83 of file opennurbs_array_defs.h.
ON_SimpleArray< T >::~ON_SimpleArray | ( | ) | [virtual] |
Definition at line 92 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Append | ( | const T & | x | ) |
Definition at line 423 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Append | ( | int | count, |
const T * | p | ||
) |
Definition at line 450 of file opennurbs_array_defs.h.
T & ON_SimpleArray< T >::AppendNew | ( | ) |
Definition at line 411 of file opennurbs_array_defs.h.
T * ON_SimpleArray< T >::Array | ( | ) |
Definition at line 278 of file opennurbs_array_defs.h.
const T * ON_SimpleArray< T >::Array | ( | ) | const |
Reimplemented in ON_2dexMap, and ON_UuidList.
Definition at line 284 of file opennurbs_array_defs.h.
T * ON_SimpleArray< T >::At | ( | int | i | ) |
Definition at line 330 of file opennurbs_array_defs.h.
T * ON_SimpleArray< T >::At | ( | unsigned int | i | ) |
Definition at line 336 of file opennurbs_array_defs.h.
T * ON_SimpleArray< T >::At | ( | ON__INT64 | i | ) |
Definition at line 354 of file opennurbs_array_defs.h.
T * ON_SimpleArray< T >::At | ( | ON__UINT64 | i | ) |
Definition at line 360 of file opennurbs_array_defs.h.
const T * ON_SimpleArray< T >::At | ( | int | i | ) | const |
Definition at line 342 of file opennurbs_array_defs.h.
const T * ON_SimpleArray< T >::At | ( | unsigned int | i | ) | const |
Definition at line 348 of file opennurbs_array_defs.h.
const T * ON_SimpleArray< T >::At | ( | ON__INT64 | i | ) | const |
Definition at line 366 of file opennurbs_array_defs.h.
const T * ON_SimpleArray< T >::At | ( | ON__UINT64 | i | ) | const |
Definition at line 372 of file opennurbs_array_defs.h.
int ON_SimpleArray< T >::BinarySearch | ( | const T * | key, |
int(*)(const T *, const T *) | compar | ||
) | const |
Definition at line 554 of file opennurbs_array_defs.h.
int ON_SimpleArray< T >::BinarySearch | ( | const T * | key, |
int(*)(const T *, const T *) | compar, | ||
int | count | ||
) | const |
Definition at line 600 of file opennurbs_array_defs.h.
int ON_SimpleArray< T >::Capacity | ( | ) | const |
Definition at line 142 of file opennurbs_array_defs.h.
int ON_SimpleArray< T >::Count | ( | ) | const |
Reimplemented in ON_2dexMap, ON_UuidPairList, ON_UuidIndexList, and ON_UuidList.
Definition at line 130 of file opennurbs_array_defs.h.
ON__UINT32 ON_SimpleArray< T >::DataCRC | ( | ON__UINT32 | current_remainder | ) | const |
Definition at line 161 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Destroy | ( | ) |
Reimplemented in ON_UuidList, ON_CurveArray, and ON_SurfaceArray.
Definition at line 749 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::EmergencyDestroy | ( | void | ) |
Definition at line 120 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Empty | ( | ) |
Reimplemented in ON_UuidPairList, ON_UuidIndexList, and ON_UuidList.
Definition at line 499 of file opennurbs_array_defs.h.
T * ON_SimpleArray< T >::First | ( | ) |
Definition at line 318 of file opennurbs_array_defs.h.
const T * ON_SimpleArray< T >::First | ( | ) | const |
Definition at line 324 of file opennurbs_array_defs.h.
bool ON_SimpleArray< T >::HeapSort | ( | int(*)(const T *, const T *) | compar | ) |
Definition at line 650 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Insert | ( | int | i, |
const T & | x | ||
) |
Definition at line 467 of file opennurbs_array_defs.h.
T * ON_SimpleArray< T >::KeepArray | ( | ) |
Definition at line 290 of file opennurbs_array_defs.h.
T * ON_SimpleArray< T >::Last | ( | ) |
Definition at line 378 of file opennurbs_array_defs.h.
const T * ON_SimpleArray< T >::Last | ( | ) | const |
Definition at line 384 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::MemSet | ( | unsigned char | value | ) |
Definition at line 726 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Move | ( | int | dest_i, |
int | src_i, | ||
int | ele_cnt | ||
) | [protected] |
Definition at line 392 of file opennurbs_array_defs.h.
int ON_SimpleArray< T >::NewCapacity | ( | ) | const |
Definition at line 794 of file opennurbs_array_defs.h.
ON_SimpleArray< T >::operator const T * | ( | ) | const |
Definition at line 272 of file opennurbs_array_defs.h.
ON_SimpleArray< T >::operator T * | ( | ) |
Definition at line 266 of file opennurbs_array_defs.h.
ON_SimpleArray< T > & ON_SimpleArray< T >::operator= | ( | const ON_SimpleArray< T > & | src | ) | [virtual] |
Definition at line 98 of file opennurbs_array_defs.h.
T & ON_SimpleArray< T >::operator[] | ( | int | i | ) |
Definition at line 167 of file opennurbs_array_defs.h.
T & ON_SimpleArray< T >::operator[] | ( | unsigned int | i | ) |
Definition at line 179 of file opennurbs_array_defs.h.
T & ON_SimpleArray< T >::operator[] | ( | ON__INT64 | i | ) |
Definition at line 192 of file opennurbs_array_defs.h.
T & ON_SimpleArray< T >::operator[] | ( | ON__UINT64 | i | ) |
Definition at line 204 of file opennurbs_array_defs.h.
const T & ON_SimpleArray< T >::operator[] | ( | int | i | ) | const |
Reimplemented in ON_2dexMap.
Definition at line 216 of file opennurbs_array_defs.h.
const T & ON_SimpleArray< T >::operator[] | ( | unsigned int | i | ) | const |
Definition at line 228 of file opennurbs_array_defs.h.
const T & ON_SimpleArray< T >::operator[] | ( | ON__INT64 | i | ) | const |
Definition at line 241 of file opennurbs_array_defs.h.
const T & ON_SimpleArray< T >::operator[] | ( | ON__UINT64 | i | ) | const |
Definition at line 253 of file opennurbs_array_defs.h.
bool ON_SimpleArray< T >::Permute | ( | const int * | index | ) |
Definition at line 702 of file opennurbs_array_defs.h.
bool ON_SimpleArray< T >::QuickSort | ( | int(*)(const T *, const T *) | compar | ) |
Definition at line 662 of file opennurbs_array_defs.h.
T * ON_SimpleArray< T >::Realloc | ( | T * | ptr, |
int | capacity | ||
) | [virtual] |
Definition at line 59 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Remove | ( | ) |
Definition at line 483 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Remove | ( | int | i | ) | [virtual] |
Definition at line 489 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Reserve | ( | int | newcap | ) |
Reimplemented in ON_2dexMap, ON_UuidPairList, ON_UuidIndexList, and ON_UuidList.
Definition at line 736 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Reverse | ( | ) |
Definition at line 507 of file opennurbs_array_defs.h.
int ON_SimpleArray< T >::Search | ( | const T & | key | ) | const |
Definition at line 533 of file opennurbs_array_defs.h.
int ON_SimpleArray< T >::Search | ( | const T * | key, |
int(*)(const T *, const T *) | compar | ||
) | const |
Definition at line 544 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::SetArray | ( | T * | p | ) |
Definition at line 300 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::SetArray | ( | T * | p, |
int | count, | ||
int | capacity | ||
) |
Definition at line 308 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::SetCapacity | ( | int | capacity | ) |
Definition at line 764 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::SetCount | ( | int | count | ) |
Definition at line 757 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Shrink | ( | ) |
Definition at line 743 of file opennurbs_array_defs.h.
unsigned int ON_SimpleArray< T >::SizeOfArray | ( | ) | const |
Definition at line 148 of file opennurbs_array_defs.h.
unsigned int ON_SimpleArray< T >::SizeOfElement | ( | ) | const |
Definition at line 154 of file opennurbs_array_defs.h.
bool ON_SimpleArray< T >::Sort | ( | ON::sort_algorithm | sort_algorithm, |
int * | index, | ||
int(*)(const T *, const T *) | compar | ||
) | const |
Definition at line 674 of file opennurbs_array_defs.h.
bool ON_SimpleArray< T >::Sort | ( | ON::sort_algorithm | sort_algorithm, |
int * | index, | ||
int(*)(const T *, const T *, void *) | compar, | ||
void * | p | ||
) | const |
Definition at line 688 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Swap | ( | int | i, |
int | j | ||
) |
Definition at line 523 of file opennurbs_array_defs.h.
unsigned int ON_SimpleArray< T >::UnsignedCount | ( | ) | const |
Definition at line 136 of file opennurbs_array_defs.h.
void ON_SimpleArray< T >::Zero | ( | ) |
Definition at line 718 of file opennurbs_array_defs.h.
T* ON_SimpleArray< T >::m_a [protected] |
Definition at line 351 of file opennurbs_array.h.
int ON_SimpleArray< T >::m_capacity [protected] |
Definition at line 353 of file opennurbs_array.h.
int ON_SimpleArray< T >::m_count [protected] |
Definition at line 352 of file opennurbs_array.h.