This page has been translated automatically.
编程
Fundamentals
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

Unigine::ArrayVector Class

Header:#include <UnigineInterpreter.h>

Allows using UnigineScript vectors.

ArrayVector Class

Members


ArrayVector(const ArrayVector & vector)

Copy constructor.

Arguments

  • const ArrayVector & vector - Vector.

void set(int index, const Variable & v) const

Set an item by index.

Arguments

  • int index - Item index.
  • const Variable & v - Item to set.

static ArrayVector get(void * interpreter, const Variable & id)

Return a vector from UnigineScript.

Arguments

  • void * interpreter - Interpreter pointer.
  • const Variable & id - Vector ID.

Return value

The vector.

const Variable & get(int index) const

Return an item by index.

Arguments

  • int index - Item index.

Return value

The item.

void append(const Variable & v) const

Append an item to the vector.

Arguments

  • const Variable & v - Item.

void append(int pos, const Variable & v) const

Append an item to the vector at a given position.

Arguments

  • int pos - Position index.
  • const Variable & v - Item.

void clear() const

Clear all items of the vector.

int find(const Variable & v) const

Return an index of a given item.

Arguments

  • const Variable & v - Item.

Return value

Index, if found; otherwise, -1.

ArrayVector & operator=(const ArrayVector & vector)

Assignment operator for the vector.

Arguments

  • const ArrayVector & vector - Vector to be assigned.

const Variable & operator[](int index) const

Vector access.

Arguments

  • int index - Item index.

Return value

The item.

void remove(int pos) const

Remove an item from a given position of the vector.

Arguments

  • int pos - Position index.

void resize(int size) const

Resize a vector.

Arguments

  • int size - New vector capacity.

int size() const

Return vector length.

Return value

Vector length.
Last update: 2017-07-03
Build: ()