Murl::SharedArray< DataType > Class Template Reference

A proxy class contaning a shared pointer to an array. More...

#include "murl_shared_array.h"

Public Types

using ValueType = DataType
 The template parameter value type.
 
using ArrayType = Array< DataType >
 The array type definition.
 

Public Member Functions

 SharedArray ()
 Forward to Array::Array() constructor.
 
 SharedArray (const DataType &item)
 Forward to Array::Array(const DataType& item) constructor. More...
 
 SharedArray (const DataType &item1, const DataType &item2)
 Forward to Array::Array(const DataType& item1, const DataType& item2) constructor. More...
 
 SharedArray (const DataType &item1, const DataType &item2, const DataType &item3)
 Forward to Array::Array(const DataType& item1, const DataType& item2, const DataType& item3) constructor. More...
 
void Clear ()
 Forward to Array::Clear() method.
 
void Empty ()
 Forward to Array::Empty() method.
 
void Shrink ()
 Forward to Array::Shrink() method.
 
Bool Trim (SInt32 n)
 Forward to Array::Trim() method. More...
 
Bool Drop (SInt32 n=1)
 Forward to Array::Drop() method. More...
 
void Reserve (SInt32 n)
 Forward to Array::Reserve() method. More...
 
Bool SetCount (SInt32 n)
 Forward to Array::SetCount(SInt32 n) method. More...
 
Bool SetCount (SInt32 n, const DataType &item)
 Forward to Array::SetCount(SInt32 n, const DataType& item) method. More...
 
Bool SetCountAndReserve (SInt32 n)
 Forward to Array::SetCountAndReserve(SInt32 n) method. More...
 
Bool SetCountAndReserve (SInt32 n, const DataType &item)
 Forward to Array::SetCountAndReserve(SInt32 n, const DataType& item) method. More...
 
DataType & Set (SInt32 index, const DataType &item)
 Forward to Array::Set(SInt32 index, const DataType& item) method. More...
 
Bool Set (SInt32 index, const DataType &item, SInt32 count)
 Forward to Array::Set(SInt32 index, const DataType& item, SInt32 count) method. More...
 
void Fill (const DataType &item)
 Forward to Array::Fill() method. More...
 
void Swap (SInt32 index1, SInt32 index2)
 Forward to Array::Swap() method. More...
 
DataType & Add ()
 Forward to Array::Add() method. More...
 
DataType & Add (const DataType &item)
 Forward to Array::Add(const DataType& item) method. More...
 
void AddN (SInt32 count)
 Forward to Array::AddN() method. More...
 
Bool Add (const SharedArray &other)
 Forward to Array::Add(const Array& other) method. More...
 
Bool Add (const SharedArray &other, int offset, int count)
 Forward to Array::Add(const Array& other, int offset, int count) method. More...
 
DataType & Insert (SInt32 index)
 Forward to Array::Insert(SInt32 index) method. More...
 
DataType & Insert (SInt32 index, const DataType &item)
 Forward to Array::Insert(SInt32 index, const DataType& item) method. More...
 
Bool Insert (SInt32 index, const DataType &item, SInt32 count)
 Forward to Array::Insert(SInt32 index, const DataType& item, SInt32 count) method. More...
 
Bool InsertN (SInt32 index, SInt32 count=1)
 Forward to Array::InsertN(SInt32 index, SInt32 count = 1) method. More...
 
Bool Insert (SInt32 index, const SharedArray &other)
 Forward to Array::Insert(SInt32 index, const Array& other) method. More...
 
Bool Insert (SInt32 index, const SharedArray &other, SInt32 offset, SInt32 count)
 Forward to Array::Insert(SInt32 index, const Array& other, SInt32 offset, SInt32 count) method. More...
 
Bool Remove (SInt32 index, SInt32 count=1)
 Forward to Array::Remove(SInt32 index, SInt32 count = 1) method. More...
 
void Remove (const SInt32 *sortedIndices, SInt32 count)
 Forward to Array::Remove(const SInt32* sortedIndices, SInt32 count) method. More...
 
void Remove (const SInt32Array &sortedIndices)
 Forward to Array::Remove(const SInt32Array& sortedIndices) method. More...
 
SInt32 Find (const DataType &item) const
 Forward to Array::Find(const DataType& item) const method. More...
 
SInt32 Find (const DataType &item, SInt32 firstIndex) const
 Forward to Array::Find(const DataType& item, SInt32 firstIndex) const method. More...
 
SInt32 FindLast (const DataType &item) const
 Forward to Array::FindLast(const DataType& item) const method. More...
 
