dynamic::internal::wrap_assoc_container< Impl > Class Template Reference
[Types]

Implements an associative container. More...

#include <wrap_cpp_container.hpp>

Inheritance diagram for dynamic::internal::wrap_assoc_container< Impl >:

dynamic::internal::wrap_cpp_container< Impl > dynamic::shared_var_impl dynamic::gc::gc_object dynamic::var_impl dynamic::internal::variant_base

List of all members.

Public Types

typedef wrap_cpp_container
< Impl >::iterator 
iterator

Public Member Functions

void set_member (const var &k, const var &v)
 Sets the given member.
var call (const var &k, const var &v)
 Call the object with 2 arguments.
int max_args ()
 Return the maximum number arguments that the object can be called with.
var get_member (const var &k)
 Gets the given member.
void erase (const var &k)
 Erases the specified item, but does not throw on error.
bool contains (const var &k)
 Returns whether the object contains.
var values ()
 Return a container of values.
void short_output (ostream &ss)
 Short output to a narrow stream.
void output (ostream &ss)
 Outputs to a narrow stream.
void short_output (wostream &ss)
 Short output to a wide stream.
void output (wostream &ss)
 Outputs to a wide stream.
var clone ()
 Clones the object.
var keys ()
 Return a container of keys.
void pickle (pickler &p)
 Pickle the object.
void unpickle (unpickler &p)
 Unpickle the object.
void mixin (const var &other)
 Adds the members of one object to another.
void assign_add (const var &other)
 Add with assignment.
var op_add (const var &other)
 Addition operator.


Detailed Description

template<typename Impl>
class dynamic::internal::wrap_assoc_container< Impl >

Implements an associative container.

Definition at line 257 of file wrap_cpp_container.hpp.


Member Function Documentation

template<typename Impl >
int dynamic::internal::wrap_assoc_container< Impl >::max_args (  )  [inline, virtual]

Return the maximum number arguments that the object can be called with.

Returns -1 if the object cannot be called.

Reimplemented from dynamic::var_impl.

Reimplemented in dynamic::types::object_impl.

Definition at line 275 of file wrap_cpp_container.hpp.

template<typename Impl >
void dynamic::internal::wrap_assoc_container< Impl >::pickle ( pickler  )  [inline, virtual]

Pickle the object.

See also:
dynamic::pickle() function.

Reimplemented from dynamic::var_impl.

Reimplemented in dynamic::types::object_impl.

Definition at line 366 of file wrap_cpp_container.hpp.

template<typename Impl >
void dynamic::internal::wrap_assoc_container< Impl >::short_output ( ostream &   )  [inline, virtual]

Short output to a narrow stream.

This call would not be recursive, whereas output() is

Reimplemented from dynamic::var_impl.

Definition at line 312 of file wrap_cpp_container.hpp.

template<typename Impl >
void dynamic::internal::wrap_assoc_container< Impl >::unpickle ( unpickler  )  [inline, virtual]

Unpickle the object.

See also:
dynamic::unpickle() function

Reimplemented from dynamic::var_impl.

Reimplemented in dynamic::types::object_impl.

Definition at line 377 of file wrap_cpp_container.hpp.


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

Generated on Thu Dec 18 22:14:19 2008 for C++Script by  doxygen 1.5.7.1