#include <evaluator.h>


Public Types | |
| typedef _Base::node_data_type | node_data_type |
| typedef _Base::return_value | return_value |
| typedef _Base::const_walker | const_walker |
| typedef _Tp | data_type |
Public Member Functions | |
| virtual int | preorder (const node_data_type &__data) |
| virtual const_walker | short_cut_to (const node_data_type &__data) |
| virtual return_value | vvalue () |
| virtual return_value | value () |
| virtual int | vcollect (const return_value &__cresult) |
| virtual int | collect (const node_data_type &__data, const return_value &__cresult) |
| virtual void | postorder (const node_data_type &__data) |
Protected Attributes | |
| _Tp | eval_data |
Definition at line 379 of file evaluator.h.
| typedef _Base::const_walker coco::evaluator_base< _Tp, _NData, _Result, _Walker >::const_walker |
This is the type of the walker, which is used for the short-cuts.
Reimplemented from coco::_evaluator_base< _Tp, _NData, _Result, _Walker >.
Reimplemented in coco::forward_evaluator_base< _Tp, _NData, _Result, _Walker >, and coco::backward_evaluator_base< _Tp, _NData, _Result, _Walker >.
Definition at line 390 of file evaluator.h.
typedef _Tp coco::_evaluator_base< _Tp , _NData , _Result , _Walker >::data_type [inherited] |
The data_type specifies the type of the internal data of the evaluator.
Definition at line 305 of file evaluator.h.
| typedef _Base::node_data_type coco::evaluator_base< _Tp, _NData, _Result, _Walker >::node_data_type |
The node_data_type is the datatype of the nodes of the graph.
Reimplemented from coco::_evaluator_base< _Tp, _NData, _Result, _Walker >.
Reimplemented in coco::forward_evaluator_base< _Tp, _NData, _Result, _Walker >, and coco::backward_evaluator_base< _Tp, _NData, _Result, _Walker >.
Definition at line 386 of file evaluator.h.
| typedef _Base::return_value coco::evaluator_base< _Tp, _NData, _Result, _Walker >::return_value |
This type is the result type of the evaluator.
Reimplemented from coco::_evaluator_base< _Tp, _NData, _Result, _Walker >.
Reimplemented in coco::forward_evaluator_base< _Tp, _NData, _Result, _Walker >, and coco::backward_evaluator_base< _Tp, _NData, _Result, _Walker >.
Definition at line 388 of file evaluator.h.
| virtual int coco::_evaluator_base< _Tp , _NData , _Result , _Walker >::collect | ( | const node_data_type & | __data, | |
| const return_value & | __cresult | |||
| ) | [inline, virtual, inherited] |
This method is needed by a visitor (see VGTL documentation) and is called for each normal node everytime a child node has been visited passing the return value of the child. The return value has the following effect:
| <0 | stop visiting children of this node, |
| 0 | continue with the graph walk downwards the next child, |
| >0 | skip as many children. |
Definition at line 359 of file evaluator.h.
| virtual void coco::_evaluator_base< _Tp , _NData , _Result , _Walker >::postorder | ( | const node_data_type & | __data | ) | [inline, virtual, inherited] |
This method is needed by a visitor (see VGTL documentation) and is called right after all children of a node have been visited.
Definition at line 364 of file evaluator.h.
| virtual int coco::evaluator_base< _Tp, _NData, _Result, _Walker >::preorder | ( | const node_data_type & | __data | ) | [inline, virtual] |
This method is needed by a visitor (see VGTL documentation) and is called right before any children of a node are visited. The return value of the method influences the further graph walk:
| <0 | perform a short-cut (the short_cut_to method will be called), |
| 0 | don't visit the children, proceed with postorder, |
| >0 | continue with the walk by visiting the children. |
Definition at line 401 of file evaluator.h.
| virtual const_walker coco::evaluator_base< _Tp, _NData, _Result, _Walker >::short_cut_to | ( | const node_data_type & | __data | ) | [inline, virtual] |
The short_cut_to method is called whenever a short-cut is signalled during the graph walk, and the const_walker returned is the target of the short-cut.
Definition at line 405 of file evaluator.h.
| virtual return_value coco::_evaluator_base< _Tp , _NData , _Result , _Walker >::value | ( | ) | [inline, virtual, inherited] |
This method is needed by a visitor (see VGTL documentation) and is called right before the end of the visit of a normal node to retrieve the return value.
Definition at line 336 of file evaluator.h.
| virtual int coco::_evaluator_base< _Tp , _NData , _Result , _Walker >::vcollect | ( | const return_value & | __cresult | ) | [inline, virtual, inherited] |
This method is needed by a visitor (see VGTL documentation) and is called for each virtual node everytime a child node has been visited passing the return value of the child. The return value has the following effect:
| <0 | stop visiting children of this node, |
| 0 | continue with the graph walk downwards the next child, |
| >0 | skip as many children. |
Definition at line 348 of file evaluator.h.
| virtual return_value coco::_evaluator_base< _Tp , _NData , _Result , _Walker >::vvalue | ( | ) | [inline, virtual, inherited] |
This method is needed by a visitor (see VGTL documentation) and is called right before the end of the visit of a virtual node to retrieve the return value.
Definition at line 332 of file evaluator.h.
_Tp coco::_evaluator_base< _Tp , _NData , _Result , _Walker >::eval_data [protected, inherited] |
The internal data of the evaluator
Definition at line 316 of file evaluator.h.
1.5.8