alaCarte Maps
Renderer for OpenStreetMap tiles
eval::STLeaf Class Reference

Represents a leaf in the eval syntax tree. More...

#include <stleaf.hpp>

Inheritance diagram for eval::STLeaf:

Public Member Functions

 STLeaf (const string &value)
 Creates a leaf with a given string value. More...
virtual string eval (GeoObject *obj) const
 Evaluates a subtree under this node. More...

Private Attributes

const string value
 The value given back. More...

Additional Inherited Members

- Public Types inherited from eval::STNode
typedef shared_ptr< STNodenode_ptr
 Shared ptr to this node. More...

Detailed Description

Represents a leaf in the eval syntax tree.

Every leaf contains a simple string, which will be used in other nodes.

Definition at line 39 of file stleaf.hpp.

Constructor & Destructor Documentation

eval::STLeaf::STLeaf ( const string value)

Creates a leaf with a given string value.

valueThe value given back by eval

Definition at line 34 of file stleaf.cpp.

Member Function Documentation

string eval::STLeaf::eval ( GeoObject obj) const

Evaluates a subtree under this node.

objwhich is used to execute the eval tree

Reimplemented from eval::STNode.

Definition at line 41 of file stleaf.cpp.

Member Data Documentation

const string eval::STLeaf::value

The value given back.

Definition at line 49 of file stleaf.hpp.

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