|
EvolvingObjects
|
Public Types | |
| typedef subtree * | iterator |
| typedef const subtree * | const_iterator |
Public Member Functions | |
| subtree (const subtree &s) | |
| subtree (const T &t) | |
| template<class It > | |
| subtree (It b, It e) | |
| subtree & | operator= (const subtree &s) |
| subtree & | operator= (const T &t) |
| T & | operator* (void) |
| const T & | operator* (void) const |
| T * | operator-> (void) |
| const T * | operator-> (void) const |
| bool | operator== (const subtree &other) const |
| bool | operator!= (const subtree &other) const |
| int | arity (void) const |
| template<class RetVal > | |
| void | apply (RetVal &v) const |
| template<class RetVal , class It > | |
| void | apply (RetVal &v, It values) const |
| template<class RetVal , class It > | |
| void | apply_mem_func (RetVal &v, It misc, void(T::*f)(RetVal &, typename subtree::iterator, It)) |
| template<class Pred > | |
| void | find_nodes (std::vector< subtree * > &result, Pred &p) |
| template<class Pred > | |
| void | find_nodes (std::vector< const subtree * > &result, Pred &p) const |
| iterator | begin (void) |
| const_iterator | begin (void) const |
| iterator | end (void) |
| const_iterator | end (void) const |
| subtree & | operator[] (int i) |
| const subtree & | operator[] (int i) const |
| size_t | size (void) const |
| size_t | cumulative_size (void) const |
| size_t | depth (void) const |
| const subtree & | select_cumulative (size_t which) const |
| subtree & | select_cumulative (size_t which) |
| subtree & | get_node (size_t which) |
| const subtree & | get_node (size_t which) const |
| subtree * | get_parent (void) |
| const subtree * | get_parent (void) const |
| void | clear (void) |
| void | swap (subtree &y) |
Protected Member Functions | |
| virtual void | updateAfterInsert (void) |
Private Member Functions | |
| const subtree & | imp_select_cumulative (size_t which) const |
| const subtree & | imp_get_node (size_t which) const |
| const subtree * | get_root (void) const |
| subtree & | copy (const subtree &s) |
| subtree & | copy (const T &t) |
| void | disown (void) |
| void | adopt (void) |
| template<class It > | |
| void | init (It b, It &last) |
Private Attributes | |
| Standard_Node_alloc< T > | node_allocator |
| a bit nasty way to use a pool allocator (which would otherwise use slooow new and delete) | |
| Standard_alloc< subtree > | tree_allocator |
| T * | content |
| subtree * | args |
| subtree * | parent |
| size_t | _cumulative_size |
| size_t | _depth |
| size_t | _size |
Definition at line 194 of file parse_tree.h.
Standard_Node_alloc<T> gp_parse_tree::parse_tree< T >::subtree::node_allocator [private] |
a bit nasty way to use a pool allocator (which would otherwise use slooow new and delete)
Definition at line 206 of file parse_tree.h.