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

Implements an array-style variable. More...

#include <wrap_cpp_container.hpp>

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

dynamic::internal::wrap_cpp_container< Impl > dynamic::shared_var_impl dynamic::gc::gc_object dynamic::var_impl dynamic::internal::variant_base dynamic::internal::wrap_list_container< Impl > dynamic::internal::wrap_vector_container< Impl > dynamic::types::string_impl< Impl >

List of all members.

Public Types

typedef wrap_cpp_container
< Impl >::iterator 
iterator

Public Member Functions

void push_back (const var &v)
 Pushes the value onto the back.
var pop_back ()
 Removes a value from the back and returns it.
var call (const var &a0)
 Call the object with 1 argument.
int max_args ()
 Return the maximum number arguments that the object can be called with.
var front ()
 Retrieve the first/front item.
var back ()
 Get the last/back item.
var clone ()
 Clones the object.
var keys ()
 Return a container of keys.
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.
void pickle (pickler &p)
 Pickle the object.
void unpickle (unpickler &p)
 Unpickle the object.
var op_add (const var &v)
 Addition operator.
void assign_add (const var &v)
 Add with assignment.
var op_mul (const var &v)
 Multiplication operator.
void assign_mul (const var &v)
 Multiplication with assignment.


Detailed Description

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

Implements an array-style variable.

Definition at line 409 of file wrap_cpp_container.hpp.


Member Function Documentation

template<typename Impl >
int dynamic::internal::wrap_array_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.

Definition at line 440 of file wrap_cpp_container.hpp.

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

Pickle the object.

See also:
dynamic::pickle() function.

Reimplemented from dynamic::var_impl.

Definition at line 505 of file wrap_cpp_container.hpp.

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

template<typename Impl >
void dynamic::internal::wrap_array_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.

Reimplemented in dynamic::types::string_impl< Impl >.

Definition at line 465 of file wrap_cpp_container.hpp.

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

Unpickle the object.

See also:
dynamic::unpickle() function

Reimplemented from dynamic::var_impl.

Definition at line 515 of file wrap_cpp_container.hpp.

References dynamic::unpickler::read_int(), dynamic::internal::wrap_cpp_container< Impl >::size(), and dynamic::unpickle().


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