Array of values or references.
More...
#include <angelcad.h>
|
| array (int &in) |
|
| array (int &in, uint length) |
|
| array (int &in, uint length, const T &in value) |
|
T & | opIndex (uint index) |
|
T &[] | opAssign (const T[]&in) |
|
bool | empty () const |
|
bool | isEmpty () const |
|
bool | opEquals (const T[]&in) const |
|
const T & | opIndex (uint index) const |
|
int | find (const T &in value) const |
|
int | find (uint startAt, const T &in value) const |
|
int | findByRef (const T &in value) const |
|
int | findByRef (uint startAt, const T &in value) const |
|
uint | length () const |
|
uint | size () const |
|
void | erase (uint) |
|
void | insert (uint index, const T &in value) |
|
void | insert (uint index, const T[]&inout arr) |
|
void | insertAt (uint index, const T &in value) |
|
void | insertAt (uint index, const T[]&inout arr) |
|
void | insertLast (const T &in value) |
|
void | pop_back () |
|
void | push_back (const T &in) |
|
void | removeAt (uint index) |
|
void | removeLast () |
|
void | removeRange (uint start, uint count) |
|
void | reserve (uint length) |
|
void | resize (uint length) |
|
void | reverse () |
|
void | sort (array::less &in, uint startAt=0, uint count=uint(- 1)) |
|
void | sortAsc () |
|
void | sortAsc (uint startAt, uint count) |
|
void | sortDesc () |
|
void | sortDesc (uint startAt, uint count) |
|
Array of values or references.
Arrays by examples
array of double values : array<double>
array of pos3d references : array<pos3d@ >, may also be written as pos3d@[]
reference to array of pos3d references : array<pos3d@ >@, may also be written as pos3d@[]@
◆ array() [1/3]
◆ array() [2/3]
array::array |
( |
int & |
in, |
|
|
uint |
length |
|
) |
| |
◆ array() [3/3]
array::array |
( |
int & |
in, |
|
|
uint |
length, |
|
|
const T &in |
value |
|
) |
| |
- Parameters
-
int |
|
length | uint
|
value | const T& |
◆ empty()
bool array::empty |
( |
| ) |
const |
◆ erase()
void array::erase |
( |
uint |
| ) |
|
◆ find() [1/2]
int array::find |
( |
const T &in |
value | ) |
const |
◆ find() [2/2]
int array::find |
( |
uint |
startAt, |
|
|
const T &in |
value |
|
) |
| const |
- Parameters
-
startAt | uint
|
value | const T&
|
- Returns
- int
◆ findByRef() [1/2]
int array::findByRef |
( |
const T &in |
value | ) |
const |
◆ findByRef() [2/2]
int array::findByRef |
( |
uint |
startAt, |
|
|
const T &in |
value |
|
) |
| const |
- Parameters
-
startAt | uint
|
value | const T&
|
- Returns
- int
◆ insert() [1/2]
void array::insert |
( |
uint |
index, |
|
|
const T &in |
value |
|
) |
| |
◆ insert() [2/2]
void array::insert |
( |
uint |
index, |
|
|
const T &[]inout |
arr |
|
) |
| |
- Parameters
-
index | uint
|
arr | const array&@ |
◆ insertAt() [1/2]
void array::insertAt |
( |
uint |
index, |
|
|
const T &in |
value |
|
) |
| |
◆ insertAt() [2/2]
void array::insertAt |
( |
uint |
index, |
|
|
const T &[]inout |
arr |
|
) |
| |
- Parameters
-
index | uint
|
arr | const array&@ |
◆ insertLast()
void array::insertLast |
( |
const T &in |
value | ) |
|
◆ isEmpty()
bool array::isEmpty |
( |
| ) |
const |
◆ length()
uint array::length |
( |
| ) |
const |
◆ opAssign()
T& [] array::opAssign |
( |
const T &[] |
in | ) |
|
- Parameters
-
- Returns
- array&@
◆ opEquals()
bool array::opEquals |
( |
const T &[] |
in | ) |
const |
◆ opIndex() [1/2]
T& array::opIndex |
( |
uint |
index | ) |
|
◆ opIndex() [2/2]
const T& array::opIndex |
( |
uint |
index | ) |
const |
- Parameters
-
- Returns
- const T&
◆ pop_back()
◆ push_back()
void array::push_back |
( |
const T & |
in | ) |
|
◆ removeAt()
void array::removeAt |
( |
uint |
index | ) |
|
◆ removeLast()
void array::removeLast |
( |
| ) |
|
◆ removeRange()
void array::removeRange |
( |
uint |
start, |
|
|
uint |
count |
|
) |
| |
◆ reserve()
void array::reserve |
( |
uint |
length | ) |
|
◆ resize()
void array::resize |
( |
uint |
length | ) |
|
◆ reverse()
◆ size()
uint array::size |
( |
| ) |
const |
◆ sort()
void array::sort |
( |
array::less & |
in, |
|
|
uint |
startAt = 0 , |
|
|
uint |
count = uint(- 1) |
|
) |
| |
◆ sortAsc() [1/2]
◆ sortAsc() [2/2]
void array::sortAsc |
( |
uint |
startAt, |
|
|
uint |
count |
|
) |
| |
◆ sortDesc() [1/2]
◆ sortDesc() [2/2]
void array::sortDesc |
( |
uint |
startAt, |
|
|
uint |
count |
|
) |
| |
The documentation for this class was generated from the following file: