- Main Page
- Classes
- Files

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# node_number Class Reference

`#include <node_impl.hpp>`

Inheritance diagram for node_number:

List of all members.

## Public Member Functions
| node_number (double value)
double | value () const
## Private Member Functions
virtual void | print_node (std::ostream &stream, int indent) const
virtual double | evaluate_node () const
## Private Attributes
double | value_

## Detailed Description

Number data type. Used for numeric literals.

Definition at line 59 of file node_impl.hpp.

## Constructor & Destructor Documentation

node_number::node_number | ( | double | value | ) |

Definition at line 78 of file node_impl.cpp.

    00079 : node_impl(), value_(value)
    00080 {}

## Member Function Documentation

double node_number::value | ( |  | ) | const

Definition at line 82 of file node_impl.cpp.

References value_.

Referenced by evaluate_node(), and print_node().

    00084 {
    00085   return value_;
    00086 }

void node_number::print_node | ( | std::ostream & | stream,
|  | int | indent |
| ) |  |  | const`[private, virtual]`

Implements node_impl.

Definition at line 88 of file node_impl.cpp.

References value().

    00090 {
    00091   stream << std::setw(indent) << "" << value() << '\n';
    00092 }

double node_number::evaluate_node | ( |  | ) | const`[private, virtual]`

Implements node_impl.

Definition at line 94 of file node_impl.cpp.

References value().

    00096 {
    00097   return value();
    00098 }

## Member Data Documentation

double node_number::value_`[private]`

Definition at line 67 of file node_impl.hpp.

Referenced by value().

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

- node_impl.hpp
- node_impl.cpp