SInt32 FindLast (const DataType &item, SInt32 lastIndex) const
 Forward to Array::FindLast(const DataType& item, SInt32 lastIndex) const method. More...
 
DataType & Front ()
 Forward to Array::Front() method. More...
 
const DataType & Front () const
 Forward to Array::Front() const method. More...
 
DataType & Back ()
 Forward to Array::Back() method. More...
 
const DataType & Back () const
 Forward to Array::Back() const method. More...
 
DataType & Bottom ()
 Forward to Array::Bottom() method. More...
 
const DataType & Bottom () const
 Forward to Array::Bottom() const method. More...
 
DataType & Top ()
 Forward to Array::Top() method. More...
 
const DataType & Top () const
 Forward to Array::Top() const method. More...
 
DataType Pop ()
 Forward to Array::Pop() method. More...
 
DataType & At (SInt32 index)
 Forward to Array::At(SInt32 index) method. More...
 
DataType & At (SInt32 index, const DataType &item)
 Forward to Array::At(SInt32 index, const DataType& item) method. More...
 
SInt32 GetCount () const
 Forward to Array::GetCount() method. More...
 
Bool IsEmpty () const
 Forward to Array::IsEmpty() method. More...
 
SInt32 GetAlloc () const
 Forward to Array::GetAlloc() method. More...
 
Bool IsEqual (const SharedArray &other) const
 Forward to Array::IsEqual() method. More...
 
bool operator== (const SharedArray &rhs) const
 Forward to Array::operator==() method. More...
 
bool operator!= (const SharedArray &rhs) const
 Forward to Array::operator!=() method. More...
 
DataType & operator[] (SInt32 index)
 Forward to Array::operator[](SInt32 index) method. More...
 
const DataType & operator[] (SInt32 index) const
 Forward to Array::operator[](SInt32 index) const method. More...
 
DataType & Get (SInt32 index)
 Forward to Array::Get(SInt32 index) method. More...
 
const DataType & Get (SInt32 index) const
 Forward to Array::Get(SInt32 index) const method. More...
 
 operator DataType * ()
 Forward to Array::operator DataType*() method. More...
 
 operator const DataType * () const
 Forward to Array::operator const DataType*() method. More...
 
UInt32 GetByteSize () const
 Forward to Array::GetByteSize() method. More...
 
ArrayType::ConstIterator Begin () const
 Forward to Array::Begin() const method. More...
 
ArrayType::ConstIterator End () const
 Forward to Array::End() const method. More...
 
ArrayType::ConstIterator GetIter (SInt32 index) const
 Forward to Array::GetIter(SInt32 index) const method. More...
 
SInt32 GetIterIndex (typename ArrayType::ConstIterator iterator) const
 Forward to Array::GetIterIndex() method. More...
 
ArrayType::Iterator Begin ()
 Forward to Array::Begin() method. More...
 
ArrayType::Iterator End ()
 Forward to Array::End() method. More...
 
ArrayType::Iterator GetIter (SInt32 index)
 Forward to Array::GetIter(SInt32 index) method. More...
 
ArrayType GetArray () const
 Get a copy of the internal Array object. More...
 
 operator ArrayType & () const
 Conversion operator to the internal Array object. More...
 
ArrayTypeoperator-> () const
 Dereference operator to the internal Array object. More...
 
 SharedArray (const ArrayType &array)
 Copy constructor taking an Array object. More...
 
 SharedArray (const SharedArray &array)
 Copy constructor taking a shared array object. More...
 
void operator= (const SharedArray &array)
 The assignment operator copying the internal Array. More...
 

Detailed Description

template<class DataType>
class Murl::SharedArray< DataType >

A proxy class contaning a shared pointer to an array.

The copy constructor copies the object itself (the shared pointer). The assignment operator copies the content of the object.

See Murl::Array for method documentation.

Template Parameters
DataTypeThe value's data type of the array.

Constructor & Destructor Documentation

◆ SharedArray() [1/5]

template<class DataType >
Murl::SharedArray< DataType >::SharedArray ( const DataType &  item)
inline

Forward to Array::Array(const DataType& item) constructor.

Parameters
itemThe item.

◆ SharedArray() [2/5]

template<class DataType >
Murl::SharedArray< DataType >::SharedArray ( const DataType &  item1,
const DataType &  item2 
)
inline

Forward to Array::Array(const DataType& item1, const DataType& item2) constructor.

Parameters
item1The first item.
item2The second item.

