16#if !defined(ON_ARRAY_INC_)
90 operator const T*()
const;
94 const T*
First()
const;
97 const T*
At(
int )
const;
100 const T*
Last()
const;
111 void Append(
int,
const T* );
114 void Insert(
int,
const T& );
144 int Search(
const T& )
const;
154 int Search(
const T*,
int (*)(
const T*,
const T*) )
const;
164 int BinarySearch(
const T*,
int (*)(
const T*,
const T*) )
const;
168 bool HeapSort(
int (*)(
const T*,
const T*) );
173 bool QuickSort(
int (*)(
const T*,
const T*) );
179 bool Sort( ON::sort_algorithm,
int* ,
int (*)(
const T*,
const T*) )
const;
201 int (*)(
const T*,
const T*,
void*),
218 void MemSet(
unsigned char);
254 const T*
Array()
const;
288 void Move(
int ,
int ,
int );
298#if defined(ON_DLL_TEMPLATE)
302#pragma warning( push )
303#pragma warning( disable : 4231 )
345#pragma warning( pop )
368 bool SwapCoordinates(
int,
int);
390 bool SwapCoordinates(
int,
int);
495 bool GetTightBoundingBox(
497 int bGrowBox =
false,
521 bool SwapCoordinates(
556 double angle_in_radians,
589 bool GetClosestPoint(
591 int* closest_point_index,
592 double maximum_distance = 0.0
618 bool SwapCoordinates(
int,
int);
635 bool SwapCoordinates(
int,
int);
652 bool SwapCoordinates(
int,
int);
675 bool SwapCoordinates(
int,
int);
698 bool SwapCoordinates(
int,
int);
716 bool bGrowBow =
false
720 bool SwapCoordinates(
int,
int);
741 bool SwapCoordinates(
int,
int);
776 void EmergencyDestroy(
void);
786 int Capacity()
const;
788 unsigned int SizeOfArray()
const;
790 T& operator[](
int );
792 const T& operator[](
int )
const;
798 operator const T*()
const;
801 const T* First()
const;
804 const T* At(
int )
const;
807 const T* Last()
const;
815 void Append(
const T& );
818 void Append(
int,
const T*);
820 void Insert(
int,
const T& );
846 int Search(
const T*,
int (*)(
const T*,
const T*) )
const;
856 int BinarySearch(
const T*,
int (*)(
const T*,
const T*) )
const;
862 bool HeapSort(
int (*)(
const T*,
const T*) );
867 bool QuickSort(
int (*)(
const T*,
const T*) );
873 bool Sort( ON::sort_algorithm,
int* ,
int (*)(
const T*,
const T*) )
const;
895 int (*)(
const T*,
const T*,
void*),
902 bool Permute(
const int* );
944 const T* Array()
const;
946 void SetCount(
int );
949 void SetCapacity(
int );
953 int NewCapacity()
const;
980 void Move(
int ,
int ,
int );
981 void ConstructDefaultElement(T*);
982 void DestroyElement(T&);
1016 bool HeapSort(
int (*)(
const T*,
const T*) );
1021 bool QuickSort(
int (*)(
const T*,
const T*) );
1052#if defined(ON_DLL_TEMPLATE)
1057#pragma warning( push )
1058#pragma warning( disable : 4231 )
1066#pragma warning( pop )
1151 bool AddUuid(
ON_UUID uuid,
bool bCheckForDupicates=
true);
1162 bool RemoveUuid(
ON_UUID uuid);
1170 bool FindUuid(
ON_UUID uuid)
const;
1278 bool bCheckForDupicates=
true);
1319 bool FindUuid(
ON_UUID uuid,
int* index=
NULL)
const;
1329 bool FindUuidIndex(
ON_UUID uuid,
int index)
const;
1401 void Create(
int count,
int i0,
int j);
1479 const ON_2dex* Find2dex(
int i)
const;
int i
Copyright (c) 2011-2018 by Andrew Mustun.
Definition autostart.js:32
Definition opennurbs_array.h:353
Definition opennurbs_array.h:660
Definition opennurbs_array.h:1375
bool m_bSorted
Definition opennurbs_array.h:1482
Definition opennurbs_array.h:376
Definition opennurbs_array.h:683
Definition opennurbs_array.h:398
Definition opennurbs_point.h:403
Definition opennurbs_array.h:706
Definition opennurbs_point.h:931
Definition opennurbs_array.h:602
Definition opennurbs_array.h:727
Definition opennurbs_array.h:626
Definition opennurbs_array.h:643
Definition opennurbs_archive.h:152
Definition opennurbs_bounding_box.h:25
Definition opennurbs_array.h:760
int m_capacity
Definition opennurbs_array.h:985
T * m_a
Definition opennurbs_array.h:983
int m_count
Definition opennurbs_array.h:984
Definition opennurbs_array.h:998
Definition opennurbs_array.h:46
void Shrink()
Definition opennurbs_array_defs.h:555
void Zero()
Definition opennurbs_array_defs.h:530
T * Last()
Definition opennurbs_array_defs.h:240
void Append(const T &)
Definition opennurbs_array_defs.h:285
T * At(int)
Definition opennurbs_array_defs.h:228
int m_capacity
Definition opennurbs_array.h:291
int m_count
Definition opennurbs_array.h:290
void SetCount(int)
Definition opennurbs_array_defs.h:569
void Insert(int, const T &)
Definition opennurbs_array_defs.h:329
void Destroy()
Definition opennurbs_array_defs.h:561
void Swap(int, int)
Definition opennurbs_array_defs.h:385
T * m_a
Definition opennurbs_array.h:289
T & operator[](int)
Definition opennurbs_array_defs.h:157
int NewCapacity() const
Definition opennurbs_array_defs.h:606
bool Sort(ON::sort_algorithm, int *, int(*)(const T *, const T *)) const
Definition opennurbs_array_defs.h:486
void SetArray(T *)
Definition opennurbs_array_defs.h:209
ON_SimpleArray()
Definition opennurbs_array_defs.h:68
unsigned int SizeOfArray() const
Definition opennurbs_array_defs.h:145
bool HeapSort(int(*)(const T *, const T *))
Definition opennurbs_array_defs.h:462
void EmergencyDestroy(void)
Definition opennurbs_array_defs.h:123
void Empty()
Definition opennurbs_array_defs.h:361
void Reverse()
Definition opennurbs_array_defs.h:369
bool QuickSort(int(*)(const T *, const T *))
Definition opennurbs_array_defs.h:474
void Move(int, int, int)
Definition opennurbs_array_defs.h:254
void Reserve(int)
Definition opennurbs_array_defs.h:548
void MemSet(unsigned char)
Definition opennurbs_array_defs.h:538
void SetCapacity(int)
Definition opennurbs_array_defs.h:576
ON__UINT32 DataCRC(ON__UINT32 current_remainder) const
Definition opennurbs_array_defs.h:151
int Search(const T &) const
Definition opennurbs_array_defs.h:395
void Remove()
Definition opennurbs_array_defs.h:345
virtual T * Realloc(T *, int)
Definition opennurbs_array_defs.h:62
bool Permute(const int *)
Definition opennurbs_array_defs.h:514
int Count() const
Definition opennurbs_array_defs.h:133
virtual ON_SimpleArray< T > & operator=(const ON_SimpleArray< T > &)
Definition opennurbs_array_defs.h:101
T & AppendNew()
Definition opennurbs_array_defs.h:273
T * First()
Definition opennurbs_array_defs.h:216
T * Array()
Definition opennurbs_array_defs.h:187
int BinarySearch(const T *, int(*)(const T *, const T *)) const
Definition opennurbs_array_defs.h:416
int Capacity() const
Definition opennurbs_array_defs.h:139
virtual ~ON_SimpleArray()
Definition opennurbs_array_defs.h:95
T * KeepArray()
Definition opennurbs_array_defs.h:199
Definition opennurbs_uuid.h:31
Definition opennurbs_array.h:1237
int m_removed_count
Definition opennurbs_array.h:1371
bool Write(class ON_BinaryArchive &archive) const
int m_sorted_count
Definition opennurbs_array.h:1370
bool Read(class ON_BinaryArchive &archive)
bool RemoveUuidIndex(ON_UUID uuid, int index)
Definition opennurbs_array.h:1079
int m_sorted_count
Definition opennurbs_array.h:1224
int m_removed_count
Definition opennurbs_array.h:1225
Definition opennurbs_array.h:1025
Reverses all selected entities which support reversing (lines, arcs, splines).
Definition Reverse.js:11
Rotates selected entities.
Definition Rotate.js:11
Translates (moves or copies) selected entities.
Definition Translate.js:11
static int ON_CompareDecreasing(const T *a, const T *b)
static int ON_CompareIncreasing(const T *a, const T *b)
#define ON_CLASS
Definition opennurbs_defines.h:91
static bool SearchHelper(const ON_RTreeNode *a_node, const ON_RTreeBBox *a_rect, ON_RTreeSearchResultCallback &a_result)
Definition opennurbs_rtree.cpp:1863
#define NULL
Definition opennurbs_system.h:256
unsigned int ON__UINT32
Definition opennurbs_system.h:326
Definition opennurbs_defines.h:249