solutions Class Reference

List of all members.

Public Member Functions

 solutions (const char *filename)
 ~solutions ()
int getNumInstances ()
double getDoubleField (int inst, int field)
int instancename2index (char *name)
char * getInstanceName (int inst)
void fprint (FILE *out)

Private Member Functions

int readSolutionFile (const char *filename)

Private Attributes

int _solutions_num_instances
char ** _instance_name_lookup
double ** _instance_data

Detailed Description

Definition at line 60 of file report.cpp.


Constructor & Destructor Documentation

solutions::solutions ( const char *  filename  )  [inline]

Definition at line 67 of file report.cpp.

References _instance_data, _instance_name_lookup, MAX_INSTANCES, readSolutionFile(), and SOLUTIONS_DOUBLE_FIELDS.

solutions::~solutions (  )  [inline]

Definition at line 81 of file report.cpp.

References _instance_data, _instance_name_lookup, and MAX_INSTANCES.


Member Function Documentation

int solutions::getNumInstances (  )  [inline]

Definition at line 90 of file report.cpp.

References _solutions_num_instances.

Referenced by Report::compareAtIterAlgo1(), Report::compareAtIterAlgo1R(), Report::compareAtLastIter(), dataset::fprint(), fprint(), getInstanceName(), and instancename2index().

double solutions::getDoubleField ( int  inst,
int  field 
) [inline]

Definition at line 92 of file report.cpp.

References _instance_data.

Referenced by dataset::boundClosedGap(), and fprint().

int solutions::instancename2index ( char *  name  )  [inline]

Definition at line 96 of file report.cpp.

References _instance_name_lookup, and getNumInstances().

Referenced by dataset::readF_resFile().

char* solutions::getInstanceName ( int  inst  )  [inline]

Definition at line 104 of file report.cpp.

References _instance_name_lookup, and getNumInstances().

Referenced by dataset::fprint(), and fprint().

void solutions::fprint ( FILE *  out  )  [inline]

Definition at line 111 of file report.cpp.

References getDoubleField(), getInstanceName(), getNumInstances(), SOLUTIONS_OPT, SOLUTIONS_RLT, SOLUTIONS_V1GAP, SOLUTIONS_V1TIME, SOLUTIONS_V2GAP, SOLUTIONS_V2TIME, SOLUTIONS_V3GAP, and SOLUTIONS_V3TIME.

int solutions::readSolutionFile ( const char *  filename  )  [inline, private]

Definition at line 127 of file report.cpp.

References _instance_data, _instance_name_lookup, _solutions_num_instances, MAX_INSTANCES, and SOLUTIONS_DOUBLE_FIELDS.

Referenced by solutions().


Member Data Documentation

int solutions::_solutions_num_instances [private]

Definition at line 62 of file report.cpp.

Referenced by getNumInstances(), and readSolutionFile().

char** solutions::_instance_name_lookup [private]

Definition at line 63 of file report.cpp.

Referenced by getInstanceName(), instancename2index(), readSolutionFile(), solutions(), and ~solutions().

double** solutions::_instance_data [private]

Definition at line 64 of file report.cpp.

Referenced by getDoubleField(), readSolutionFile(), solutions(), and ~solutions().


The documentation for this class was generated from the following file:
Generated on Thu Sep 22 03:14:02 2011 by  doxygen 1.4.7