dynamic::types::set_impl Class Reference

Implements a set variable. More...

Inheritance diagram for dynamic::types::set_impl:

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

List of all members.

Public Types

typedef
set_traits::container::iterator 
iterator

Public Member Functions

var call (const var &a)
 Call the object with 1 argument.
var front ()
 Retrieve the first/front item.
var back ()
 Get the last/back item.
void output (dynamic::ostream &os)
 Outputs to a narrow stream.
void output (dynamic::wostream &os)
 Outputs to a wide stream.
void erase (const var &a)
 Erases the specified item, but does not throw on error.
bool contains (const var &a)
 Returns whether the object contains.
var clone ()
 Clones the object.
int max_args ()
 Return the maximum number arguments that the object can be called with.
void insert (const var &a)
 Inserts an item.
var op_add (const var &other)
 Addition operator.
var op_sub (const var &other)
 Subtraction operator.
var op_mul (const var &other)
 Multiplication operator.
void assign_add (const var &other)
 Add with assignment.
void mixin (const var &other)
 Adds the members of one object to another.
void assign_sub (const var &other)
 Subtract with assignment.
void assign_mul (const var &other)
 Multiplication with assignment.
void pickle (pickler &p)
 Pickle the object.
void unpickle (unpickler &p)
 Unpickle the object.


Detailed Description

Implements a set variable.

Definition at line 77 of file libdynamic/set.cpp.


Member Function Documentation

int dynamic::types::set_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.

Definition at line 151 of file libdynamic/set.cpp.

void dynamic::types::set_impl::pickle ( pickler  )  [inline, virtual]

Pickle the object.

See also:
dynamic::pickle() function.

Reimplemented from dynamic::var_impl.

Definition at line 222 of file libdynamic/set.cpp.

References dynamic::pickler::write_int(), dynamic::pickler::write_object(), and dynamic::pickler::write_object_type().

void dynamic::types::set_impl::unpickle ( unpickler  )  [inline, virtual]


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