◆ SharedArray() [3/5]

template<class DataType >
Murl::SharedArray< DataType >::SharedArray ( const DataType &  item1,
const DataType &  item2,
const DataType &  item3 
)
inline

Forward to Array::Array(const DataType& item1, const DataType& item2, const DataType& item3) constructor.

Parameters
item1The first item.
item2The second item.
item3The third item.

◆ SharedArray() [4/5]

template<class DataType >
Murl::SharedArray< DataType >::SharedArray ( const ArrayType array)
inline

Copy constructor taking an Array object.

Parameters
arrayThe array to copy.

◆ SharedArray() [5/5]

template<class DataType >
Murl::SharedArray< DataType >::SharedArray ( const SharedArray< DataType > &  array)
inlineexplicit

Copy constructor taking a shared array object.

Parameters
arrayThe shared array to share.

Member Function Documentation

◆ Trim()

template<class DataType >
Bool Murl::SharedArray< DataType >::Trim ( SInt32  n)
inline

Forward to Array::Trim() method.

Parameters
nThe new number of items in the array.
Returns
true if successful.

◆ Drop()

template<class DataType >
Bool Murl::SharedArray< DataType >::Drop ( SInt32  n = 1)
inline

Forward to Array::Drop() method.

Parameters
nThe number of items to remove from the end.
Returns
true if successful.

◆ Reserve()

template<class DataType >
void Murl::SharedArray< DataType >::Reserve ( SInt32  n)
inline

Forward to Array::Reserve() method.

Parameters
nThe number of items the underlying storage should hold.

◆ SetCount() [1/2]

template<class DataType >
Bool Murl::SharedArray< DataType >::SetCount ( SInt32  n)
inline

Forward to Array::SetCount(SInt32 n) method.

Parameters
nThe new number of items in the array.
Returns
true if successful.

◆ SetCount() [2/2]

template<class DataType >
Bool Murl::SharedArray< DataType >::SetCount ( SInt32  n,
const DataType &  item 
)
inline

Forward to Array::SetCount(SInt32 n, const DataType& item) method.

Parameters
nThe new number of items in the array.
itemThe value to initialize any newly added items with.
Returns
true if successful.

◆ SetCountAndReserve() [1/2]

template<class DataType >
Bool Murl::SharedArray< DataType >::SetCountAndReserve ( SInt32  n)
inline

Forward to Array::SetCountAndReserve(SInt32 n) method.

Parameters
nThe new number of items in the array.
Returns
true if successful.

◆ SetCountAndReserve() [2/2]

template<class DataType >
Bool Murl::SharedArray< DataType >::SetCountAndReserve ( SInt32  n,
const DataType &  item 
)
inline

Forward to Array::SetCountAndReserve(SInt32 n, const DataType& item) method.

Parameters
nThe new number of items in the array.
itemThe value to initialize any newly added items with.
Returns
true if successful.

◆ Set() [1/2]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Set ( SInt32  index,
const DataType &  item 
)
inline

Forward to Array::Set(SInt32 index, const DataType& item) method.

Parameters
indexThe index of the item to set.
itemThe source item to copy.
Returns
A reference to the set item.

◆ Set() [2/2]

template<class DataType >
Bool Murl::SharedArray< DataType >::Set ( SInt32  index,
const DataType &  item,
SInt32  count 
)
inline

Forward to Array::Set(SInt32 index, const DataType& item, SInt32 count) method.

Parameters
indexThe index of the first item to set.
itemThe source item to copy.
countThe number of items to set.
Returns
true if successful.

◆ Fill()

template<class DataType >
void Murl::SharedArray< DataType >::Fill ( const DataType &  item)
inline

Forward to Array::Fill() method.

Parameters
itemThe source item to copy.

◆ Swap()

template<class DataType >
void Murl::SharedArray< DataType >::Swap ( SInt32  index1,
SInt32  index2 
)
inline

Forward to Array::Swap() method.

Parameters
index1The index of the first item.
index2The index of the second item.

◆ Add() [1/4]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Add ( )
inline

Forward to Array::Add() method.

Returns
A reference to the newly created item.

◆ Add() [2/4]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Add ( const DataType &  item)
inline

Forward to Array::Add(const DataType& item) method.

Parameters
itemThe given item to be inserted at the end of the array.
Returns
A reference to the newly created item.

◆ AddN()

template<class DataType >
void Murl::SharedArray< DataType >::AddN ( SInt32  count)
inline

Forward to Array::AddN() method.

Parameters
countThe number of new items to be inserted at the end of the array.

