API documentation  2.0rc1
Public Member Functions | List of all members
client::Array Class Reference

#include <types.h>

Inherits client::Object.

Inherited by client::IDBArrayKey, client::RegExpExecArray, client::RegExpMatchArray, and client::TArray< T >.

Public Member Functions

template<typename... Args>
 Array (Args... args)
 
Object *& operator[] (int index)
 
Objectoperator[] (int index) const
 
int indexOf (Object *searchElement) const
 
int indexOf (Object *searchElement, int fromIndex) const
 
int indexOf (double searchElement) const
 
int indexOf (double searchElement, int fromIndex) const
 
int lastIndexOf (Object *searchElement) const
 
int lastIndexOf (Object *searchElement, int fromIndex) const
 
int lastIndexOf (double searchElement) const
 
int lastIndexOf (double searchElement, int fromIndex) const
 
template<typename... Args>
int push (Args... args)
 
int get_length () const
 
Arraysplice (int start)
 
template<typename... Args>
Arraysplice (int start, int deleteCount, Args... args)
 
Arrayslice () const
 
Arrayslice (int start) const
 
Arrayslice (int start, int end) const
 
Objectshift ()
 
void unshift (client::Object *)
 
Objectpop ()
 
StringtoString () const
 
StringtoLocaleString () const
 
template<typename... Args>
Arrayconcat (Args &&... args) const
 
Stringjoin (const String &) const
 
Arrayreverse ()
 
Arraysort (EventListener *callback)
 
bool every (EventListener *callback)
 
bool some (EventListener *callback)
 
void forEach (EventListener *callback)
 
Arraymap (EventListener *callback)
 
Arrayfilter (EventListener *callback)
 
Objectreduce (EventListener *callback)
 
ObjectreduceRight (EventListener *callback)
 
- Public Member Functions inherited from client::Object
 Object ()
 
template<typename T >
valueOf ()
 
 operator double () const
 
Objectoperator[] (const client::String &name) const
 
void set_ (const client::String &name, Object *v)
 
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
void set_ (const client::String &name, T v)
 
bool hasOwnProperty (const client::String &name)
 

Constructor & Destructor Documentation

◆ Array()

template<typename... Args>
client::Array::Array ( Args...  args)

Member Function Documentation

◆ concat()

template<typename... Args>
Array* client::Array::concat ( Args &&...  args) const

◆ every()

bool client::Array::every ( EventListener callback)

◆ filter()

Array* client::Array::filter ( EventListener callback)

◆ forEach()

void client::Array::forEach ( EventListener callback)

◆ get_length()

int client::Array::get_length ( ) const

◆ indexOf() [1/4]

int client::Array::indexOf ( Object searchElement) const

◆ indexOf() [2/4]

int client::Array::indexOf ( Object searchElement,
int  fromIndex 
) const

◆ indexOf() [3/4]

int client::Array::indexOf ( double  searchElement) const

◆ indexOf() [4/4]

int client::Array::indexOf ( double  searchElement,
int  fromIndex 
) const

◆ join()

String* client::Array::join ( const String ) const

◆ lastIndexOf() [1/4]

int client::Array::lastIndexOf ( Object searchElement) const

◆ lastIndexOf() [2/4]

int client::Array::lastIndexOf ( Object searchElement,
int  fromIndex 
) const

◆ lastIndexOf() [3/4]

int client::Array::lastIndexOf ( double  searchElement) const

◆ lastIndexOf() [4/4]

int client::Array::lastIndexOf ( double  searchElement,
int  fromIndex 
) const

◆ map()

Array* client::Array::map ( EventListener callback)

◆ operator[]() [1/2]

Object*& client::Array::operator[] ( int  index)
inline

◆ operator[]() [2/2]

Object* client::Array::operator[] ( int  index) const
inline

◆ pop()

Object* client::Array::pop ( )

◆ push()

template<typename... Args>
int client::Array::push ( Args...  args)

◆ reduce()

Object* client::Array::reduce ( EventListener callback)

◆ reduceRight()

Object* client::Array::reduceRight ( EventListener callback)

◆ reverse()

Array* client::Array::reverse ( )

◆ shift()

Object* client::Array::shift ( )

◆ slice() [1/3]

Array* client::Array::slice ( ) const

◆ slice() [2/3]

Array* client::Array::slice ( int  start) const

◆ slice() [3/3]

Array* client::Array::slice ( int  start,
int  end 
) const

◆ some()

bool client::Array::some ( EventListener callback)

◆ sort()

Array* client::Array::sort ( EventListener callback)

◆ splice() [1/2]

Array* client::Array::splice ( int  start)

◆ splice() [2/2]

template<typename... Args>
Array* client::Array::splice ( int  start,
int  deleteCount,
Args...  args 
)

◆ toLocaleString()

String* client::Array::toLocaleString ( ) const

◆ toString()

String* client::Array::toString ( ) const

◆ unshift()

void client::Array::unshift ( client::Object )