Classes | Functions
contrib/mul/fhs/fhs_arc.h File Reference

Link between one node and another. More...

#include <vsl/vsl_binary_io.h>
#include <vcl_vector.h>
#include <vcl_iosfwd.h>

Go to the source code of this file.

Classes

class  fhs_arc
 Link between one node and another. More...

Functions

bool fhs_order_tree_from_root (const vcl_vector< fhs_arc > &arc0, vcl_vector< fhs_arc > &new_arc, vcl_vector< vcl_vector< unsigned > > &children, unsigned new_root)
 Re-order list of arcs so that parents precede their children.
vcl_ostream & operator<< (vcl_ostream &os, const fhs_arc &c)
 Print.
vcl_ostream & operator<< (vcl_ostream &os, const vcl_vector< fhs_arc > &arc)
 Print set.
void vsl_b_write (vsl_b_ostream &bfs, const fhs_arc &t)
 Save.
void vsl_b_read (vsl_b_istream &bfs, fhs_arc &t)
 Load.
void vsl_print_summary (vcl_ostream &os, const fhs_arc &t)
 Print.

Detailed Description

Link between one node and another.

Author:
Tim Cootes

Definition in file fhs_arc.h.


Function Documentation

bool fhs_order_tree_from_root ( const vcl_vector< fhs_arc > &  arc0,
vcl_vector< fhs_arc > &  new_arc,
vcl_vector< vcl_vector< unsigned > > &  children,
unsigned  new_root 
)

Re-order list of arcs so that parents precede their children.

Assumes that there are n nodes (indexed 0..n-1), thus n-1 arcs defining a tree. On exit children[i] gives list of children of node i

Definition at line 86 of file fhs_arc.cxx.

vcl_ostream& operator<< ( vcl_ostream &  os,
const fhs_arc c 
)

Print.

Definition at line 32 of file fhs_arc.cxx.

vcl_ostream& operator<< ( vcl_ostream &  os,
const vcl_vector< fhs_arc > &  arc 
)

Print set.

Definition at line 40 of file fhs_arc.cxx.

void vsl_b_read ( vsl_b_istream bfs,
fhs_arc t 
) [inline]

Load.

Definition at line 86 of file fhs_arc.h.

void vsl_b_write ( vsl_b_ostream bfs,
const fhs_arc t 
) [inline]

Save.

Definition at line 80 of file fhs_arc.h.

void vsl_print_summary ( vcl_ostream &  os,
const fhs_arc t 
)

Print.

Definition at line 49 of file fhs_arc.cxx.