#include <tree_instance.h>
Public Types | |
| typedef MATCH_LABEL_T< int > | ML |
|
typedef tree_instance< MATCH_LABEL_T, order > | TREE_INSTANCE |
Public Member Functions | |
| tree_instance (const int &lx, const int &ux, const int &d=0, bool ind=0) | |
| tree_instance (ML &ml, const int &lx, const int &ux, const int &d=0, bool ind=0) | |
| tree_instance (const TREE_INSTANCE &i2, const int &lx, const int &d=0, bool ind=0) | |
| const int & | lower () const |
| const int & | upper () const |
| bool | less_than (const TREE_INSTANCE &i2) const |
| bool | contains (const TREE_INSTANCE &i2) const |
| bool | match_label (const ML &ml2) const |
| bool | child_test (const TREE_INSTANCE &i2) const |
| int | depth_diff (const TREE_INSTANCE &i2) const |
| bool | induced () const |
| const int & | depth () const |
| int | get_lb () const |
| int | get_ub () const |
| int | get_depth () const |
| ML::const_iterator | get_ml_begin () const |
| ML::const_iterator | get_ml_end () const |
| int | get_ml_size () const |
Friends | |
| bool | cousin_test (const TREE_INSTANCE &, const TREE_INSTANCE &) |
| ostream & | operator<< (ostream &, const TREE_INSTANCE &) |
This class is part of tree VAT. A instance of this class represents exactly one tree instance in a transaction. It takes two template arguments. MATCH_LABEL_T denotes the data structure that is used to make up the tree match label. Usually a vector of int is used. order denotes a class that determine whether the tree is ordered/unordered.
| bool tree_instance< MATCH_LABEL_T, order >::child_test | ( | const TREE_INSTANCE & | i2 | ) | const [inline] |
Returns true if child test holds on *this and i2
| bool tree_instance< MATCH_LABEL_T, order >::contains | ( | const TREE_INSTANCE & | i2 | ) | const [inline] |
Returns true if scope of *this contains that of i2
| int tree_instance< MATCH_LABEL_T, order >::depth_diff | ( | const TREE_INSTANCE & | i2 | ) | const [inline] |
Returns true if depth difference trees makes them induced
| bool tree_instance< MATCH_LABEL_T, order >::less_than | ( | const TREE_INSTANCE & | i2 | ) | const [inline] |
Returns true if scope of *this is strictly less than that of i2
| bool tree_instance< MATCH_LABEL_T, order >::match_label | ( | const ML & | ml2 | ) | const [inline] |
Returns true if this->ml is equal to ml2
1.4.7