◆ Add() [3/4]

template<class DataType >
Bool Murl::SharedArray< DataType >::Add ( const SharedArray< DataType > &  other)
inline

Forward to Array::Add(const Array& other) method.

Parameters
otherThe given item array to be inserted.
Returns
true if successful.

◆ Add() [4/4]

template<class DataType >
Bool Murl::SharedArray< DataType >::Add ( const SharedArray< DataType > &  other,
int  offset,
int  count 
)
inline

Forward to Array::Add(const Array& other, int offset, int count) method.

Parameters
otherThe given source item array.
offsetThe index into the source array specifying the first item to copy.
countThe number of source array items to copy.
Returns
true if successful.

◆ Insert() [1/5]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Insert ( SInt32  index)
inline

Forward to Array::Insert(SInt32 index) method.

Parameters
indexthe zero-based index where the new item should be inserted.
Returns
A reference to the newly created item.

◆ Insert() [2/5]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Insert ( SInt32  index,
const DataType &  item 
)
inline

Forward to Array::Insert(SInt32 index, const DataType& item) method.

Parameters
indexthe zero-based index where the new item should be inserted.
itemThe given item to be inserted.
Returns
A reference to the newly created item.

◆ Insert() [3/5]

template<class DataType >
Bool Murl::SharedArray< DataType >::Insert ( SInt32  index,
const DataType &  item,
SInt32  count 
)
inline

Forward to Array::Insert(SInt32 index, const DataType& item, SInt32 count) method.

Parameters
indexthe zero-based index where the new items should be inserted.
itemThe given item to be inserted.
countThe number of copies of the given item to insert.
Returns
true if successful.

◆ InsertN()

template<class DataType >
Bool Murl::SharedArray< DataType >::InsertN ( SInt32  index,
SInt32  count = 1 
)
inline

Forward to Array::InsertN(SInt32 index, SInt32 count = 1) method.

Parameters
indexthe zero-based index where the new items should be inserted.
countThe number of new items to be inserted.
Returns
true if successful.

◆ Insert() [4/5]

template<class DataType >
Bool Murl::SharedArray< DataType >::Insert ( SInt32  index,
const SharedArray< DataType > &  other 
)
inline

Forward to Array::Insert(SInt32 index, const Array& other) method.

Parameters
indexthe zero-based index where the new items should be inserted.
otherThe given item array to be inserted.
Returns
true if successful.

◆ Insert() [5/5]

template<class DataType >
Bool Murl::SharedArray< DataType >::Insert ( SInt32  index,
const SharedArray< DataType > &  other,
SInt32  offset,
SInt32  count 
)
inline

Forward to Array::Insert(SInt32 index, const Array& other, SInt32 offset, SInt32 count) method.

Parameters
indexthe zero-based index where the new items should be inserted.
otherThe given source item array.
offsetThe index into the source array specifying the first item to copy.
countThe number of source array items to copy.
Returns
true if successful.

◆ Remove() [1/3]

template<class DataType >
Bool Murl::SharedArray< DataType >::Remove ( SInt32  index,
SInt32  count = 1 
)
inline

Forward to Array::Remove(SInt32 index, SInt32 count = 1) method.

Parameters
indexThe zero-based index from where to remove the items.
countThe number of items to remove.
Returns
true if successful.

◆ Remove() [2/3]

template<class DataType >
void Murl::SharedArray< DataType >::Remove ( const SInt32 sortedIndices,
SInt32  count 
)
inline

Forward to Array::Remove(const SInt32* sortedIndices, SInt32 count) method.

Parameters
sortedIndicesA pointer to sorted indices where to remove the items.
countThe number of items to remove, i.e. the number of indices.

◆ Remove() [3/3]

template<class DataType >
void Murl::SharedArray< DataType >::Remove ( const SInt32Array sortedIndices)
inline

Forward to Array::Remove(const SInt32Array& sortedIndices) method.

Parameters
sortedIndicesA sorted array of indices where to remove the items.

◆ Find() [1/2]

template<class DataType >
SInt32 Murl::SharedArray< DataType >::Find ( const DataType &  item) const
inline

Forward to Array::Find(const DataType& item) const method.

Parameters
itemThe item to find.
Returns
The index of the item, or -1 if the item was not found.

◆ Find() [2/2]

template<class DataType >
SInt32 Murl::SharedArray< DataType >::Find ( const DataType &  item,
SInt32  firstIndex 
) const
inline

Forward to Array::Find(const DataType& item, SInt32 firstIndex) const method.

