acedia::Tuple Class Reference

Tuples are immutable containers and can contain different types of elements. More...

#include <tuple.hpp>

Inheritance diagram for acedia::Tuple:
acedia::AnyArray

List of all members.

Public Member Functions

virtual const Anyat (boost::uint32_t pos) const
 Get the element at pos.
virtual boost::uint32_t length () const
 Get the length of this tuple.
virtual bool isTuple () const

Detailed Description

Tuples are immutable containers and can contain different types of elements.

It's designed to be passed by value and it implements implicit sharing.

Definition at line 160 of file tuple.hpp.


Member Function Documentation

const Any & acedia::Tuple::at ( boost::uint32_t  pos  )  const [virtual]

Get the element at pos.

Returns:
element at pos
Exceptions:
IndexOutOfBoundsException if pos >= length()

Implements acedia::AnyArray.

Definition at line 55 of file tuple.cpp.

bool acedia::Tuple::isTuple (  )  const [virtual]
Returns:
true if this array is a tuple

Reimplemented from acedia::AnyArray.

Definition at line 62 of file tuple.cpp.

boost::uint32_t acedia::Tuple::length (  )  const [virtual]

Get the length of this tuple.

Returns:
length of this tuple

Implements acedia::AnyArray.

Definition at line 60 of file tuple.cpp.


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

Generated by  doxygen 1.6.2