#include <APPSPACK_Cache_Manager.hpp>
Collaboration diagram for APPSPACK::Cache::Manager:

Definition at line 85 of file APPSPACK_Cache_Manager.hpp.
Public Member Functions | |
| Manager (APPSPACK::Parameter::List ¶ms, const Vector &scaling) | |
| ~Manager () | |
| bool | insert (const Vector &x, const Vector &f) |
| Add the given point to the cache. | |
| bool | isCached (const Vector &x, Vector &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 Vector &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). | |
|
||||||||||||
|
Constructor Definition at line 43 of file APPSPACK_Cache_Manager.cpp. References APPSPACK::Parameter::List::getDoubleParameter(), APPSPACK::Parameter::List::getParameter(), APPSPACK::Parameter::List::getVectorParameter(), insert(), APPSPACK::Parameter::List::isParameterVector(), openOutputFile(), parseInputFile(), precision, and treeptr. |
|
|
Destructor Definition at line 66 of file APPSPACK_Cache_Manager.cpp. References closeOutputFile(). |
|
||||||||||||
|
Add the given point to the cache.
Definition at line 72 of file APPSPACK_Cache_Manager.cpp. References APPSPACK::Cache::SplayTree< Comparable >::insert(), treeptr, 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 81 of file APPSPACK_Cache_Manager.cpp. References APPSPACK::Cache::SplayTree< Comparable >::find(), APPSPACK::Cache::Point::getF(), and treeptr. Referenced by APPSPACK::Conveyor::exchange(). |
|
|
Parse the cache input file (reading the name from the parameter list).
Definition at line 94 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 120 of file APPSPACK_Cache_Manager.cpp. References APPSPACK::getNextDouble(), APPSPACK::getNextString(), insert(), APPSPACK::Vector::push_back(), and APPSPACK::Vector::resize(). Referenced by parseInputFile(). |
|
|
Open the output line for the cache.
Definition at line 193 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 212 of file APPSPACK_Cache_Manager.cpp. References fout, APPSPACK::Vector::leftshift(), and precision. Referenced by insert(). |
|
|
Close the output file.
Definition at line 226 of file APPSPACK_Cache_Manager.cpp. References fout. Referenced by ~Manager(). |
|
|
Pointer to splay tree containing the cache.
Definition at line 121 of file APPSPACK_Cache_Manager.hpp. Referenced by insert(), isCached(), and Manager(). |
|
|
Use cache output file?
Definition at line 124 of file APPSPACK_Cache_Manager.hpp. Referenced by openOutputFile(). |
|
|
Cache output file.
Definition at line 127 of file APPSPACK_Cache_Manager.hpp. Referenced by closeOutputFile(), openOutputFile(), and writeToOutputFile(). |
|
|
Precision of output (determined by tolerance).
Definition at line 130 of file APPSPACK_Cache_Manager.hpp. Referenced by Manager(), and writeToOutputFile(). |
![]()
© Sandia Corporation | Site Contact | Privacy and Security
![]()
Generated on Fri Feb 16 10:33:36 2007 for APPSPACK 5.0.1 by
1.3.9.1 written by Dimitri van Heesch,
© 1997-2002