Classes | Functions
contrib/mul/mcal/mcal_single_basis_cost.h File Reference

Base for objects which compute a cost function for one basis direction. More...

#include <vsl/vsl_fwd.h>
#include <vcl_string.h>
#include <vcl_memory.h>
#include <vnl/vnl_vector.h>
#include <vcl_iosfwd.h>

Go to the source code of this file.

Classes

class  mcal_single_basis_cost
 Base for objects which compute a cost function for one basis direction. More...

Functions

void vsl_add_to_binary_loader (const mcal_single_basis_cost &b)
 Allows derived class to be loaded by base-class pointer.
void vsl_b_write (vsl_b_ostream &bfs, const mcal_single_basis_cost &b)
 Binary file stream output operator for class reference.
void vsl_b_read (vsl_b_istream &bfs, mcal_single_basis_cost &b)
 Binary file stream input operator for class reference.
vcl_ostream & operator<< (vcl_ostream &os, const mcal_single_basis_cost &b)
 Stream output operator for class reference.
vcl_ostream & operator<< (vcl_ostream &os, const mcal_single_basis_cost *b)
 Stream output operator for class pointer.

Detailed Description

Base for objects which compute a cost function for one basis direction.

Author:
Tim Cootes

Definition in file mcal_single_basis_cost.h.


Function Documentation

vcl_ostream& operator<< ( vcl_ostream &  os,
const mcal_single_basis_cost b 
)

Stream output operator for class reference.

Definition at line 105 of file mcal_single_basis_cost.cxx.

vcl_ostream& operator<< ( vcl_ostream &  os,
const mcal_single_basis_cost b 
)

Stream output operator for class pointer.

Definition at line 118 of file mcal_single_basis_cost.cxx.

void vsl_add_to_binary_loader ( const mcal_single_basis_cost b)

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(bfs,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.

Definition at line 33 of file mcal_single_basis_cost.cxx.

void vsl_b_read ( vsl_b_istream bfs,
mcal_single_basis_cost b 
)

Binary file stream input operator for class reference.

Definition at line 96 of file mcal_single_basis_cost.cxx.

void vsl_b_write ( vsl_b_ostream bfs,
const mcal_single_basis_cost b 
)

Binary file stream output operator for class reference.

Definition at line 87 of file mcal_single_basis_cost.cxx.