Parameters
itemThe item to find.
firstIndexThe index where to start searching.
Returns
The index of the item, or -1 if the item was not found.

◆ FindLast() [1/2]

template<class DataType >
SInt32 Murl::SharedArray< DataType >::FindLast ( const DataType &  item) const
inline

Forward to Array::FindLast(const DataType& item) const method.

Parameters
itemThe item to find.
Returns
The index of the item, or -1 if the item was not found.

◆ FindLast() [2/2]

template<class DataType >
SInt32 Murl::SharedArray< DataType >::FindLast ( const DataType &  item,
SInt32  lastIndex 
) const
inline

Forward to Array::FindLast(const DataType& item, SInt32 lastIndex) const method.

Parameters
itemThe item to find.
lastIndexThe index where to start searching.
Returns
The index of the item, or -1 if the item was not found.

◆ Front() [1/2]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Front ( )
inline

Forward to Array::Front() method.

Returns
A reference to the first item.

◆ Front() [2/2]

template<class DataType >
const DataType& Murl::SharedArray< DataType >::Front ( ) const
inline

Forward to Array::Front() const method.

Returns
A const reference to the first item.

◆ Back() [1/2]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Back ( )
inline

Forward to Array::Back() method.

Returns
A reference to the last item.

◆ Back() [2/2]

template<class DataType >
const DataType& Murl::SharedArray< DataType >::Back ( ) const
inline

Forward to Array::Back() const method.

Returns
A const reference to the last item.

◆ Bottom() [1/2]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Bottom ( )
inline

Forward to Array::Bottom() method.

Returns
A reference to the first item.

◆ Bottom() [2/2]

template<class DataType >
const DataType& Murl::SharedArray< DataType >::Bottom ( ) const
inline

Forward to Array::Bottom() const method.

Returns
A const reference to the first item.

◆ Top() [1/2]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Top ( )
inline

Forward to Array::Top() method.

Returns
A reference to the last item.

◆ Top() [2/2]

template<class DataType >
const DataType& Murl::SharedArray< DataType >::Top ( ) const
inline

Forward to Array::Top() const method.

Returns
A const reference to the last item.

◆ Pop()

template<class DataType >
DataType Murl::SharedArray< DataType >::Pop ( )
inline

Forward to Array::Pop() method.

Returns
A copy of the removed item.

◆ At() [1/2]

template<class DataType >
DataType& Murl::SharedArray< DataType >::At ( SInt32  index)
inline

Forward to Array::At(SInt32 index) method.

Parameters
indexThe zero-based index of the item to retrieve.
Returns
A reference to the specified item.

◆ At() [2/2]

template<class DataType >
DataType& Murl::SharedArray< DataType >::At ( SInt32  index,
const DataType &  item 
)
inline

Forward to Array::At(SInt32 index, const DataType& item) method.

Parameters
indexThe zero-based index of the item to retrieve.
itemThe reference item used for initialization.
Returns
A reference to the specified item.

◆ GetCount()

template<class DataType >
SInt32 Murl::SharedArray< DataType >::GetCount ( ) const
inline

Forward to Array::GetCount() method.

Returns
The number of items.

◆ IsEmpty()

template<class DataType >
Bool Murl::SharedArray< DataType >::IsEmpty ( ) const
inline

Forward to Array::IsEmpty() method.

Returns
true if the array is empty, false otherwise.

◆ GetAlloc()

template<class DataType >
SInt32 Murl::SharedArray< DataType >::GetAlloc ( ) const
inline

Forward to Array::GetAlloc() method.

Returns
The number of allocated items.

◆ IsEqual()

template<class DataType >
Bool Murl::SharedArray< DataType >::IsEqual ( const SharedArray< DataType > &  other) const
inline

Forward to Array::IsEqual() method.

Parameters
otherThe array to compare.
Returns
true if both arrays have identical contents.

◆ operator==()

template<class DataType >
bool Murl::SharedArray< DataType >::operator== ( const SharedArray< DataType > &  rhs) const
inline

Forward to Array::operator==() method.

Parameters
rhsThe right hand side array to compare.
Returns
true if both arrays have identical contents.

◆ operator!=()

template<class DataType >
bool Murl::SharedArray< DataType >::operator!= ( const SharedArray< DataType > &  rhs) const
inline

Forward to Array::operator!=() method.

Parameters
rhsThe right hand side array to compare.
Returns
true if both arrays do not have identical contents.

◆ operator[]() [1/2]

