expression_tree  3.2
 All Classes Files Functions Variables Typedefs
Public Member Functions
expression_tree::detail::leaf< T > Class Template Reference

Leaf class. More...

#include <expression_tree.h>

Inheritance diagram for expression_tree::detail::leaf< T >:
Inheritance graph
[legend]
Collaboration diagram for expression_tree::detail::leaf< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 leaf (const T &value)
 Constructor.
 leaf (const leaf< T > &other)
 Copy constructor.
virtual leaf< T > * clone () const
 Clones this object.
virtual bool constant () const
 Because this classes stores a copy of its data, it is constant.
virtual T evaluate () const
 Plainly return our value.

Detailed Description

template<typename T>
class expression_tree::detail::leaf< T >

Leaf class.

This class stores a copy of its data.


Constructor & Destructor Documentation

template<typename T>
expression_tree::detail::leaf< T >::leaf ( const T &  value) [inline]

Constructor.

Parameters:
valueThe value of this node.

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