Leaf class. More...
#include <expression_tree.h>


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. | |
Leaf class.
This class stores a copy of its data.
| expression_tree::detail::leaf< T >::leaf | ( | const T & | value | ) | [inline] |
Constructor.
| value | The value of this node. |
1.8.0