Namespace: Rx – Class: CRxArrayShort – Header: Rx.Core/RxArrayTypes.h

CRxArrayShort Class

C++
#include "Rx.Core/RxArrayTypes.h"
class CRxArrayShort : public CRxArray<short>

A short array.

Constructors

CRxArray()

Default constructor. Creates an empty array.

CRxArray(nElementCount)

Constructor. Creates a new array with the given number of default-constructed elements.

CRxArray(nElementCount, tInitValue)

Constructor. Constructs a new array with nElementCount copies of elements with value tInitValue.

CRxArray(xArray)

Copy constructor. Creates a copy of the given array.

CRxArray(xArray)

Move constructor.

CRxArray(pvInternal, bMove)

Creates a new array by moving or copying the internal data into this array.

Methods

Assign(nElementCount, tInitValue)

Replaces the contents with nElementCount copies of value tInitValue.

(Inherited from CRxArray)
At(nIndex)

Returns a reference to the element at the specified index, with bounds checking. If nIndex is not within the range of the array, an exception is thrown.

(Inherited from CRxArray)
At(nIndex)

Returns a reference to the element at the specified index, with bounds checking. If nIndex is not within the range of the array, an exception is thrown.

(Inherited from CRxArray)
Front()

Returns a reference to the first element in the array. Calling Front on an empty array is undefined.

(Inherited from CRxArray)
Front()

Returns a reference to the first element in the array. Calling Front on an empty array is undefined.

(Inherited from CRxArray)
Back()

Returns a reference to the last element in the array. Calling Back on an empty array is undefined.

(Inherited from CRxArray)
Back()

Returns a reference to the last element in the array. Calling Back on an empty array is undefined.

(Inherited from CRxArray)
IsEmpty()

Checks if the array has no elements.

(Inherited from CRxArray)
Size()

Returns the number of elements in the array.

(Inherited from CRxArray)
Reserve(nNewElementCount)

Increase the capacity of the array to a value that's greater or equal to nNewElementCount. If nNewElementCount is greater than the current capacity, new storage is allocated, otherwise the method does nothing.

(Inherited from CRxArray)
Capacity()

Returns the number of elements that the array has currently allocated space for.

(Inherited from CRxArray)
ShrinkToFit()

Requests the removal of unused capacity.

(Inherited from CRxArray)
Clear()

Removes all elements from the array.

(Inherited from CRxArray)
Insert(nPosition, tValue)

Inserts elements at the specified location in the array.

(Inherited from CRxArray)
Insert(nPosition, tValue)

Inserts elements at the specified location in the array.

(Inherited from CRxArray)
Insert(nPosition, nCount, tValue)

Inserts nCount copies of tValue at the specified location in the array.

(Inherited from CRxArray)
Erase(nPosition)

Removes the element at the given position from the array.

(Inherited from CRxArray)
Erase(nPosition, nCount)

Removes specified elements from the array.

(Inherited from CRxArray)
PushBack(tValue)

Appends the given element value to the end of the array. The new element is initialized as a copy of tValue.

(Inherited from CRxArray)
PushBack(tValue)

Appends the given element value to the end of the array. The value is moved into the new element.

(Inherited from CRxArray)
PopBack()

Removes the last element of the array. Calling PopBack on an empty array is undefined.

(Inherited from CRxArray)
Resize(nNewElementCount, tValue)

Resizes the array to contain count elements.

(Inherited from CRxArray)
Resize(nNewElementCount)

Resizes the array to contain count elements.

(Inherited from CRxArray)
Swap(xArray)

Exchanges the contents of the array with those of xArray. Does not invoke any move, copy, or swap operations on individual elements.

(Inherited from CRxArray)
CopyIntoInternal(pvInternal)

Copies this array into the internal data.

(Inherited from CRxArray)
CopyFromInternal(pvInternal)

Creates a new array by copying the internal data into this array.

(Inherited from CRxArray)
MoveIntoInternal(pvInternal)

moves this array into the internal data. This array is empty afterwards.

(Inherited from CRxArray)
MoveFromInternal(pvInternal)

Creates a new array by moving the internal data into this array.

(Inherited from CRxArray)
begin()

Returns an iterator (pointer) to the first element of the array.

(Inherited from CRxArray)
begin()

Returns an iterator (pointer) to the first element of the array.

(Inherited from CRxArray)
end()

Returns an iterator (pointer) to the element following the last element of the array. This element acts as a placeholder; attempting to access it results in undefined behavior.

(Inherited from CRxArray)
end()

Returns an iterator (pointer) to the element following the last element of the array. This element acts as a placeholder; attempting to access it results in undefined behavior.

(Inherited from CRxArray)
Data()

Gets the pointer to the internal data.

(Inherited from CRxArray)
Data()

Gets the pointer to the internal data.

(Inherited from CRxArray)
New(nNewElementCount)

Resizes the array to contain count elements.

(Inherited from CRxArray)
Delete()

Removes all elements from the array.

(Inherited from CRxArray)
Reset()

Sets the internal memory to zeros.

(Inherited from CRxArray)
CopyFrom(pxSrcMemory)

Copies the content of the given source memory into this array. Sets the size of this array to the size of the memory.

(Inherited from CRxArray)
GetPointer()

Gets the pointer to the internal data.

(Inherited from CRxArray)
GetPointer()

Gets the pointer to the internal data.

(Inherited from CRxArray)
GetElementSize()

Gets the size of a single value in this array.

(Inherited from CRxArray)
Length()

Gets the number of elements in this array.

(Inherited from CRxArray)
IsValid()

Query if this object is valid. Returns always true.

(Inherited from CRxArray)

Operators

operator[](nIndex)

Returns a reference to the element at the specified index. No bounds checking is performed.

(Inherited from CRxArray)
operator[](nIndex)

Returns a reference to the element at the specified index. No bounds checking is performed.

(Inherited from CRxArray)