An array of strings.
Inherits Rx::Interop::Runtime30::IMemory.
Public Types | |
typedef CRxString | TValue |
Defines an alias representing the type of the elements in this array. More... | |
Public Member Functions | |
CRxArrayString () | |
Default constructor. Creates an empty array. More... | |
CRxArrayString (size_t nElementCount) | |
Constructor. Creates a new array with the given number of uninitialized elements. More... | |
CRxArrayString (size_t nElementCount, const TValue &tInitValue) | |
Constructor. Creates a new array with the given number of initialized elements. More... | |
CRxArrayString (const CRxString &sxString, char cSeparator) | |
Constructor. Creates a new array by splitting the given string at each occurrence of the given separator. More... | |
CRxArrayString (const CRxArrayString &xArray) | |
Copy constructor. Creates a copy of the given array. More... | |
virtual | ~CRxArrayString () |
Destructor. Removes all elements from this array. More... | |
virtual void | CopyFrom (const IMemoryAccess *pMemory)=0 |
Copies the memory block described by pMemory into this memory block. This memory block is automatically resized. The function throws an exception if the element sizes of the given memory block does not agree with the element size of this memory block. More... | |
virtual void | CopyFrom (const IMemoryAccess *pxSrcMemory) |
Copies the content of the given source memory into this array. Sets the size of this array to the size of the memory. More... | |
virtual void | Delete () |
Clears the array. More... | |
TValue * | GetDataPtr () |
Gets the pointer to the internal data. More... | |
const TValue * | GetDataPtr () const |
Gets the pointer to the internal data. More... | |
virtual size_t | GetElementSize () const |
Gets the size of a single value in this array. More... | |
virtual const void * | GetPointer () const |
Gets the pointer to the internal data. More... | |
virtual void * | GetPointer () |
Gets the pointer to the internal data. More... | |
virtual bool | IsValid () const |
Query if this object is valid. Returns always true. More... | |
virtual size_t | Length () const |
Gets the number of elements in this array. More... | |
virtual void | New (size_t nElementCount) |
Set the size of this array to the given number of elements. More... | |
CRxArrayString & | operator= (const CRxArrayString &xArray) |
Assignment operator. More... | |
TValue & | operator[] (size_t nIdx) |
Array indexer operator. More... | |
const TValue & | operator[] (size_t nIdx) const |
Array indexer operator. More... | |
virtual void | Reset () |
Sets the internal memory to zeros. More... | |
virtual void | Resize (size_t nElementCount) |
Set the size of this array to the given number of elements. More... | |
Protected Attributes | |
CRxArrayBase< TValue > * | m_pxData |
The internal data. More... | |
typedef CRxString Rx::CRxArrayString::TValue |
Defines an alias representing the type of the elements in this array.
Rx::CRxArrayString::CRxArrayString | ( | ) |
Default constructor. Creates an empty array.
Rx::CRxArrayString::CRxArrayString | ( | size_t | nElementCount | ) |
Constructor. Creates a new array with the given number of uninitialized elements.
nElementCount | The number of elements. |
Rx::CRxArrayString::CRxArrayString | ( | size_t | nElementCount, |
const TValue & | tInitValue | ||
) |
Constructor. Creates a new array with the given number of initialized elements.
nElementCount | The number of elements. |
tInitValue | The initial value of each element in this array. |
Rx::CRxArrayString::CRxArrayString | ( | const CRxString & | sxString, |
char | cSeparator | ||
) |
Constructor. Creates a new array by splitting the given string at each occurrence of the given separator.
sxString | The string to split. |
cSeparator | The split separator. |
Rx::CRxArrayString::CRxArrayString | ( | const CRxArrayString & | xArray | ) |
Copy constructor. Creates a copy of the given array.
xArray | The array to copy. |
|
virtual |
Destructor. Removes all elements from this array.
|
pure virtualinherited |
Copies the memory block described by pMemory into this memory block. This memory block is automatically resized. The function throws an exception if the element sizes of the given memory block does not agree with the element size of this memory block.
pMemory | [in] The memory to copy into this memory block. |
|
virtual |
Copies the content of the given source memory into this array. Sets the size of this array to the size of the memory.
pxSrcMemory | The source memory. |
|
virtual |
Clears the array.
Implements Rx::Interop::Runtime30::IMemory.
TValue* Rx::CRxArrayString::GetDataPtr | ( | ) |
Gets the pointer to the internal data.
const TValue* Rx::CRxArrayString::GetDataPtr | ( | ) | const |
Gets the pointer to the internal data.
|
virtual |
Gets the size of a single value in this array.
Implements Rx::Interop::Runtime30::IMemoryAccess.
|
inlinevirtual |
Gets the pointer to the internal data.
Implements Rx::Interop::Runtime30::IMemoryAccess.
|
inlinevirtual |
Gets the pointer to the internal data.
Implements Rx::Interop::Runtime30::IMemory.
|
virtual |
Query if this object is valid. Returns always true.
Implements Rx::Interop::Runtime30::IMemoryAccess.
|
virtual |
Gets the number of elements in this array.
Implements Rx::Interop::Runtime30::IMemoryAccess.
|
virtual |
Set the size of this array to the given number of elements.
nElementCount | Number of elements. |
Implements Rx::Interop::Runtime30::IMemory.
CRxArrayString& Rx::CRxArrayString::operator= | ( | const CRxArrayString & | xArray | ) |
Assignment operator.
xArray | The array to copy. |
TValue& Rx::CRxArrayString::operator[] | ( | size_t | nIdx | ) |
Array indexer operator.
nIdx | The index. |
const TValue& Rx::CRxArrayString::operator[] | ( | size_t | nIdx | ) | const |
Array indexer operator.
nIdx | The index. |
|
virtual |
Sets the internal memory to zeros.
Implements Rx::Interop::Runtime30::IMemory.
|
virtual |
Set the size of this array to the given number of elements.
nElementCount | Number of elements. |
Implements Rx::Interop::Runtime30::IMemory.
|
protected |
The internal data.