Classes | Functions
contrib/brl/bbas/bgrl/bgrl_edge.h File Reference

A directed edge in a graph. More...

#include <vbl/vbl_ref_count.h>
#include <bgrl/bgrl_vertex_sptr.h>
#include <vsl/vsl_binary_io.h>
#include <vcl_string.h>
#include <vcl_iosfwd.h>
#include "bgrl_edge_sptr.h"

Go to the source code of this file.

Classes

class  bgrl_edge
 Directed edge from one vertex to another. More...

Functions

void vsl_add_to_binary_loader (const bgrl_edge &e)
 Allows derived class to be loaded by base-class pointer.
void vsl_print_summary (vcl_ostream &os, const bgrl_edge *e)
 Print an ASCII summary to the stream.

Detailed Description

A directed edge in a graph.

Author:
Matt Leotta, (mleotta@lems.brown.edu)
Date:
March 17, 2004

The edge has a pointer to its start and end vertices

    Modifications
     10-sep-2004 Peter Vanroose Added copy ctor with explicit vbl_ref_count init
   

Definition in file bgrl_edge.h.


Function Documentation

void vsl_add_to_binary_loader ( const bgrl_edge e)

Allows derived class to be loaded by base-class pointer.

A loader object exists which is invoked by calls of the form "vsl_b_read(os,base_ptr)". This loads derived class objects from the disk, places them on the heap and returns a base class pointer. In order to work the loader object requires an instance of each derived class that might be found. This function gives the model class to the appropriate loader.

A loader object exists which is invoked by calls of the form "vsl_b_read(os,base_ptr);". This loads derived class objects from the stream, places them on the heap and returns a base class pointer. In order to work the loader object requires an instance of each derived class that might be found. This function gives the model class to the appropriate loader.

Definition at line 69 of file bgrl_edge.cxx.

void vsl_print_summary ( vcl_ostream &  os,
const bgrl_edge e 
)

Print an ASCII summary to the stream.

Definition at line 77 of file bgrl_edge.cxx.