#include <APPSPACK_Cache_Manager.hpp>
Tamara G. Kolda
Definition at line 84 of file APPSPACK_Cache_Manager.hpp.
Public Member Functions | |
Manager (APPSPACK::Parameter::List ¶ms, const Vector &scaling) | |
~Manager () | |
bool | insert (const Vector &x, const Value &f) |
Add the given point to the cache. | |
bool | isCached (const Vector &x, Value &f) |
Return true if x is cached and fill in the function value. | |
Private Member Functions | |
void | parseInputFile (APPSPACK::Parameter::List ¶ms) |
Parse the cache input file (reading the name from the parameter list). | |
void | processInputLine (string &line) |
Process a single line from the input file. | |
void | openOutputFile (APPSPACK::Parameter::List ¶ms) |
Open the output line for the cache. | |
void | writeToOutputFile (const Vector &x, const Value &f) |
Write a given cache point to the output file. | |
void | closeOutputFile () |
Close the output file. | |
Private Attributes | |
SplayTree< Cache::Point > * | treeptr |
Pointer to splay tree containing the cache. | |
bool | isFout |
Use cache output file? | |
ofstream | fout |
Cache output file. | |
int | precision |
Precision of output (determined by tolerance). |
|
|
Destructor Definition at line 62 of file APPSPACK_Cache_Manager.cpp. References closeOutputFile(), and treeptr. |
|
Add the given point to the cache. Definition at line 68 of file APPSPACK_Cache_Manager.cpp. References treeptr, APPSPACK::Vector, and writeToOutputFile(). Referenced by APPSPACK::Conveyor::exchange(), Manager(), and processInputLine(). |
|
Return true if x is cached and fill in the function value. Definition at line 77 of file APPSPACK_Cache_Manager.cpp. References APPSPACK::Cache::Point::getF(), treeptr, and APPSPACK::Vector. Referenced by APPSPACK::Conveyor::exchange(). |
|
Parse the cache input file (reading the name from the parameter list). Definition at line 90 of file APPSPACK_Cache_Manager.cpp. References APPSPACK::Parameter::List::getParameter(), and processInputLine(). Referenced by Manager(). |
|
Process a single line from the input file. Definition at line 116 of file APPSPACK_Cache_Manager.cpp. References APPSPACK::getNextDouble(), APPSPACK::getNextString(), insert(), APPSPACK::Value::setValueTo(), and APPSPACK::Vector. Referenced by parseInputFile(). |
|
Open the output line for the cache. Definition at line 181 of file APPSPACK_Cache_Manager.cpp. References fout, APPSPACK::Parameter::List::getParameter(), and isFout. Referenced by Manager(). |
|
Write a given cache point to the output file. Definition at line 200 of file APPSPACK_Cache_Manager.cpp. References fout, APPSPACK::Value::getIsValue(), APPSPACK::Value::getValue(), isFout, precision, and APPSPACK::Vector. Referenced by insert(). |
|
Close the output file. Definition at line 221 of file APPSPACK_Cache_Manager.cpp. Referenced by ~Manager(). |
|
Pointer to splay tree containing the cache. Definition at line 120 of file APPSPACK_Cache_Manager.hpp. Referenced by insert(), isCached(), Manager(), and ~Manager(). |
|
Use cache output file? Definition at line 123 of file APPSPACK_Cache_Manager.hpp. Referenced by closeOutputFile(), openOutputFile(), and writeToOutputFile(). |
|
Cache output file. Definition at line 126 of file APPSPACK_Cache_Manager.hpp. Referenced by closeOutputFile(), openOutputFile(), and writeToOutputFile(). |
|
Precision of output (determined by tolerance). Definition at line 129 of file APPSPACK_Cache_Manager.hpp. Referenced by Manager(), and writeToOutputFile(). |
© Sandia Corporation | Site Contact | Privacy and Security
Generated on Wed Dec 14 18:41:05 2005 for APPSPACK 4.0.2 by
1.3.8 written by Dimitri van Heesch,
© 1997-2002