SheafSystem  0.0.0.0
sheaf::plot Class Reference

A class for constructing files to be read by gnuplot. More...

#include <plot.h>

Public Types

enum  plot_type { QUADRATIC, LINEAR, CONSTANT }
 Type of curve to fit. More...
 

Public Member Functions

virtual bool invariant () const
 Class invariant. More...
 
 plot (const char *xdriver, const char **xcurve_labels, int xnum_curves=1, const char *xxlabel="", const char *xylabel="", const plot_type *xtypes=0)
 Constructor. More...
 
virtual ~plot ()
 Destructor. More...
 
double * create_point ()
 An empty array for point data. More...
 
void add_point (double *xpoint)
 Add a data point. More...
 

Detailed Description

A class for constructing files to be read by gnuplot.

Definition at line 37 of file plot.h.

Member Enumeration Documentation

◆ plot_type

Type of curve to fit.

Definition at line 60 of file plot.h.

Constructor & Destructor Documentation

◆ plot()

sheaf::plot::plot ( const char *  xdriver,
const char **  xcurve_labels,
int  xnum_curves = 1,
const char *  xxlabel = "",
const char *  xylabel = "",
const plot_type xtypes = 0 
)

Constructor.

Precondition
  • xnum_curves > 0
  • -unexecutable( "length of xcurve_labels == xnum_curves" )
  • -unexecutable( "xtypes == 0 || size of xtypes == xnum_curves" )
Postcondition

Definition at line 55 of file plot.cc.

References ~plot().

Referenced by invariant().

◆ ~plot()

sheaf::plot::~plot ( )
virtual

Destructor.

Definition at line 262 of file plot.cc.

References create_point().

Referenced by plot().

Member Function Documentation

◆ add_point()

void sheaf::plot::add_point ( double *  xpoint)

Add a data point.

Precondition
  • -unexecutable( "length of xpoint == _num_curves+1" )
Postcondition

Definition at line 303 of file plot.cc.

Referenced by create_point().

◆ create_point()

double * sheaf::plot::create_point ( )

An empty array for point data.

Postcondition
  • -unexecutable( "length of result == _num_curves+1" )

Definition at line 282 of file plot.cc.

References add_point().

Referenced by ~plot().

◆ invariant()

bool sheaf::plot::invariant ( ) const
virtual

Class invariant.

Definition at line 38 of file plot.cc.

References plot().


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