|
IBAMR
IBAMR version 0.19.
|
#include <tbox/HDFDatabase.h>

Classes | |
| struct | hdf_complex |
| struct | KeyData |
Public Types | |
| enum | DataType { SAMRAI_INVALID, SAMRAI_DATABASE, SAMRAI_BOOL, SAMRAI_CHAR, SAMRAI_INT, SAMRAI_COMPLEX, SAMRAI_DOUBLE, SAMRAI_FLOAT, SAMRAI_STRING, SAMRAI_BOX } |
Public Member Functions | |
| HDFDatabase (const std::string &name) | |
| virtual | ~HDFDatabase () |
| virtual bool | keyExists (const std::string &key) |
| virtual Array< std::string > | getAllKeys () |
| virtual enum DataType | getArrayType (const std::string &key) |
| Return the type of data associated with the key. More... | |
| virtual int | getArraySize (const std::string &key) |
| virtual bool | isDatabase (const std::string &key) |
| virtual Pointer< Database > | putDatabase (const std::string &key) |
| virtual Pointer< Database > | getDatabase (const std::string &key) |
| virtual bool | isBool (const std::string &key) |
| virtual void | putBoolArray (const std::string &key, const bool *const data, const int nelements) |
| virtual Array< bool > | getBoolArray (const std::string &key) |
| virtual bool | isDatabaseBox (const std::string &key) |
| virtual void | putDatabaseBoxArray (const std::string &key, const DatabaseBox *const data, const int nelements) |
| virtual Array< DatabaseBox > | getDatabaseBoxArray (const std::string &key) |
| virtual bool | isChar (const std::string &key) |
| virtual void | putCharArray (const std::string &key, const char *const data, const int nelements) |
| virtual Array< char > | getCharArray (const std::string &key) |
| virtual bool | isComplex (const std::string &key) |
| virtual void | putComplexArray (const std::string &key, const dcomplex *const data, const int nelements) |
| virtual Array< dcomplex > | getComplexArray (const std::string &key) |
| virtual bool | isDouble (const std::string &key) |
| virtual void | putDoubleArray (const std::string &key, const double *const data, const int nelements) |
| virtual Array< double > | getDoubleArray (const std::string &key) |
| virtual bool | isFloat (const std::string &key) |
| virtual void | putFloatArray (const std::string &key, const float *const data, const int nelements) |
| virtual Array< float > | getFloatArray (const std::string &key) |
| virtual bool | isInteger (const std::string &key) |
| virtual void | putIntegerArray (const std::string &key, const int *const data, const int nelements) |
| virtual Array< int > | getIntegerArray (const std::string &key) |
| virtual bool | isString (const std::string &key) |
| virtual void | putStringArray (const std::string &key, const std::string *const data, const int nelements) |
| virtual Array< std::string > | getStringArray (const std::string &key) |
| virtual void | printClassData (std::ostream &os=pout) |
| virtual bool | create (const std::string &name) |
| virtual bool | open (const std::string &name) |
| virtual bool | attachToFile (hid_t group_id) |
| Attach the Database to an existing HDF file. More... | |
| virtual bool | close () |
| virtual std::string | getName () |
| Returns the name of this database. More... | |
| hid_t | getGroupId () |
| virtual void | putBoolArray (const std::string &key, const Array< bool > &data) |
| virtual void | putBoolArray (const std::string &key, const bool *const data, const int nelements)=0 |
| virtual Array< bool > | getBoolArray (const std::string &key)=0 |
| virtual void | getBoolArray (const std::string &key, bool *data, const int nelements) |
| virtual void | putDatabaseBoxArray (const std::string &key, const Array< DatabaseBox > &data) |
| virtual void | putDatabaseBoxArray (const std::string &key, const DatabaseBox *const data, const int nelements)=0 |
| virtual Array< DatabaseBox > | getDatabaseBoxArray (const std::string &key)=0 |
| virtual void | getDatabaseBoxArray (const std::string &key, DatabaseBox *data, const int nelements) |
| virtual void | putCharArray (const std::string &key, const Array< char > &data) |
| virtual void | putCharArray (const std::string &key, const char *const data, const int nelements)=0 |
| virtual Array< char > | getCharArray (const std::string &key)=0 |
| virtual void | getCharArray (const std::string &key, char *data, const int nelements) |
| virtual void | putComplexArray (const std::string &key, const Array< dcomplex > &data) |
| virtual void | putComplexArray (const std::string &key, const dcomplex *const data, const int nelements)=0 |
| virtual Array< dcomplex > | getComplexArray (const std::string &key)=0 |
| virtual void | getComplexArray (const std::string &key, dcomplex *data, const int nelements) |
| virtual void | putFloatArray (const std::string &key, const Array< float > &data) |
| virtual void | putFloatArray (const std::string &key, const float *const data, const int nelements)=0 |
| virtual Array< float > | getFloatArray (const std::string &key)=0 |
| virtual void | getFloatArray (const std::string &key, float *data, const int nelements) |
| virtual void | putDoubleArray (const std::string &key, const Array< double > &data) |
| virtual void | putDoubleArray (const std::string &key, const double *const data, const int nelements)=0 |
| virtual Array< double > | getDoubleArray (const std::string &key)=0 |
| virtual void | getDoubleArray (const std::string &key, double *data, const int nelements) |
| virtual void | putIntegerArray (const std::string &key, const Array< int > &data) |
| virtual void | putIntegerArray (const std::string &key, const int *const data, const int nelements)=0 |
| virtual Array< int > | getIntegerArray (const std::string &key)=0 |
| virtual void | getIntegerArray (const std::string &key, int *data, const int nelements) |
| virtual void | putStringArray (const std::string &key, const Array< std::string > &data) |
| virtual void | putStringArray (const std::string &key, const std::string *const data, const int nelements)=0 |
| virtual Array< std::string > | getStringArray (const std::string &key)=0 |
| virtual void | getStringArray (const std::string &key, std::string *data, const int nelements) |
| virtual void | putBool (const std::string &key, const bool &data) |
| virtual void | putBoolArray (const std::string &key, const Array< bool > &data) |
| virtual bool | getBool (const std::string &key) |
| virtual bool | getBoolWithDefault (const std::string &key, const bool &defaultvalue) |
| virtual void | getBoolArray (const std::string &key, bool *data, const int nelements) |
| virtual void | putDatabaseBox (const std::string &key, const DatabaseBox &data) |
| virtual void | putDatabaseBoxArray (const std::string &key, const Array< DatabaseBox > &data) |
| virtual DatabaseBox | getDatabaseBox (const std::string &key) |
| virtual DatabaseBox | getDatabaseBoxWithDefault (const std::string &key, const DatabaseBox &defaultvalue) |
| virtual void | getDatabaseBoxArray (const std::string &key, DatabaseBox *data, const int nelements) |
| virtual void | putChar (const std::string &key, const char &data) |
| virtual void | putCharArray (const std::string &key, const Array< char > &data) |
| virtual char | getChar (const std::string &key) |
| virtual char | getCharWithDefault (const std::string &key, const char &defaultvalue) |
| virtual void | getCharArray (const std::string &key, char *data, const int nelements) |
| virtual void | putComplex (const std::string &key, const dcomplex &data) |
| virtual void | putComplexArray (const std::string &key, const Array< dcomplex > &data) |
| virtual dcomplex | getComplex (const std::string &key) |
| virtual dcomplex | getComplexWithDefault (const std::string &key, const dcomplex &defaultvalue) |
| virtual void | getComplexArray (const std::string &key, dcomplex *data, const int nelements) |
| virtual void | putDouble (const std::string &key, const double &data) |
| virtual void | putDoubleArray (const std::string &key, const Array< double > &data) |
| virtual double | getDouble (const std::string &key) |
| virtual double | getDoubleWithDefault (const std::string &key, const double &defaultvalue) |
| virtual void | getDoubleArray (const std::string &key, double *data, const int nelements) |
| virtual void | putFloat (const std::string &key, const float &data) |
| virtual void | putFloatArray (const std::string &key, const Array< float > &data) |
| virtual float | getFloat (const std::string &key) |
| virtual float | getFloatWithDefault (const std::string &key, const float &defaultvalue) |
| virtual void | getFloatArray (const std::string &key, float *data, const int nelements) |
| virtual void | putInteger (const std::string &key, const int &data) |
| virtual void | putIntegerArray (const std::string &key, const Array< int > &data) |
| virtual int | getInteger (const std::string &key) |
| virtual int | getIntegerWithDefault (const std::string &key, const int &defaultvalue) |
| virtual void | getIntegerArray (const std::string &key, int *data, const int nelements) |
| virtual void | putString (const std::string &key, const std::string &data) |
| virtual void | putStringArray (const std::string &key, const Array< std::string > &data) |
| virtual std::string | getString (const std::string &key) |
| virtual std::string | getStringWithDefault (const std::string &key, const std::string &defaultvalue) |
| virtual void | getStringArray (const std::string &key, std::string *data, const int nelements) |
| void | getScalar (const std::string &key, bool &scalar) |
| void | getScalar (const std::string &key, char &scalar) |
| void | getScalar (const std::string &key, dcomplex &scalar) |
| void | getScalar (const std::string &key, float &scalar) |
| void | getScalar (const std::string &key, double &scalar) |
| void | getScalar (const std::string &key, int &scalar) |
| void | putScalar (const std::string &key, const bool scalar) |
| void | putScalar (const std::string &key, const char scalar) |
| void | putScalar (const std::string &key, const dcomplex scalar) |
| void | putScalar (const std::string &key, const float scalar) |
| void | putScalar (const std::string &key, const double scalar) |
| void | putScalar (const std::string &key, const int scalar) |
| void | getArray (const std::string &key, Array< bool > &array) |
| void | getArray (const std::string &key, Array< char > &array) |
| void | getArray (const std::string &key, Array< dcomplex > &array) |
| void | getArray (const std::string &key, Array< float > &array) |
| void | getArray (const std::string &key, Array< double > &array) |
| void | getArray (const std::string &key, Array< int > &array) |
| void | putArray (const std::string &key, const Array< bool > array) |
| void | putArray (const std::string &key, const Array< char > array) |
| void | putArray (const std::string &key, const Array< dcomplex > array) |
| void | putArray (const std::string &key, const Array< float > array) |
| void | putArray (const std::string &key, const Array< double > array) |
| void | putArray (const std::string &key, const Array< int > array) |
Private Member Functions | |
| HDFDatabase (const HDFDatabase &) | |
| void | operator= (const HDFDatabase &) |
| HDFDatabase (const std::string &name, hid_t group_ID) | |
| void | insertArray (hid_t parent_id, const char *name, hsize_t offset, int ndims, const hsize_t dim[], const int *perm, hid_t member_id) const |
| hid_t | createCompoundDatabaseBox (char type_spec) const |
| Create an HDF compound type for box. More... | |
| hid_t | createCompoundComplex (char type_spec) const |
| Create an HDF compound type for complex. More... | |
| void | performKeySearch () |
| void | cleanupKeySearch () |
| void | writeAttribute (int type_key, hid_t dataset_id) |
| Write attribute for a given dataset. More... | |
| int | readAttribute (hid_t dataset_id) |
| Read attribute for a given dataset. More... | |
Static Private Member Functions | |
| static herr_t | iterateKeys (hid_t loc_id, const char *name, void *database) |
| static void | addKeyToList (const char *name, int type, void *database) |
Private Attributes | |
| std::string | d_top_level_search_group |
| std::string | d_group_to_search |
| int | d_still_searching |
| int | d_found_group |
| bool | d_is_file |
| Whether database is mounted to a file. More... | |
| hid_t | d_file_id |
| ID of file attached to database. More... | |
| hid_t | d_group_id |
| ID of group attached to database. More... | |
| std::string | d_database_name |
| List< KeyData > | d_keydata |
Class HDFDatabase implements the interface of the Database class to store data in the HDF5 (Hierarchical Data Format) data format.
It is assumed that all processors will access the database in the same manner. Error reporting is done using the SAMRAI error reporting macros.
|
inherited |
Enumerated type indicating what type of values is stored in a database entry. Returned from getType() method.
Note: The SAMRAI_ prefix is needed since some poorly written packages do "#define CHAR" etc.
| Enumerator | |
|---|---|
| SAMRAI_INVALID | |
| SAMRAI_DATABASE | |
| SAMRAI_BOOL | |
| SAMRAI_CHAR | |
| SAMRAI_INT | |
| SAMRAI_COMPLEX | |
| SAMRAI_DOUBLE | |
| SAMRAI_FLOAT | |
| SAMRAI_STRING | |
| SAMRAI_BOX | |
| SAMRAI::tbox::HDFDatabase::HDFDatabase | ( | const std::string & | name | ) |
The HDF database constructor creates an empty database with the specified name. By default the database will not be associated with a file until it is mounted, using the mount() member function.
When assertion checking is active, the name string must be non-empty.
|
virtual |
The database destructor closes the HDF5 group or data file.
|
private |
|
private |
|
virtual |
Return true if the specified key exists in the database and false otherwise.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return an array of all keys in the current database. Note that no keys from subdatabases contained in the current database will appear in the array. To get the keys of any other database, you must call this routine for that database.
Implements SAMRAI::tbox::Database.
|
virtual |
If the key does not exist, then INVALID is returned
| key | Key name in database. |
Implements SAMRAI::tbox::Database.
|
virtual |
Return the size of the array associated with the key. If the key does not exist, then zero is returned.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return true or false depending on whether the specified key represents a database entry. If the key does not exist or if the string is empty, then false is returned.
Implements SAMRAI::tbox::Database.
Create a new database with the specified key name and return a pointer to it. A new group with the key name is also created in the data file.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
Get the database with the specified key name. If the specified key does not represent a database entry in the database, then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return true or false depending on whether the specified key represents a boolean entry. If the key does not exist or if the string is empty, then false is returned.
Implements SAMRAI::tbox::Database.
|
virtual |
Create a boolean array entry in the database with the specified key name.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
Get a boolean entry in the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty. Get a boolean entry from the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return true or false depending on whether the specified key represents a box entry. If the key does not exist or if the string is empty, then false is returned.
Implements SAMRAI::tbox::Database.
|
virtual |
Create a box array entry in the database with the specified key name.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Get a box entry from the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return true or false depending on whether the specified key represents a char entry. If the key does not exist or if the string is empty, then false is returned.
Implements SAMRAI::tbox::Database.
|
virtual |
Create a character array entry in the database with the specified key name.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Get a character entry from the database with the specified key name. If the specified key does not exist in the database, then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return true or false depending on whether the specified key represents a complex entry. If the key does not exist or if the string is empty, then false is returned.
Implements SAMRAI::tbox::Database.
|
virtual |
Create a complex array entry in the database with the specified key name.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Get a complex entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return true or false depending on whether the specified key represents a double entry. If the key does not exist or if the string is empty, then false is returned.
Implements SAMRAI::tbox::Database.
|
virtual |
Create a double array entry in the database with the specified key name.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
Get a double entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return true or false depending on whether the specified key represents a float entry. If the key does not exist or if the string is empty, then false is returned.
Implements SAMRAI::tbox::Database.
|
virtual |
Create a float array entry in the database with the specified key name.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Get a float entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return true or false depending on whether the specified key represents an integer entry. If the key does not exist or if the string is empty, then false is returned.
Implements SAMRAI::tbox::Database.
|
virtual |
Create an integer array entry in the database with the specified key name.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
Get an integer entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Return true or false depending on whether the specified key represents a string entry. If the key does not exist or if the string is empty, then false is returned.
Implements SAMRAI::tbox::Database.
|
virtual |
Create a string array entry in the database with the specified key name.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Get a string entry from the database with the specified key name. If the specified key does not exist in the database then an error message is printed and the program exits.
When assertion checking is active, the key string must be non-empty.
Implements SAMRAI::tbox::Database.
|
virtual |
Print contents of current database to the specified output stream.
If no output stream is specified, then data is written to stream pout. Note that none of the subdatabases contained in the current database will have their contents printed. To view the contents of any other database, you must call this print routine for that database.
Implements SAMRAI::tbox::Database.
|
virtual |
Create a new database file.
Returns true if successful.
| name | name of database. Normally a filename. |
Implements SAMRAI::tbox::Database.
|
virtual |
Open an existing database file.
Returns true if successful.
| name | name of database. Normally a filename. |
Implements SAMRAI::tbox::Database.
|
virtual |
If an application has an existing HDF file used for restart this method can be used to write SAMRAI restart information to the existing file instead of SAMRAI creating a distinct file.
The group_id should be a hid returned from a H5Gcreate call.
SAMRAI data will be written within this group.
Returns true if attach was successful.
|
virtual |
Close the database.
Returns true if successful.
If the database is currently open then close it. This should flush all data to the file (if the database is on disk).
Implements SAMRAI::tbox::Database.
|
virtual |
The name for the root of the database is the name supplied when creating it. Names for nested databases are the keyname of the database.
Implements SAMRAI::tbox::Database.
| hid_t SAMRAI::tbox::HDFDatabase::getGroupId | ( | ) |
Return the group_id so VisIt can access an object's HDF database.
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
When finished, the type should be closed using H5Tclose(hid_t).
| char_type | 'n' mean use native types; 'f' = means use types for file. |
|
private |
When finished, the type should be closed using H5Tclose(hid_t).
| char_type | 'n' mean use native types; 'f' = means use types for file. |
|
private |
|
private |
|
private |
Currently only one attribute is kept for each dataset: its type. The type attribute is used to determine what kind of data the dataset represent.
| type_key | Type identifier for the dataset |
| dataset_id | The HDF dataset id |
|
private |
Currently only one attribute is kept for each dataset: its type. The type attribute is returned.
| dataset_id | The HDF dataset id |
| virtual void SAMRAI::tbox::Database::putBoolArray |
Create a boolean array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| virtual void SAMRAI::tbox::Database::putBoolArray |
Create a boolean array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Get a boolean entry from the database with the specified key name. If the specified key does not exist in the database or is not a boolean array, then an error message is printed and the program exits.
| key | Key name in database. |
| virtual void SAMRAI::tbox::Database::getBoolArray |
Get a boolean entry from the database with the specified key name. If the specified key does not exist in the database or is not a boolean array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual void SAMRAI::tbox::Database::putDatabaseBoxArray |
Create a box array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| virtual void SAMRAI::tbox::Database::putDatabaseBoxArray |
Create a box array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual Array<DatabaseBox> SAMRAI::tbox::Database::getDatabaseBoxArray |
Get a box entry from the database with the specified key name. If the specified key does not exist in the database or is not a box array, then an error message is printed and the program exits.
| key | Key name in database. |
| virtual void SAMRAI::tbox::Database::getDatabaseBoxArray |
Get a box entry from the database with the specified key name. If the specified key does not exist in the database or is not a box array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual void SAMRAI::tbox::Database::putCharArray |
Create a character array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| key | Key name in database. |
| data | Array with data to put into database. |
| virtual void SAMRAI::tbox::Database::putCharArray |
Create a character array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual Array<char> SAMRAI::tbox::Database::getCharArray |
Get a character entry from the database with the specified key name. If the specified key does not exist in the database or is not a character array, then an error message is printed and the program exits.
| key | Key name in database. |
| virtual void SAMRAI::tbox::Database::getCharArray |
Get a character entry from the database with the specified key name. If the specified key does not exist in the database or is not a character array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual void SAMRAI::tbox::Database::putComplexArray |
Create a complex array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| virtual void SAMRAI::tbox::Database::putComplexArray |
Create a complex array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Get a complex entry from the database with the specified key name. If the specified key does not exist in the database or is not a complex array, then an error message is printed and the program exits.
| key | Key name in database. |
| virtual void SAMRAI::tbox::Database::getComplexArray |
Get a complex entry from the database with the specified key name. If the specified key does not exist in the database or is not a complex array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual void SAMRAI::tbox::Database::putFloatArray |
Create a float array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| virtual void SAMRAI::tbox::Database::putFloatArray |
Create a float array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual Array<float> SAMRAI::tbox::Database::getFloatArray |
Get a float entry from the database with the specified key name. If the specified key does not exist in the database or is not a float array, then an error message is printed and the program exits.
| key | Key name in database. |
| virtual void SAMRAI::tbox::Database::getFloatArray |
Get a float entry from the database with the specified key name. If the specified key does not exist in the database or is not a float array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual void SAMRAI::tbox::Database::putDoubleArray |
Create a double array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| virtual void SAMRAI::tbox::Database::putDoubleArray |
Create a double array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Get a double entry from the database with the specified key name. If the specified key does not exist in the database or is not a double array, then an error message is printed and the program exits.
| key | Key name in database. |
| virtual void SAMRAI::tbox::Database::getDoubleArray |
Get a double entry from the database with the specified key name. If the specified key does not exist in the database or is not a double array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual void SAMRAI::tbox::Database::putIntegerArray |
Create an integer array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| virtual void SAMRAI::tbox::Database::putIntegerArray |
Create an integer array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Get an integer entry from the database with the specified key name. If the specified key does not exist in the database or is not an integer array, then an error message is printed and the program exits.
| key | Key name in database. |
| virtual void SAMRAI::tbox::Database::getIntegerArray |
Get an integer entry from the database with the specified key name. If the specified key does not exist in the database or is not an integer array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual void SAMRAI::tbox::Database::putStringArray |
Create a string array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| virtual void SAMRAI::tbox::Database::putStringArray |
Create a string array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
| virtual Array<std::string> SAMRAI::tbox::Database::getStringArray |
Get a string entry from the database with the specified key name. If the specified key does not exist in the database or is not a string array, then an error message is printed and the program exits.
| key | Key name in database. |
| virtual void SAMRAI::tbox::Database::getStringArray |
Get a string entry from the database with the specified key name. If the specified key does not exist in the database or is not a string array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
|
virtualinherited |
Create a boolean scalar entry in the database with the specified key name. If thoe key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Value to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a boolean array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a boolean entry in the database with the specified key name. If the specified key does not exist in the database or is not a boolean scalar, then an error message is printed and the program exits.
| key | Key name in database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a boolean entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. If the key exists but is not a boolean scalar, then an error message is printed and the program exits.
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a boolean entry from the database with the specified key name. If the specified key does not exist in the database or is not a boolean array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a box scalar entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Data to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a box array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a box entry in the database with the specified key name. If the specified key does not exist in the database or is not a box scalar, then an error message is printed and the program exits.
| key | Key name in database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a box entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. If the key exists but is not a box scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| defaultvalue | Default value to return if not found. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a box entry from the database with the specified key name. If the specified key does not exist in the database or is not a box array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a character scalar entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Value to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a character array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| key | Key name in database. |
| data | Array with data to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a character entry in the database with the specified key name. If the specified key does not exist in the database or is not an character scalar, then an error message is printed and the program exits.
| key | Key name in database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a character entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. If the key exists but is not a character scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| defaultvalue | Default value to return if not found. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a character entry from the database with the specified key name. If the specified key does not exist in the database or is not a character array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a complex scalar entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Value to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a complex array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a complex entry in the database with the specified key name. If the specified key does not exist in the database or is not a complex scalar, then an error message is printed and the program exits.
| key | Key name in database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a complex entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. If the key exists but is not a complex scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| defaultvalue | Default value to return if not found. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a complex entry from the database with the specified key name. If the specified key does not exist in the database or is not a complex array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a double scalar entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Value to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a double array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a double entry in the database with the specified key name. If the specified key does not exist in the database or is not a double scalar, then an error message is printed and the program exits.
| key | Key name in database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a double entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. If the key exists but is not a double scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| defaultvalue | Default value to return if not found. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a double entry from the database with the specified key name. If the specified key does not exist in the database or is not a double array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a float scalar entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Value to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a float array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a float entry in the database with the specified key name. If the specified key does not exist in the database or is not a float scalar, then an error message is printed and the program exits.
| key | Key name in database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a float entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. If the key exists but is not a float scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| defaultvalue | Default value to return if not found. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a float entry from the database with the specified key name. If the specified key does not exist in the database or is not a float array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create an integer scalar entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Value to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create an integer array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get an integer entry in the database with the specified key name. If the specified key does not exist in the database or is not an integer scalar, then an error message is printed and the program exits.
| key | Key name in database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get an integer entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. If the key exists but is not an integer scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| defaultvalue | Default value to return if not found. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get an integer entry from the database with the specified key name. If the specified key does not exist in the database or is not an integer array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a string scalar entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Value to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Create a string array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| data | Array with data to put into database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a string entry in the database with the specified key name. If the specified key does not exist in the database or is not an string scalar, then an error message is printed and the program exits.
| key | Key name in database. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a string entry in the database with the specified key name. If the specified key does not exist in the database, then the default value is returned. If the key exists but is not a string scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| defaultvalue | Default value to return if not found. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
virtualinherited |
Get a string entry from the database with the specified key name. If the specified key does not exist in the database or is not a string array, then an error message is printed and the program exits. The specified number of elements must match exactly the number of elements in the array in the database.
| key | Key name in database. |
| data | Array with data to put into database. |
| nelements | Number of elements to write from array. |
Reimplemented in SAMRAI::tbox::MemoryDatabase.
|
inherited |
Get a bool entry in the database with the specified key name. If the specified key does not exist in the database or is not an bool scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Returns scalar that was read. |
|
inherited |
Get a char entry in the database with the specified key name. If the specified key does not exist in the database or is not an char scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Returns scalar that was read. |
|
inherited |
Get a complex entry in the database with the specified key name. If the specified key does not exist in the database or is not an complex scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Returns scalar that was read. |
|
inherited |
Get a float entry in the database with the specified key name. If the specified key does not exist in the database or is not an float scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Returns scalar that was read. |
|
inherited |
Get a double entry in the database with the specified key name. If the specified key does not exist in the database or is not an double scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Returns scalar that was read. |
|
inherited |
Get a integer entry in the database with the specified key name. If the specified key does not exist in the database or is not an integer scalar, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Returns scalar that was read. |
|
inherited |
Get a bool entry from the database with the specified key name. If the specified key does not exist in the database or is not a bool array, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Value to put into database. |
|
inherited |
Get a char entry from the database with the specified key name. If the specified key does not exist in the database or is not a char array, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Value to put into database. |
|
inherited |
Get a complex entry from the database with the specified key name. If the specified key does not exist in the database or is not a complex array, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Value to put into database. |
|
inherited |
Get a float entry from the database with the specified key name. If the specified key does not exist in the database or is not a float array, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Value to put into database. |
|
inherited |
Get a double entry from the database with the specified key name. If the specified key does not exist in the database or is not a double array, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Value to put into database. |
|
inherited |
Get a integer entry from the database with the specified key name. If the specified key does not exist in the database or is not a integer array, then an error message is printed and the program exits.
| key | Key name in database. |
| scalar | Value to put into database. |
Get a bool entry from the database with the specified key name. If the specified key does not exist in the database or is not a bool array, then an error message is printed and the program exits.
| key | Key name in database. |
| array | Returns array that was read. |
|
inherited |
Get a char entry from the database with the specified key name. If the specified key does not exist in the database or is not a char array, then an error message is printed and the program exits.
| key | Key name in database. |
| array | Returns array that was read. |
|
inherited |
Get a complex entry from the database with the specified key name. If the specified key does not exist in the database or is not a complex array, then an error message is printed and the program exits.
| key | Key name in database. |
| array | Returns array that was read. |
|
inherited |
Get a float entry from the database with the specified key name. If the specified key does not exist in the database or is not a float array, then an error message is printed and the program exits.
| key | Key name in database. |
| array | Returns array that was read. |
|
inherited |
Get a double entry from the database with the specified key name. If the specified key does not exist in the database or is not a double array, then an error message is printed and the program exits.
| key | Key name in database. |
| array | Returns array that was read. |
Get a integer entry from the database with the specified key name. If the specified key does not exist in the database or is not a integer array, then an error message is printed and the program exits.
| key | Key name in database. |
| array | Returns array that was read. |
|
inherited |
Create an bool array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| array | Array to put into database. |
|
inherited |
Create an char array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| array | Array to put into database. |
|
inherited |
Create an complex array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| array | Array to put into database. |
|
inherited |
Create an float array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| array | Array to put into database. |
|
inherited |
Create an double array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| array | Array to put into database. |
|
inherited |
Create an integer array entry in the database with the specified key name. If the key already exists in the database, then the old key record is deleted and the new one is silently created in its place.
| key | Key name in database. |
| array | Array to put into database. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Is either -1 (not mounted to file) or set to the return value from opening a file. Set to -1 on unmounting the file.
|
private |
A database object is always attached to a group. The group id is set in the constructor when constructing from a group. If the object mounts a file, the group id is the file id.
|
private |
1.8.17