Phoenix
Object-oriented orthogonally persistent operating system
Public Member Functions
triton::Tuple< components > Class Template Reference

Tuple container stores arbitrary amount of different type values. More...

#include <tuple.h>

Inheritance diagram for triton::Tuple< components >:
Collaboration diagram for triton::Tuple< components >:

List of all members.

Public Member Functions

virtual const char * __name__ () const
 Method for retrieving name of object class.
virtual size_t __len__ ()
 Get tuple length.
template<int idx>
triton_internal::TupleType
< idx, components...> & 
get ()
 Get value from tuple specified by idx template argument.
virtual Object::hash_t __hash__ () const
 Get hash value for a tuple.

Detailed Description

template<class... components>
class triton::Tuple< components >

Tuple container stores arbitrary amount of different type values.


Member Function Documentation

template<class... components>
virtual Object::hash_t triton::Tuple< components >::__hash__ ( ) const [inline, virtual]

Get hash value for a tuple.

Reimplemented from triton::Object.

template<class... components>
virtual size_t triton::Tuple< components >::__len__ ( ) [inline, virtual]

Get tuple length.

Returns:
Number of values in the tuple.

Reimplemented from triton::Container.

template<class... components>
virtual const char* triton::Tuple< components >::__name__ ( ) const [inline, virtual]

Method for retrieving name of object class.

Returns:
Name of this object class.

Reimplemented from triton::Object.

template<class... components>
template<int idx>
triton_internal::TupleType<idx, components...>& triton::Tuple< components >::get ( ) [inline]

Get value from tuple specified by idx template argument.

Returns:
Reference to a value at specified index.
 t.get<2>() = 10;

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines