Leaf class specialized to T*. More...
#include <expression_tree.h>
Public Member Functions | |
leaf (const T *p) | |
Constructor. | |
leaf (const leaf< T * > &other) | |
Copy constructor. | |
virtual leaf< T * > * | clone () const |
Clones this object. | |
virtual bool | constant () const |
Because this class stores a pointer to its data, it is not constant. | |
virtual T | evaluate () const |
Dereference our pointer. |
Leaf class specialized to T*.
This class stores a pointer to data.
expression_tree::detail::leaf< T * >::leaf | ( | const T * | p | ) | [inline] |
Constructor.
p | Pointer to this node's value. |