A generic array template class for non-moveable objects eg. NonCopyable classes. More...
#include "murl_object_array.h"
Classes | |
class | ConstIterator |
Definition of the const iterator. More... | |
class | Iterator |
Definition of the iterator. More... | |
Public Types | |
using | ValueType = DataType |
The template parameter value type. | |
Public Member Functions | |
ObjectArray () | |
Construct an empty array. | |
ObjectArray (const ObjectArray &other) | |
Construct an array from an already existing one, performing a deep copy. More... | |
~ObjectArray () | |
Destroy the array and all of its contents. | |
void | operator= (const ObjectArray &other) |
Assign the content of another array to this one, performing a deep copy. More... | |
void | Clear () |
Clear the array and remove the underlying storage. | |
void | Empty () |
Empty the array, but keep the underlying storage. | |
void | Shrink () |
Shrink the array so that the underlying storage is only as large as necessary. | |
Bool | Trim (SInt32 n) |
Reduce the array to a given number of items. More... | |
Bool | Drop (SInt32 n=1) |
Reduce the array by removing a given number of items from the end. More... | |
void | Reserve (SInt32 n) |
Reserve storage space. More... | |
Bool | SetCount (SInt32 n) |
Set the actual number of items in the array. More... | |
Bool | SetCount (SInt32 n, const DataType &item) |
Set the actual number of items in the array. More... | |
Bool | SetCountAndReserve (SInt32 n) |
Set the actual number of items in the array and reserve extra storage space. More... | |
Bool | SetCountAndReserve (SInt32 n, const DataType &item) |
Set the actual number of items in the array and reserve extra storage space. More... | |
DataType & | Set (SInt32 index, const DataType &item) |
Initialize an item with a given item. More... | |
DataType & | Set (SInt32 index, DataType *item) |
Set a new allocated item at a given position. More... | |
Bool | Set (SInt32 index, const DataType &item, SInt32 count) |
Initialize a range of items with a given item. More... | |
void | Fill (const DataType &item) |
Fill all items with a given item. More... | |
void | Swap (SInt32 index1, SInt32 index2) |
Swap two array items. More... | |
void | Move (SInt32 source, SInt32 dest) |
Move an item from a source position to a destination position. More... | |
DataType & | Add () |
Add a new item at the end of the array. More... | |
DataType & | Add (const DataType &item) |
Add a given item at the end of the array. More... | |
DataType & | Add (DataType *item) |
Add a new allocated item at the end of the array. More... | |
template<class DataTypeT > | |
DataTypeT & | Create () |
Create and add an item at the end of the array. More... | |
Bool | Add (const ObjectArray &other) |
Add a given array of items at the end of the array. More... | |
Bool | Add (const ObjectArray &other, int offset, int count) |
Add a subset of given array of items at the end of the array. More... | |
DataType & | Insert (SInt32 index) |
Insert a new item at a given position. More... | |
DataType & | Insert (SInt32 index, const DataType &item) |
Insert a given item at a given position. More... | |
DataType & | Insert (SInt32 index, DataType *item) |
Insert a new allocated item at a given position. More... | |
Bool | Insert (SInt32 index, const DataType &item, SInt32 count) |
Insert a number of copies of a given item at a given position. More... | |
Bool | InsertN (SInt32 index, SInt32 count=1) |
Insert a given number of new items at a given position. More... | |
Bool | Insert (SInt32 index, const ObjectArray &other) |
Insert a given array of items at a given position. More... | |
Bool | Insert (SInt32 index, const ObjectArray &other, SInt32 offset, SInt32 count) |
Insert a subset of given array of items at a given position. More... | |
Bool | Remove (SInt32 index, SInt32 count=1) |
Remove (and destroy) a number of items at a given position. More... | |
void | Remove (const SInt32 *sortedIndices, SInt32 count) |
Remove (and destroy) a number of items at given positions. More... | |
void | Remove (const SInt32Array &sortedIndices) |
Remove (and destroy) a number of items at given positions. More... | |
SInt32 | Find (const DataType &item) const |
Find the first occurrence of a given item in the array. More... | |
SInt32 | Find (const DataType &item, SInt32 firstIndex) const |
Find the first occurrence of a given item in the array. More... | |
SInt32 | FindLast (const DataType &item) const |
Find the last occurrence of a given item in the array. More... | |
SInt32 | FindLast (const DataType &item, SInt32 lastIndex) const |
Find the last occurrence of a given item in the array. More... | |
DataType & | Front () |
Retrieve the first item from the array. More... | |
const DataType & | Front () const |
Retrieve the first item from the array. More... | |
DataType & | Back () |
Retrieve the last item from the array. More... | |
const DataType & | Back () const |
Retrieve the last item from the array. More... | |
DataType & | Bottom () |
Retrieve the first item from the array. More... | |
const DataType & | Bottom () const |
Retrieve the first item from the array. More... | |
DataType & | Top () |
Retrieve the last item from the array. More... | |
const DataType & | Top () const |
Retrieve the last item from the array. More... | |
DataType & | At (SInt32 index) |
Retrieve the item at a given position from the array. More... | |
DataType & | At (SInt32 index, const DataType &item) |
Retrieve the item at a given position from the array. More... | |
SInt32 | GetCount () const |
Get the number of items in the array. More... | |
UInt32 | GetCountUInt32 () const |
Get the number of items in the array. More... | |
Bool | IsEmpty () const |
Check if the array is empty. More... | |
SInt32 | GetAlloc () const |
Get the number of actually allocated items. More... | |
Bool | IsEqual (const ObjectArray &other) const |
Compare the array to another one. More... | |
Bool | IsIndexValid (SInt32 index) const |
Check if a given index is a valid index. More... | |
DataType & | operator[] (SInt32 index) |
Retrieve the item at a given position from the array. More... | |
const DataType & | operator[] (SInt32 index) const |
Retrieve the item at a given position from the array. More... | |
DataType & | Get (SInt32 index) |
Get the item at a given position from the array. More... | |
const DataType & | Get (SInt32 index) const |
Get the item at a given position from the array. More... | |
DataType * | Detach (SInt32 index) |
Removes the item at a given position and giving up ownership. More... | |
DataType * | PopDetach () |
Removes the item at the top position and giving up ownership. More... | |
DataType * | Swap (SInt32 index, DataType *newItem) |
Swap the item at a given position with a new allocated item. More... | |
void | Swap (ObjectArray &other) |
Exchange the content of the array with a given second one. More... | |
ConstIterator | Begin () const |
Get the const iterator to the first item. More... | |
ConstIterator | End () const |
Get the const iterator next to the last item. More... | |
ConstIterator | GetIter (SInt32 index) const |
Get the const iterator of a specified index. More... | |
SInt32 | GetIterIndex (ConstIterator iterator) const |
Get the item index by iterator. More... | |
Iterator | Begin () |
Get the iterator to the first item. More... | |
Iterator | End () |
Get the iterator next to the last item. More... | |
Iterator | GetIter (SInt32 index) |
Get the iterator of a specified index. More... | |
Detailed Description
template<class DataType>
class Murl::ObjectArray< DataType >
A generic array template class for non-moveable objects eg. NonCopyable classes.
The object array class uses an array of pointers to the objects, this ensures that the object's memory location is unchanged when modifying the array.
This class is based on the NTL Array container, see http://www.ultimatepp.org
- Template Parameters
-
DataType The value's data type of the array.
Constructor & Destructor Documentation
◆ ObjectArray()
|
inline |
Construct an array from an already existing one, performing a deep copy.
- Parameters
-
other The array to copy.
Member Function Documentation
◆ operator=()
|
inline |
Assign the content of another array to this one, performing a deep copy.
- Parameters
-
other The source array.
◆ Trim()
|
inline |
Reduce the array to a given number of items.
- Parameters
-
n The new number of items in the array, must be smaller than the current item count.
- Returns
- true if successful.
Referenced by Murl::ObjectArray< DataType >::Drop().
◆ Drop()
|
inline |
Reduce the array by removing a given number of items from the end.
- Parameters
-
n The number of items to remove from the end.
- Returns
- true if successful.
References Murl::ObjectArray< DataType >::GetCount(), and Murl::ObjectArray< DataType >::Trim().
◆ Reserve()
|
inline |
Reserve storage space.
If the given size is less than the actual size, nothing is done.
- Parameters
-
n The number of items the underlying storage should hold.
References Murl::Array< DataType >::Reserve().
◆ SetCount() [1/2]
|
inline |
Set the actual number of items in the array.
If the given number is smaller than the current size, the array is trimmed, and existing items beyond the new size are destroyed. If the given number is higher, new items are initialized via the value type's default constructor. If the given number is also higher than the underlying storage's capacity, the storage is enlarged to hold exactly the requested number of items.
- Parameters
-
n The new number of items in the array.
- Returns
- true if successful.
Referenced by Murl::Logic::GraphInstanceObjects< InstanceObjectType >::Init().
◆ SetCount() [2/2]
|
inline |
Set the actual number of items in the array.
If the given number is smaller than the current size, the array is trimmed, and existing items beyond the new size are destroyed. If the given number is higher, new items are initialized via the given value's copy constructor. If the given number is also higher than the underlying storage's capacity, the storage is enlarged to hold exactly the requested number of items.
- Parameters
-
n The new number of items in the array. item The value to initialize any newly added items with.
- Returns
- true if successful.
◆ SetCountAndReserve() [1/2]
|
inline |
Set the actual number of items in the array and reserve extra storage space.
If the given number is smaller than the current size, the array is trimmed, and existing items beyond the new size are destroyed. If the given number is higher, new items are initialized via the value type's default constructor. If the given number is also higher than the underlying storage's capacity, the storage is enlarged and some extra capacity is added.
- Parameters
-
n The new number of items in the array.
- Returns
- true if successful.
Referenced by Murl::ObjectArray< DataType >::At().
◆ SetCountAndReserve() [2/2]
|
inline |
Set the actual number of items in the array and reserve extra storage space.
If the given number is smaller than the current size, the array is trimmed, and existing items beyond the new size are destroyed. If the given number is higher, new items are initialized via the given value's copy constructor. If the given number is also higher than the underlying storage's capacity, the storage is enlarged and some extra capacity is added.
- Parameters
-
n The new number of items in the array. item The value to initialize any newly added items with.
- Returns
- true if successful.
◆ Set() [1/3]
|
inline |
Initialize an item with a given item.
- Parameters
-
index The index of the item to set. item The source item to copy.
- Returns
- A reference to the set item.
Referenced by Murl::ObjectArray< DataType >::Fill().
◆ Set() [2/3]
|
inline |
Set a new allocated item at a given position.
The array takes the ownership of the item.
- Parameters
-
index the zero-based index where the new item should be set. item The given item to be set.
- Returns
- A reference to the item.
◆ Set() [3/3]
|
inline |
Initialize a range of items with a given item.
- Parameters
-
index The index of the first item to set. item The source item to copy. count The number of items to set.
- Returns
- true if successful.
◆ Fill()
|
inline |
Fill all items with a given item.
- Parameters
-
item The source item to copy.
References Murl::ObjectArray< DataType >::GetCount(), and Murl::ObjectArray< DataType >::Set().
◆ Swap() [1/3]
|
inline |
Swap two array items.
- Parameters
-
index1 The index of the first item. index2 The index of the second item.
References Murl::Util::Swap().
◆ Move()
|
inline |
Move an item from a source position to a destination position.
Removes the item at the source position and inserts it at the destination position without using the copy constructor.
- Parameters
-
source The index of the item to move. dest The destination index to insert the item.
References Murl::Array< DataType >::Insert(), and Murl::Array< DataType >::Remove().
◆ Add() [1/5]
|
inline |
Add a new item at the end of the array.
The new item entry is initialized using the value type's default constructor.
- Returns
- A reference to the newly created item.
References Murl::Array< DataType >::Add().
Referenced by Murl::ObjectArray< DataType >::Create().
◆ Add() [2/5]
|
inline |
Add a given item at the end of the array.
The new item entry is initialized using the given item's copy constructor.
- Parameters
-
item The given item to be inserted at the end of the array.
- Returns
- A reference to the newly created item.
References Murl::Array< DataType >::Add().
◆ Add() [3/5]
|
inline |
Add a new allocated item at the end of the array.
The array takes the ownership of the item.
- Parameters
-
item The given item to be inserted at the end of the array.
- Returns
- A reference to the item.
References Murl::Array< DataType >::Add().
◆ Create()
|
inline |
Create and add an item at the end of the array.
- Template Parameters
-
DataTypeT The type of object to create.
- Returns
- A reference to the newly created item.
References Murl::ObjectArray< DataType >::Add().
◆ Add() [4/5]
|
inline |
Add a given array of items at the end of the array.
The new item entries are initialized using the original items' copy constructors.
- Parameters
-
other The given item array to be inserted.
- Returns
- true if successful.
References Murl::ObjectArray< DataType >::GetCount(), and Murl::ObjectArray< DataType >::Insert().
◆ Add() [5/5]
|
inline |
Add a subset of given array of items at the end of the array.
The new item entries are initialized using the original items' copy constructors.
- Parameters
-
other The given source item array. offset The index into the source array specifying the first item to copy. count The number of source array items to copy.
- Returns
- true if successful.
References Murl::ObjectArray< DataType >::GetCount(), and Murl::ObjectArray< DataType >::Insert().
◆ Insert() [1/6]
|
inline |
Insert a new item at a given position.
The new item entry is initialized using the value type's default constructor.
- Parameters
-
index the zero-based index where the new item should be inserted.
- Returns
- A reference to the newly created item.
References Murl::ObjectArray< DataType >::InsertN().
Referenced by Murl::ObjectArray< DataType >::Add(), and Murl::ObjectArray< DataType >::Insert().
◆ Insert() [2/6]
|
inline |
Insert a given item at a given position.
The new item is initialized using the given item's copy constructor.
- Parameters
-
index the zero-based index where the new item should be inserted. item The given item to be inserted.
- Returns
- A reference to the newly created item.
References Murl::ObjectArray< DataType >::Insert().
◆ Insert() [3/6]
|
inline |
Insert a new allocated item at a given position.
The array takes the ownership of the item.
- Parameters
-
index the zero-based index where the new item should be inserted. item The given item to be inserted.
- Returns
- A reference to the item.
References Murl::Array< DataType >::InsertN().
◆ Insert() [4/6]
|
inline |
Insert a number of copies of a given item at a given position.
The new item entries are initialized using the given item's copy constructor.
- Parameters
-
index the zero-based index where the new items should be inserted. item The given item to be inserted. count The number of copies of the given item to insert.
- Returns
- true if successful.
References Murl::Array< DataType >::Begin(), and Murl::Array< DataType >::InsertN().
◆ InsertN()
|
inline |
Insert a given number of new items at a given position.
The new item entries are initialized using the value type's default constructor.
- Parameters
-
index the zero-based index where the new items should be inserted. count The number of new items to be inserted.
- Returns
- true if successful.
References Murl::Array< DataType >::Begin(), and Murl::Array< DataType >::InsertN().
Referenced by Murl::ObjectArray< DataType >::Insert().
◆ Insert() [5/6]
|
inline |
Insert a given array of items at a given position.
The new item entries are initialized using the original items' copy constructors.
- Parameters
-
index the zero-based index where the new items should be inserted. other The given item array to be inserted.
- Returns
- true if successful.
References Murl::ObjectArray< DataType >::GetCount(), Murl::ObjectArray< DataType >::Insert(), and Murl::ObjectArray< DataType >::IsEmpty().
◆ Insert() [6/6]
|
inline |
Insert a subset of given array of items at a given position.
The new item entries are initialized using the original items' copy constructors.
- Parameters
-
index the zero-based index where the new items should be inserted. other The given source item array. offset The index into the source array specifying the first item to copy. count The number of source array items to copy.
- Returns
- true if successful.
References Murl::Array< DataType >::InsertN().
◆ Remove() [1/3]
|
inline |
Remove (and destroy) a number of items at a given position.
- Parameters
-
index The zero-based index from where to remove the items. count The number of items to remove.
- Returns
- true if successful.
Referenced by Murl::ObjectArray< DataType >::Remove().
◆ Remove() [2/3]
|
inline |
Remove (and destroy) a number of items at given positions.
- Parameters
-
sortedIndices A pointer to sorted indices where to remove the items. count The number of items to remove, i.e. the number of indices.
◆ Remove() [3/3]
|
inline |
Remove (and destroy) a number of items at given positions.
- Parameters
-
sortedIndices A sorted array of indices where to remove the items.
References Murl::Array< DataType >::GetCount(), and Murl::ObjectArray< DataType >::Remove().
◆ Find() [1/2]
|
inline |
Find the first occurrence of a given item in the array.
- Parameters
-
item The item to find.
- Returns
- The index of the item, or -1 if the item was not found.
References Murl::ObjectArray< DataType >::GetCount().
◆ Find() [2/2]
|
inline |
Find the first occurrence of a given item in the array.
- Parameters
-
item The item to find. firstIndex The index where to start searching.
- Returns
- The index of the item, or -1 if the item was not found.
References Murl::ObjectArray< DataType >::GetCount().
◆ FindLast() [1/2]
|
inline |
Find the last occurrence of a given item in the array.
- Parameters
-
item The item to find.
- Returns
- The index of the item, or -1 if the item was not found.
References Murl::ObjectArray< DataType >::GetCount().
◆ FindLast() [2/2]
|
inline |
Find the last occurrence of a given item in the array.
- Parameters
-
item The item to find. lastIndex The index where to start searching.
- Returns
- The index of the item, or -1 if the item was not found.
References Murl::ObjectArray< DataType >::GetCount().
◆ Front() [1/2]
|
inline |
Retrieve the first item from the array.
Synonymous to Bottom().
- Returns
- A reference to the first item.
References Murl::ObjectArray< DataType >::Bottom().
◆ Front() [2/2]
|
inline |
Retrieve the first item from the array.
Synonymous to Bottom().
- Returns
- A const reference to the first item.
References Murl::ObjectArray< DataType >::Bottom().
◆ Back() [1/2]
|
inline |
Retrieve the last item from the array.
Synonymous to Top().
- Returns
- A reference to the last item.
References Murl::ObjectArray< DataType >::Top().
◆ Back() [2/2]
|
inline |
Retrieve the last item from the array.
Synonymous to Top().
- Returns
- A const reference to the last item.
References Murl::ObjectArray< DataType >::Top().
◆ Bottom() [1/2]
|
inline |
Retrieve the first item from the array.
- Returns
- A reference to the first item.
Referenced by Murl::ObjectArray< DataType >::Front().
◆ Bottom() [2/2]
|
inline |
Retrieve the first item from the array.
- Returns
- A const reference to the first item.
◆ Top() [1/2]
|
inline |
Retrieve the last item from the array.
- Returns
- A reference to the last item.
References Murl::ObjectArray< DataType >::GetCount().
Referenced by Murl::ObjectArray< DataType >::Back().
◆ Top() [2/2]
|
inline |
Retrieve the last item from the array.
- Returns
- A const reference to the last item.
References Murl::ObjectArray< DataType >::GetCount().
◆ At() [1/2]
|
inline |
Retrieve the item at a given position from the array.
If the given index is greater than the actual array size, the array is enlarged as needed, using the value type's default constructor for initializing.
- Parameters
-
index The zero-based index of the item to retrieve.
- Returns
- A reference to the specified item.
References Murl::ObjectArray< DataType >::GetCount(), and Murl::ObjectArray< DataType >::SetCountAndReserve().
◆ At() [2/2]
|
inline |
Retrieve the item at a given position from the array.
If the given index is greater than the actual array size, the array is enlarged as needed, using the given reference item's copy constructor for initializing.
- Parameters
-
index The zero-based index of the item to retrieve. item The reference item used for initialization.
- Returns
- A reference to the specified item.
References Murl::ObjectArray< DataType >::GetCount(), and Murl::ObjectArray< DataType >::SetCountAndReserve().
◆ GetCount()
|
inline |
Get the number of items in the array.
- Returns
- The number of items.
References Murl::Array< DataType >::GetCount().
Referenced by Murl::ObjectArray< DataType >::Add(), Murl::ObjectArray< DataType >::At(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::DeInit(), Murl::ObjectArray< DataType >::Drop(), Murl::ObjectArray< DataType >::Fill(), Murl::ObjectArray< DataType >::Find(), Murl::ObjectArray< DataType >::FindLast(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::GetInstance(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::GetNumberOfInstances(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::GetNumberOfRemaining(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::GetObtainedInstance(), Murl::ObjectArray< DataType >::Insert(), Murl::ObjectArray< DataType >::IsEqual(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::IsObtained(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::Obtain(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::ObtainAll(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::Release(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::ReleaseAll(), Murl::Logic::GraphInstanceObjects< InstanceObjectType >::SetObtained(), Murl::ObjectArray< DataType >::Top(), and Murl::Logic::GraphInstanceObjects< InstanceObjectType >::~GraphInstanceObjects().
◆ GetCountUInt32()
|
inline |
Get the number of items in the array.
- Returns
- The number of items.
References Murl::Array< DataType >::GetCountUInt32().
◆ IsEmpty()
|
inline |
Check if the array is empty.
- Returns
- true if the array is empty, false otherwise.
References Murl::Array< DataType >::IsEmpty().
Referenced by Murl::ObjectArray< DataType >::Insert().
◆ GetAlloc()
|
inline |
Get the number of actually allocated items.
- Returns
- The number of allocated items.
References Murl::Array< DataType >::GetAlloc().
◆ IsEqual()
|
inline |
Compare the array to another one.
- Parameters
-
other The array to check against.
- Returns
- True if both arrays have identical contents.
References Murl::ObjectArray< DataType >::GetCount().
◆ IsIndexValid()
|
inline |
Check if a given index is a valid index.
- Parameters
-
index The index to check.
- Returns
- true if index >= 0 and index < GetCount().
References Murl::Array< DataType >::IsIndexValid().
◆ operator[]() [1/2]
|
inline |
Retrieve the item at a given position from the array.
- Parameters
-
index The zero-based index of the item to retrieve.
- Returns
- A reference to the specified item.
◆ operator[]() [2/2]
|
inline |
Retrieve the item at a given position from the array.
- Parameters
-
index The zero-based index of the item to retrieve.
- Returns
- A const reference to the specified item.
◆ Get() [1/2]
|
inline |
Get the item at a given position from the array.
- Parameters
-
index The zero-based index of the item to retrieve.
- Returns
- A reference to the specified item.
◆ Get() [2/2]
|
inline |
Get the item at a given position from the array.
- Parameters
-
index The zero-based index of the item to retrieve.
- Returns
- A const reference to the specified item.
◆ Detach()
|
inline |
Removes the item at a given position and giving up ownership.
(!) The client is responsible for deletion of the returned item.
- Parameters
-
index The zero-based index of the item to remove.
- Returns
- The pointer to the heap allocated item.
References Murl::Array< DataType >::Remove().
◆ PopDetach()
|
inline |
Removes the item at the top position and giving up ownership.
(!) The client is responsible for deletion of the returned item.
- Returns
- The pointer to the heap allocated item.
References Murl::Array< DataType >::Pop().
◆ Swap() [2/3]
|
inline |
Swap the item at a given position with a new allocated item.
The array takes the ownership of the item. (!) The client is responsible for deletion of the returned item.
- Parameters
-
index The zero-based index of the item to swap. newItem The new allocated item to swap into.
- Returns
- The pointer to the swapped-out heap allocated item.
◆ Swap() [3/3]
|
inline |
Exchange the content of the array with a given second one.
- Parameters
-
other The second array.
References Murl::Array< DataType >::Swap().
◆ Begin() [1/2]
|
inline |
Get the const iterator to the first item.
- Returns
- The const iterator to the first item.
References Murl::Array< DataType >::Begin().
◆ End() [1/2]
|
inline |
Get the const iterator next to the last item.
- Returns
- The const iterator next to the last item.
References Murl::Array< DataType >::End().
◆ GetIter() [1/2]
|
inline |
Get the const iterator of a specified index.
- Parameters
-
index The index for the iterator.
- Returns
- The const iterator or null if the index is out of range.
References Murl::Array< DataType >::GetIter().
◆ GetIterIndex()
|
inline |
Get the item index by iterator.
(!) Adding or removing items will invalidate iterators.
- Parameters
-
iterator The iterator of the item.
- Returns
- The index of the item, or -1 if the iterator is invalid.
References Murl::Array< DataType >::GetIterIndex().
◆ Begin() [2/2]
|
inline |
Get the iterator to the first item.
- Returns
- The iterator to the first item.
References Murl::Array< DataType >::Begin().
◆ End() [2/2]
|
inline |
Get the iterator next to the last item.
- Returns
- The iterator next to the last item.
References Murl::Array< DataType >::End().
◆ GetIter() [2/2]
|
inline |
Get the iterator of a specified index.
- Parameters
-
index The index for the iterator.
- Returns
- The iterator or null if the index is out of range.
References Murl::Array< DataType >::GetIter().
The documentation for this class was generated from the following file:
- murl_object_array.h