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

#include <types.h>

Inherits client::Object.

Inherited by client::TMap< K, V >.

Public Member Functions

 Map ()
 
int get_size ()
 
void clear ()
 
template<typename K , typename V , typename std::enable_if<(std::is_arithmetic< K >::value||std::is_pointer< K >::value) &&(std::is_arithmetic< V >::value||std::is_pointer< V >::value), int >::type = 0>
void set (K k, V v)
 
template<typename K , typename V , typename std::enable_if<(std::is_arithmetic< K >::value||std::is_pointer< K >::value) &&(std::is_arithmetic< V >::value||std::is_pointer< V >::value), int >::type = 0>
get (K k)
 
template<typename K , typename std::enable_if<(std::is_arithmetic< K >::value||std::is_pointer< K >::value), int >::type = 0>
bool has (K k)
 
template<typename K , typename std::enable_if<(std::is_arithmetic< K >::value||std::is_pointer< K >::value), int >::type = 0>
bool delete_ (K k)
 
void forEach (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

◆ Map()

client::Map::Map ( )

Member Function Documentation

◆ clear()

void client::Map::clear ( )

◆ delete_()

template<typename K , typename std::enable_if<(std::is_arithmetic< K >::value||std::is_pointer< K >::value), int >::type = 0>
bool client::Map::delete_ ( k)
inline

◆ forEach()

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

◆ get()

template<typename K , typename V , typename std::enable_if<(std::is_arithmetic< K >::value||std::is_pointer< K >::value) &&(std::is_arithmetic< V >::value||std::is_pointer< V >::value), int >::type = 0>
V client::Map::get ( k)

◆ get_size()

int client::Map::get_size ( )

◆ has()

template<typename K , typename std::enable_if<(std::is_arithmetic< K >::value||std::is_pointer< K >::value), int >::type = 0>
bool client::Map::has ( k)

◆ set()

template<typename K , typename V , typename std::enable_if<(std::is_arithmetic< K >::value||std::is_pointer< K >::value) &&(std::is_arithmetic< V >::value||std::is_pointer< V >::value), int >::type = 0>
void client::Map::set ( k,
v 
)