dynamic::internal::nonroot_var Class Reference

A class containing a non-root variable. More...

#include <nonroot_var.hpp>

List of all members.

Public Member Functions

 nonroot_var ()
 Default constructor gives a null variable.
 nonroot_var (const var &v)
 Assign from a root or a non-root variable.
var get () const
 Access the variable.
const varref () const
 Access the variable.
varref ()
 Access the variable.
bool operator< (const var &v) const
 Comparison for use in containers.


Detailed Description

A class containing a non-root variable.

Definition at line 8 of file nonroot_var.hpp.


Member Function Documentation

var dynamic::internal::nonroot_var::get (  )  const [inline]

Access the variable.

This is less efficient than ref() because this converts the value to a root variable

Definition at line 25 of file nonroot_var.hpp.

References dynamic::var_impl::as_root(), and dynamic::var::impl().

var& dynamic::internal::nonroot_var::ref (  )  [inline]

Access the variable.

This variable is a non-root variable so must not be returned from a function

Definition at line 41 of file nonroot_var.hpp.

const var& dynamic::internal::nonroot_var::ref (  )  const [inline]

Access the variable.

This variable is a non-root variable so must not be returned from a function

Definition at line 33 of file nonroot_var.hpp.


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