52 class FL_EXPORT CFLArray :
public Base::CFLBase
54 SupportToDuplicateObject(CFLArray<T>,*
this);
165 virtual T&
GetAt(int64_t i64Index)
const;
178 virtual void SetAt(int64_t i64Index,
const T& tValue);
239 virtual T*
PushBack(
const T* pArrData, int64_t i64Count);
280 virtual T*
PushFront(
const T* pArrData, int64_t i64Count);
339 virtual T*
Append(
const T* pArrData, int64_t i64Count);
384 virtual T*
InsertAt(int64_t i64Index,
const T* pArrData, int64_t i64Count);
399 virtual T*
InsertAt(int64_t i64Index,
const T& tValue);
460 virtual void Reverse(int64_t i64BeginIndex = 0, int64_t i64EndIndex = -1);
479 void Sort(int64_t i64BeginIndex, int64_t i64EndIndex,
bool(*pFnComparator)(
const T&,
const T&));
736 DeclareGetClassType();
743 std::vector<T>& m_vctArray;
744 DeclareFLArrayContainerObject;
747 typedef CFLArray<int32_t> CFLArrayL;
748 typedef CFLArray<uint32_t> CFLArrayUL;
749 typedef CFLArray<int64_t> CFLArrayLL;
750 typedef CFLArray<uint64_t> CFLArrayULL;
751 typedef CFLArray<float> CFLArrayF;
752 typedef CFLArray<double> CFLArrayD;
Template type array class.
Definition RangeTree.h:19
T & operator[](int64_t i64Index) const
Subscript Operator.
virtual void RemoveAt(int64_t i64Index)
Remove the element at that index.
CFLArray(const CFLArray< T > *pFlArray)
Copy constructor by pointer.
virtual T * Append(const T &tValue)
Add element at the end.
CFLArray(int64_t i64Count, const T &tValue)
Constructor.
virtual void ShrinkToFit()
Clean up unnecessary memory in array.
virtual T * Append(const CFLArray< T > &flArray)
Add elements at the end.
T & operator[](uint32_t u32Index) const
Subscript Operator.
virtual T * PushFront(const T &tValue)
Insert element at the front.
virtual T * PushFront(const CFLArray< T > &flArray)
Insert elements at the front.
virtual T * PushFront(const T *pArrData, int64_t i64Count)
Insert elements at the front.
virtual T * InsertAt(int64_t i64Index, const CFLArray< T > &flArray)
Insert elements at that index.
void Swap(CFLArray< T > *pFlaArray)
Swaps the contents of the array.
T & operator[](int32_t i32Index) const
Subscript Operator.
virtual T & Front() const
Get the front value.
virtual int64_t GetCount() const
Count of elements.
virtual bool IsEmpty() const
Check if element is empty.
virtual void PopBack()
Remove the back element.
void Swap(CFLArray< T > &flaArray)
Swaps the contents of the array.
virtual void Reserve(int64_t i64Size)
Array memory is pre-allocated.
const CFLArray< T > & Assign(const T &tValue)
Assigns one scalar value.
virtual T * PushBack(const CFLArray< T > &flArray)
Insert elements at the back.
virtual T * PushBack(const T &tValue)
Insert element at the back.
virtual ~CFLArray()
Destructor.
virtual T * PushBack(const T *pArrData, int64_t i64Count)
Insert elements at the back.
virtual T * InsertAt(int64_t i64Index, const T &tValue)
Insert an element at that index.
virtual T * GetBuffer() const
Get pointer to data.
virtual void Reverse(int64_t i64BeginIndex=0, int64_t i64EndIndex=-1)
Reverses the data within the range from the specified start index to the end index....
CFLArray(const CFLArray< T > &flArray)
Copy constructor by reference.
virtual const CFLArray< T > & Assign(const CFLArray< T > *pFlArray)
Allocate an object.
const CFLArray< T > & operator+=(const T &tValue)
Addition assignment operator.
friend CFLArray< T > operator+(const CFLArray< T > &flArray1, const T &tValue2)
Addition operator.
Definition FLArray.h:709
virtual T * Append(const T *pArrData, int64_t i64Count)
Add element at the end.
CFLArray()
Default constructor.
virtual T & Back() const
Get the back value.
virtual T * InsertAt(int64_t i64Index, const T *pArrData, int64_t i64Count)
Insert elements at that index.
virtual const CFLArray< T > & Assign(const CFLArray< T > &flArray)
Allocate an object.
virtual void Clear()
Clear all elements.
const CFLArray< T > & Assign(int64_t i64Count, const T &tValue)
Assigns scalar values filled with counts.
const CFLArray< T > & operator=(const CFLArray< T > &flArray)
Assignment operator.
virtual void SetAt(int64_t i64Index, const T &tValue)
Set the value at that index.
friend CFLArray< T > operator+(const CFLArray< T > &flArray1, const CFLArray< T > &flArray2)
Addition operator.
Definition FLArray.h:689
const CFLArray< T > & operator=(const T &tValue)
Assignment operator.
virtual T * Resize(int64_t i64Size)
Resizing an array.
virtual T & GetAt(int64_t i64Index) const
Get the value at that index.
friend CFLArray< T > operator+(const T &tValue1, const CFLArray< T > &flArray2)
Addition operator.
Definition FLArray.h:729
virtual void PopFront()
Remove the front element.
const CFLArray< T > & operator+=(const CFLArray< T > &flArray)
Addition assignment operator.
T & operator[](uint64_t u64Index) const
Subscript Operator.
const CFLArray< T > & Assign(const T *pArrData, int64_t i64Count)
Constructor. Allocate the number of data in memory.
CFLArray(const T *pArrData, int64_t i64Count)
Constructor. Allocate the number of data in memory.
void Sort(int64_t i64BeginIndex, int64_t i64EndIndex, bool(*pFnComparator)(const T &, const T &))
Sorts the data within the specified range from the start index to the end index. Specifying -1 refers...