-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRadSortArray.cp
More file actions
executable file
·36 lines (29 loc) · 972 Bytes
/
RadSortArray.cp
File metadata and controls
executable file
·36 lines (29 loc) · 972 Bytes
1
// ===========================================================================// RadSortArray.cp// ===========================================================================// #include "RadSortArray.h"// ---------------------------------------------------------------------------// ¥ RadSortArray// ---------------------------------------------------------------------------// Constructor for an empty RadSortArrayRadSortArray::RadSortArray( LComparator *inComparator, Boolean inKeepSorted) : CFloatArray(inComparator, inKeepSorted){ theRadCompPtr = new RadComp; SetComparator(theRadCompPtr, false); SetKeepSorted(true);}// ---------------------------------------------------------------------------// ¥ ~RadSortArray// ---------------------------------------------------------------------------// Destructor for RadSortArrayRadSortArray::~RadSortArray(){ if (theRadCompPtr != nil) { delete theRadCompPtr; theRadCompPtr = nil; }}