AngelCAD  1.5-00
Public Member Functions | List of all members
array Class Reference

Array of values or references. More...

#include <angelcad.h>

Public Member Functions

 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)
 

Detailed Description

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@[]@

Constructor & Destructor Documentation

◆ array() [1/3]

array::array ( int &  in)
Parameters
int

◆ array() [2/3]

array::array ( int &  in,
uint  length 
)
Parameters
int
lengthuint

◆ array() [3/3]

array::array ( int &  in,
uint  length,
const T &in  value 
)
Parameters
int
lengthuint
valueconst T&

Member Function Documentation

◆ empty()

bool array::empty ( ) const
Returns
bool

◆ erase()

void array::erase ( uint  )
Parameters
uint

◆ find() [1/2]

int array::find ( const T &in  value) const
Parameters
valueconst T&
Returns
int

◆ find() [2/2]

int array::find ( uint  startAt,
const T &in  value 
) const
Parameters
startAtuint
valueconst T&
Returns
int

◆ findByRef() [1/2]

int array::findByRef ( const T &in  value) const
Parameters
valueconst T&
Returns
int

◆ findByRef() [2/2]

int array::findByRef ( uint  startAt,
const T &in  value 
) const
Parameters
startAtuint
valueconst T&
Returns
int

◆ insert() [1/2]

void array::insert ( uint  index,
const T &in  value 
)
Parameters
indexuint
valueconst T&

◆ insert() [2/2]

void array::insert ( uint  index,
const T &[]inout  arr 
)
Parameters
indexuint
arrconst array&@

◆ insertAt() [1/2]

void array::insertAt ( uint  index,
const T &in  value 
)
Parameters
indexuint
valueconst T&

◆ insertAt() [2/2]

void array::insertAt ( uint  index,
const T &[]inout  arr 
)
Parameters
indexuint
arrconst array&@

◆ insertLast()

void array::insertLast ( const T &in  value)
Parameters
valueconst T&

◆ isEmpty()

bool array::isEmpty ( ) const
Returns
bool

◆ length()

uint array::length ( ) const
Returns
uint

◆ opAssign()

T& [] array::opAssign ( const T &[]  in)
Parameters
constarray&@
Returns
array&@

◆ opEquals()

bool array::opEquals ( const T &[]  in) const
Parameters
constarray&@
Returns
bool

◆ opIndex() [1/2]

T& array::opIndex ( uint  index)
Parameters
indexuint
Returns
T&

◆ opIndex() [2/2]

const T& array::opIndex ( uint  index) const
Parameters
indexuint
Returns
const T&

◆ pop_back()

void array::pop_back ( )

◆ push_back()

void array::push_back ( const T &  in)
Parameters
constT&

◆ removeAt()

void array::removeAt ( uint  index)
Parameters
indexuint

◆ removeLast()

void array::removeLast ( )

◆ removeRange()

void array::removeRange ( uint  start,
uint  count 
)
Parameters
startuint
countuint

◆ reserve()

void array::reserve ( uint  length)
Parameters
lengthuint

◆ resize()

void array::resize ( uint  length)
Parameters
lengthuint

◆ reverse()

void array::reverse ( )

◆ size()

uint array::size ( ) const
Returns
uint

◆ sort()

void array::sort ( array::less &  in,
uint  startAt = 0,
uint  count = uint(- 1) 
)
Parameters
less&

◆ sortAsc() [1/2]

void array::sortAsc ( )

◆ sortAsc() [2/2]

void array::sortAsc ( uint  startAt,
uint  count 
)
Parameters
startAtuint
countuint

◆ sortDesc() [1/2]

void array::sortDesc ( )

◆ sortDesc() [2/2]

void array::sortDesc ( uint  startAt,
uint  count 
)
Parameters
startAtuint
countuint

The documentation for this class was generated from the following file: