Namespace: Esri::GameEngine::Attributes
Class: Esri/GameEngine/Attributes/ArcGISStringCollection
Since: 2.4.0
Summary
A collection of Strings
Constructors
ArcGISStringCollection()
Creates a vector. This allocates memory that must be deleted.
Since 2.4.0
Properties
Size
size_t GetSize() const
The number of values in the vector.
If an error occurs, 0 will be returned.
Methods
| Signature | Return Type | Summary |
|---|---|---|
Add a value to the vector. | ||
Appends a vector to another vector. | ||
Get the value at the specified position. | ||
Determines if the vector contains the given value. | ||
Determines if two vectors are equal. | ||
First() | Get the first value in the vector. | |
Retrieves the position of the given value in the vector. | ||
Insert a value at the specified position in the vector. | ||
IsEmpty() | Determines if there are any values in the vector. | |
Last() | Get the last value in the vector. | |
Move a value from the current position to a new position in the string vector. | ||
Npos() | Returns a value indicating a bad position within the vector. | |
Remove a value at a specific position in the vector. | ||
Remove all values from the vector. |
Add
Add a value to the vector.
Since 2.4.0
Arguments
| Name | Type | Const | Summary |
|---|---|---|---|
value | FString | Yes | The value to add. |
Returns size_t
The position of the value. Max value of size_t if an error occurs.
AddArray
Appends a vector to another vector.
Since 2.4.0
Arguments
| Name | Type | Const | Summary |
|---|---|---|---|
vector2 | ArcGISCollection<FString> | Yes | The values to add. |
Returns size_t
The new size of vector_1. Max value of size_t if an error occurs.
At
Get the value at the specified position.
Since 2.4.0
Arguments
| Name | Type | Const | Summary |
|---|---|---|---|
position | size_t | No | The position at which to get the value. |
Returns FString
The string at the specified position.
Contains
Determines if the vector contains the given value.
Since 2.4.0
Arguments
| Name | Type | Const | Summary |
|---|---|---|---|
value | FString | Yes | The value to find. |
Returns bool
True if the value is in the vector, otherwise false.
Equals
Determines if two vectors are equal.
Since 2.4.0
Arguments
| Name | Type | Const | Summary |
|---|---|---|---|
vector2 | ArcGISCollection<FString> | Yes | The second vector. |
Returns bool
Returns true if the two vectors are equal, false otherwise.
First
FString First() const
Get the first value in the vector.
Since 2.4.0
Returns FString
The string at the specified position.
IndexOf
Retrieves the position of the given value in the vector.
Since 2.4.0
Arguments
| Name | Type | Const | Summary |
|---|---|---|---|
value | FString | Yes | The value to find. |
Returns size_t
The position of the value in the vector, Max value of size_t otherwise.
Insert
Insert a value at the specified position in the vector.
Since 2.4.0
Arguments
| Name | Type | Const | Summary |
|---|---|---|---|
position | size_t | No | The position at which to insert the value. |
value | FString | Yes | The value to add. |
Returns void
IsEmpty
bool IsEmpty() const
Determines if there are any values in the vector.
Since 2.4.0
Returns bool
True if the vector object contains no values, otherwise false. Returns true if an error occurs.
Last
FString Last() const
Get the last value in the vector.
Since 2.4.0
Returns FString
The String at the specified position.
Move
Move a value from the current position to a new position in the string vector.
Since 2.4.0
Arguments
| Name | Type | Const | Summary |
|---|---|---|---|
old | size_t | No | The current position of the value. |
new | size_t | No | The position to which to move the value. |
Returns void
Npos
static size_t Npos()
Returns a value indicating a bad position within the vector.
Since 2.4.0
Returns size_t
A size_t.
Remove
Remove a value at a specific position in the vector.
Since 2.4.0
Arguments
| Name | Type | Const | Summary |
|---|---|---|---|
position | size_t | No | The position where to remove the value. |