template<class DataType >
DataType& Murl::SharedArray< DataType >::operator[] ( SInt32  index)
inline

Forward to Array::operator[](SInt32 index) method.

Parameters
indexThe zero-based index of the item to retrieve.
Returns
A reference to the specified item.

◆ operator[]() [2/2]

template<class DataType >
const DataType& Murl::SharedArray< DataType >::operator[] ( SInt32  index) const
inline

Forward to Array::operator[](SInt32 index) const method.

Parameters
indexThe zero-based index of the item to retrieve.
Returns
A const reference to the specified item.

◆ Get() [1/2]

template<class DataType >
DataType& Murl::SharedArray< DataType >::Get ( SInt32  index)
inline

Forward to Array::Get(SInt32 index) method.

Parameters
indexThe zero-based index of the item to retrieve.
Returns
A reference to the specified item.

◆ Get() [2/2]

template<class DataType >
const DataType& Murl::SharedArray< DataType >::Get ( SInt32  index) const
inline

Forward to Array::Get(SInt32 index) const method.

Parameters
indexThe zero-based index of the item to retrieve.
Returns
A const reference to the specified item.

◆ operator DataType *()

template<class DataType >
Murl::SharedArray< DataType >::operator DataType * ( )
inline

Forward to Array::operator DataType*() method.

Returns
A pointer to the raw array.

◆ operator const DataType *()

template<class DataType >
Murl::SharedArray< DataType >::operator const DataType * ( ) const
inline

Forward to Array::operator const DataType*() method.

Returns
A pointer to the constant raw array.

◆ GetByteSize()

template<class DataType >
UInt32 Murl::SharedArray< DataType >::GetByteSize ( ) const
inline

Forward to Array::GetByteSize() method.

Returns
The number of bytes of the underlying raw array.

◆ Begin() [1/2]

template<class DataType >
ArrayType::ConstIterator Murl::SharedArray< DataType >::Begin ( ) const
inline

Forward to Array::Begin() const method.

Returns
The const iterator to the first item.

◆ End() [1/2]

template<class DataType >
ArrayType::ConstIterator Murl::SharedArray< DataType >::End ( ) const
inline

Forward to Array::End() const method.

Returns
The const iterator next to the last item.

◆ GetIter() [1/2]

template<class DataType >
ArrayType::ConstIterator Murl::SharedArray< DataType >::GetIter ( SInt32  index) const
inline

Forward to Array::GetIter(SInt32 index) const method.

Parameters
indexThe index for the iterator.
Returns
The const iterator or null if the index is out of range.

◆ GetIterIndex()

template<class DataType >
SInt32 Murl::SharedArray< DataType >::GetIterIndex ( typename ArrayType::ConstIterator  iterator) const
inline

Forward to Array::GetIterIndex() method.

Parameters
iteratorThe iterator of the item.
Returns
The index of the item, or -1 if the iterator is invalid.

◆ Begin() [2/2]

template<class DataType >
ArrayType::Iterator Murl::SharedArray< DataType >::Begin ( )
inline

Forward to Array::Begin() method.

Returns
The iterator to the first item.

◆ End() [2/2]

template<class DataType >
ArrayType::Iterator Murl::SharedArray< DataType >::End ( )
inline

Forward to Array::End() method.

Returns
The iterator next to the last item.

◆ GetIter() [2/2]

template<class DataType >
ArrayType::Iterator Murl::SharedArray< DataType >::GetIter ( SInt32  index)
inline

Forward to Array::GetIter(SInt32 index) method.

Parameters
indexThe index for the iterator.
Returns
The iterator or null if the index is out of range.

◆ GetArray()

template<class DataType >
ArrayType Murl::SharedArray< DataType >::GetArray ( ) const
inline

Get a copy of the internal Array object.

Returns
A copy of the array object.

◆ operator ArrayType &()

template<class DataType >
Murl::SharedArray< DataType >::operator ArrayType & ( ) const
inline

Conversion operator to the internal Array object.

Returns
A reference to the array object.

◆ operator->()

template<class DataType >
ArrayType* Murl::SharedArray< DataType >::operator-> ( ) const
inline

Dereference operator to the internal Array object.

Returns
A pointer to the array object.

◆ operator=()

template<class DataType >
void Murl::SharedArray< DataType >::operator= ( const SharedArray< DataType > &  array)
inline

The assignment operator copying the internal Array.

Parameters
arrayThe shared array object to assign.

The documentation for this class was generated from the following file:
  • murl_shared_array.h


Copyright © 2011-2024 Spraylight GmbH.