Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
metric Class Reference

#include <metric.h>

Collaboration diagram for metric:

Public Member Functions

 metric (std::vector< points * > datasets1, std::vector< points * > datasets2, int var_ds1, int var_ds2, ofstream &outfile, string outprefix)
 
void set_datasets1 (std::vector< points * > datasets1)
 
void set_datasets2 (std::vector< points * > datasets2)
 
void setRange (BoundingBox *rangePtr)
 
virtual string get_res ()
 
virtual string get_metric_name ()
 

Protected Member Functions

void error_out (string err_ps)
 

Protected Attributes

bool restrictToBoxRange
 
BoundingBoxrange
 
string outprefix
 
std::vector< points * > datasets1
 
std::vector< points * > datasets2
 
int var_ds1
 
int var_ds2
 
ofstream & outfile
 

Detailed Description

Definition at line 35 of file metric.h.

Constructor & Destructor Documentation

metric ( std::vector< points * >  datasets1,
std::vector< points * >  datasets2,
int  var_ds1,
int  var_ds2,
ofstream &  outfile,
string  outprefix 
)

Definition at line 6 of file metric.cpp.

References datasets1, datasets2, outprefix, var_ds1, and var_ds2.

9 {
10 
11  this ->restrictToBoxRange = false;
12 
13  this->outprefix = outprefix;
14 
15  this->datasets1 = datasets1;
16  this->datasets2 = datasets2;
17 
18  this->var_ds1 = var_ds1;
19  this->var_ds2 = var_ds2;
20 }
std::vector< points * > datasets1
Definition: metric.h:68
int var_ds2
Definition: metric.h:72
int var_ds1
Definition: metric.h:71
string outprefix
Definition: metric.h:66
ofstream & outfile
Definition: metric.h:74
std::vector< points * > datasets2
Definition: metric.h:69

Member Function Documentation

void error_out ( string  err_ps)
protected

Definition at line 38 of file metric.cpp.

References get_metric_name(), and outfile.

38  {
39 
40  string out;
41  out = "ERROR | Metric \"" + this->get_metric_name() + "\": " + err_ps;
42 
43 
44  outfile << out << std::endl;
45  cout << out << std::endl;
46 }
virtual string get_metric_name()
Definition: metric.cpp:34
ofstream & outfile
Definition: metric.h:74

Here is the call graph for this function:

string get_metric_name ( )
virtual

Definition at line 34 of file metric.cpp.

Referenced by compareFiles(), and error_out().

34  {
35  return string("Metric");
36 }

Here is the caller graph for this function:

string get_res ( )
virtual

Definition at line 30 of file metric.cpp.

Referenced by compareFiles().

30  {
31  return string("No Metric Performed");
32 }

Here is the caller graph for this function:

void set_datasets1 ( std::vector< points * >  datasets1)

Definition at line 22 of file metric.cpp.

References datasets1.

22  {
23  this->datasets1 = datasets1;
24 }
std::vector< points * > datasets1
Definition: metric.h:68
void set_datasets2 ( std::vector< points * >  datasets2)

Definition at line 26 of file metric.cpp.

References datasets2.

26  {
27  this->datasets2 = datasets2;
28 }
std::vector< points * > datasets2
Definition: metric.h:69
void setRange ( BoundingBox rangePtr)
inline

Definition at line 46 of file metric.h.

Referenced by compareFiles().

47  {
48 
49  if( rangePtr != NULL )
50  {
51  this ->restrictToBoxRange = true;
52  this ->range = rangePtr;
53  }
54 
55  }

Here is the caller graph for this function:

Member Data Documentation

std::vector<points*> datasets1
protected

Definition at line 68 of file metric.h.

Referenced by metric(), and set_datasets1().

std::vector<points*> datasets2
protected

Definition at line 69 of file metric.h.

Referenced by metric(), and set_datasets2().

ofstream& outfile
protected

Definition at line 74 of file metric.h.

Referenced by error_out().

string outprefix
protected

Definition at line 66 of file metric.h.

Referenced by metric().

BoundingBox* range
protected

Definition at line 64 of file metric.h.

bool restrictToBoxRange
protected

Definition at line 63 of file metric.h.

int var_ds1
protected

Definition at line 71 of file metric.h.

Referenced by metric().

int var_ds2
protected

Definition at line 72 of file metric.h.

Referenced by metric().


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