LIBINT  2.1.0-stable
Public Types | Public Member Functions | Static Public Member Functions | List of all members
libint2::DRTree Class Reference

This is a directed rooted tree. More...

#include <drtree.h>

Inheritance diagram for libint2::DRTree:
Inheritance graph
[legend]
Collaboration diagram for libint2::DRTree:
Collaboration graph
[legend]

Public Types

typedef DRTree this_type
 

Public Member Functions

unsigned int nvertices () const
 number of vertices
 
const SafePtr< DGVertex > & root () const
 the root of the tree
 
void detach ()
 remove all references from vertices to the tree and vice versa
 
void add_vertex (const SafePtr< DGVertex > &v)
 will try to add v to this subtree. Should not be used by the user
 
void detach_from (const SafePtr< DGVertex > &v)
 recurively detach v from this
 

Static Public Member Functions

static SafePtr< DRTreeCreateRootedAt (const SafePtr< DGVertex > &v)
 If v is not on a DRTree, make a new one using v as root.
 

Detailed Description

This is a directed rooted tree.


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