#include <AttributeParser.h>
Public Member Functions | |
virtual bool | getConstVal (AnyType *dest) const =0 |
function to check if the subtree evalulates to a constant expression, if dest == NULL then do a static check if the node is always a constant (ignoring subnodes), if dest != NULL try to calculate the constant value and type recursively, thus the return value can be true for a non-constant tree node. | |
virtual bool | getValue (AnyType &dest, const class GraphContainer &gc, const class Changelist &cl, vertex_or_edge_t voe, unsigned int vid1, unsigned int vid2) const =0 |
function to retrieve the selected (calculated) value based on a vertex or edge attribute blob. | |
virtual std::string | toString () const =0 |
more a debug function which returns the parsed selection specification as a string. | |
virtual | ~ParseNode () |
virtual destructor so derived classes can deallocate their children nodes. | |
Protected Member Functions | |
ParseNode (const ParseNode &pn) | |
disable copy construction | |
ParseNode () | |
usual construction |
It offers abstract virtual methods to calculate the value of a selected Attribute from the attribute chain of a vertex or an edge.
Definition at line 19 of file AttributeParser.h.
VGServer::ParseNode::ParseNode | ( | ) | [inline, protected] |
VGServer::ParseNode::ParseNode | ( | const ParseNode & | pn | ) | [protected] |
disable copy construction
virtual VGServer::ParseNode::~ParseNode | ( | ) | [inline, virtual] |
virtual destructor so derived classes can deallocate their children nodes.
Definition at line 32 of file AttributeParser.h.
virtual bool VGServer::ParseNode::getConstVal | ( | AnyType * | dest | ) | const [pure virtual] |
function to check if the subtree evalulates to a constant expression, if dest == NULL then do a static check if the node is always a constant (ignoring subnodes), if dest != NULL try to calculate the constant value and type recursively, thus the return value can be true for a non-constant tree node.
The calculated value will be used as the default value of the attribute.
Referenced by VGServer::FilterRoot::parseString().
virtual bool VGServer::ParseNode::getValue | ( | AnyType & | dest, | |
const class GraphContainer & | gc, | |||
const class Changelist & | cl, | |||
vertex_or_edge_t | voe, | |||
unsigned int | vid1, | |||
unsigned int | vid2 | |||
) | const [pure virtual] |
function to retrieve the selected (calculated) value based on a vertex or edge attribute blob.
Referenced by VGServer::FilterRoot::eval_edge(), VGServer::FilterRoot::eval_vertex(), VGServer::AttributeSelectorList::processEdgeAttributeBlob(), and VGServer::AttributeSelectorList::processVertexAttributeBlob().
virtual std::string VGServer::ParseNode::toString | ( | ) | const [pure virtual] |
more a debug function which returns the parsed selection specification as a string.
Referenced by VGServer::FilterRoot::toString().