rutz::array_value< T > Class Template Reference

A rutz::value subclass representing a variable-size set of homogeneous values. More...

#include <rutz/arrayvalue.h>

Inheritance diagram for rutz::array_value< T >:

Inheritance graph
[legend]
Collaboration diagram for rutz::array_value< T >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 array_value (const rutz::fstring &s)
virtual rutz::fstring value_typename () const
 Return a string giving the name of the native type.
virtual void print_to (std::ostream &os) const
 Write the value to a std::ostream.
virtual void scan_from (std::istream &is)
 Read the value from a std::istream.
unsigned int array_size () const
T & array_at (unsigned int i)
const T & array_at (unsigned int i) const
rutz::fstring get_string () const
 Get an rutz::fstring representation of the value.
void set_string (rutz::fstring val)
 Set the value from an rutz::fstring.


Detailed Description

template<class T>
class rutz::array_value< T >

A rutz::value subclass representing a variable-size set of homogeneous values.

Definition at line 48 of file arrayvalue.h.


Member Function Documentation

rutz::fstring rutz::value::get_string (  )  const [inherited]

Get an rutz::fstring representation of the value.

Builds a string stream, calls print_to(), and returns its value.

Definition at line 58 of file value.cc.

References rutz::value::print_to().

void rutz::value::set_string ( rutz::fstring  val  )  [inherited]

Set the value from an rutz::fstring.

Builds a string stream from val and calling scan_from() with it.

Definition at line 66 of file value.cc.

References rutz::fstring::c_str(), and rutz::value::scan_from().

Referenced by GbVec2< double >::GbVec2(), and GbVec3< double >::GbVec3().


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

The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:56:31 2008 by Doxygen version 1.5.5.