API documentation  2.0rc1
Public Member Functions | List of all members
client::TArray< T > Class Template Reference

#include <types.h>

Inherits client::Array.

Public Member Functions

template<typename... Args>
 TArray (Args... args)
 
T *& operator[] (int index)
 
T * operator[] (int index) const
 
- Public Member Functions inherited from client::Array
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

◆ TArray()

template<class T>
template<typename... Args>
client::TArray< T >::TArray ( Args...  args)
inline

Member Function Documentation

◆ operator[]() [1/2]

template<class T>
T*& client::TArray< T >::operator[] ( int  index)
inline

◆ operator[]() [2/2]

template<class T>
T* client::TArray< T >::operator[] ( int  index) const
inline