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

#include <clientlib.h>

Inherits client::Object.

Public Member Functions

double get_length ()
 
void clear ()
 
StringgetItem (const String &key)
 
Stringkey (double index)
 
void removeItem (const String &key)
 
void setItem (const String &key, const String &value)
 
Object *& operator[] (int index)
 
Objectoperator[] (int index) const
 
Storageget_prototype ()
 
void set_prototype (Storage *)
 
 Storage ()
 
- 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

◆ Storage()

client::Storage::Storage ( )

Member Function Documentation

◆ clear()

void client::Storage::clear ( )

◆ get_length()

double client::Storage::get_length ( )

◆ get_prototype()

Storage* client::Storage::get_prototype ( )

◆ getItem()

String* client::Storage::getItem ( const String key)

◆ key()

String* client::Storage::key ( double  index)

◆ operator[]() [1/2]

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

◆ operator[]() [2/2]

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

◆ removeItem()

void client::Storage::removeItem ( const String key)

◆ set_prototype()

void client::Storage::set_prototype ( Storage )

◆ setItem()

void client::Storage::setItem ( const String key,
const String value 
)