IBAMR  IBAMR version 0.19.
Public Types | Public Member Functions | Private Member Functions | List of all members
SAMRAI::tbox::NullDatabase Class Reference

#include <tbox/NullDatabase.h>

Inheritance diagram for SAMRAI::tbox::NullDatabase:
Inheritance graph
[legend]

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

 NullDatabase ()
 
virtual ~NullDatabase ()
 
virtual bool create (const std::string &name)
 
virtual bool open (const std::string &name)
 
virtual bool close ()
 
virtual bool keyExists (const std::string &key)
 
virtual Array< std::string > getAllKeys ()
 
virtual enum DataType getArrayType (const std::string &key)
 
virtual int getArraySize (const std::string &key)
 
virtual bool isDatabase (const std::string &key)
 
virtual Pointer< DatabaseputDatabase (const std::string &key)
 
virtual Pointer< DatabasegetDatabase (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< boolgetBoolArray (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< DatabaseBoxgetDatabaseBoxArray (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< dcomplexgetComplexArray (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< doublegetDoubleArray (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< intgetIntegerArray (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 std::string getName ()
 
virtual void printClassData (std::ostream &os=pout)
 
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< boolgetBoolArray (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< DatabaseBoxgetDatabaseBoxArray (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< dcomplexgetComplexArray (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< doublegetDoubleArray (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< intgetIntegerArray (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

 NullDatabase (const NullDatabase &)
 
void operator= (const NullDatabase &)
 

Detailed Description

The NullDatabase provides an implementation of the Database interface with empty methods for the purpose of reducing the the number of guards necessary in methods from other classes that use databases.

See the Database class documentation for a description of the generic database interface.

Member Enumeration Documentation

◆ DataType

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 

Constructor & Destructor Documentation

◆ NullDatabase() [1/2]

SAMRAI::tbox::NullDatabase::NullDatabase ( )

The null database constructor creates an empty database with the name "null".

◆ ~NullDatabase()

virtual SAMRAI::tbox::NullDatabase::~NullDatabase ( )
virtual

The input database destructor deallocates the data in the database.

◆ NullDatabase() [2/2]

SAMRAI::tbox::NullDatabase::NullDatabase ( const NullDatabase )
private

Member Function Documentation

◆ create()

virtual bool SAMRAI::tbox::NullDatabase::create ( const std::string &  name)
virtual

Create a new database file.

Returns true if successful.

Parameters
namename of database. Normally a filename.

Implements SAMRAI::tbox::Database.

◆ open()

virtual bool SAMRAI::tbox::NullDatabase::open ( const std::string &  name)
virtual

Open an existing database file.

Returns true if successful.

Parameters
namename of database. Normally a filename.

Implements SAMRAI::tbox::Database.

◆ close()

virtual bool SAMRAI::tbox::NullDatabase::close ( )
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.

◆ keyExists()

virtual bool SAMRAI::tbox::NullDatabase::keyExists ( const std::string &  key)
virtual

Always returns true.

Implements SAMRAI::tbox::Database.

◆ getAllKeys()

virtual Array<std::string> SAMRAI::tbox::NullDatabase::getAllKeys ( )
virtual

Return an empty Array<string>.

Implements SAMRAI::tbox::Database.

◆ getArrayType()

virtual enum DataType SAMRAI::tbox::NullDatabase::getArrayType ( const std::string &  key)
virtual

Return INVALID.

Implements SAMRAI::tbox::Database.

◆ getArraySize()

virtual int SAMRAI::tbox::NullDatabase::getArraySize ( const std::string &  key)
virtual

Always returns 0.

Implements SAMRAI::tbox::Database.

◆ isDatabase()

virtual bool SAMRAI::tbox::NullDatabase::isDatabase ( const std::string &  key)
virtual

Always returns true.

Implements SAMRAI::tbox::Database.

◆ putDatabase()

virtual Pointer<Database> SAMRAI::tbox::NullDatabase::putDatabase ( const std::string &  key)
virtual

Returns a pointer to the null database.

Implements SAMRAI::tbox::Database.

◆ getDatabase()

virtual Pointer<Database> SAMRAI::tbox::NullDatabase::getDatabase ( const std::string &  key)
virtual

Returns a pointer to the null database.

Implements SAMRAI::tbox::Database.

◆ isBool()

virtual bool SAMRAI::tbox::NullDatabase::isBool ( const std::string &  key)
virtual

Always returns true.

Implements SAMRAI::tbox::Database.

◆ putBoolArray() [1/4]

virtual void SAMRAI::tbox::NullDatabase::putBoolArray ( const std::string &  key,
const bool *const  data,
const int  nelements 
)
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ getBoolArray() [1/4]

virtual Array<bool> SAMRAI::tbox::NullDatabase::getBoolArray ( const std::string &  key)
virtual

Returns an empty Array<bool>.

Implements SAMRAI::tbox::Database.

◆ isDatabaseBox()

virtual bool SAMRAI::tbox::NullDatabase::isDatabaseBox ( const std::string &  key)
virtual

Always returns true.

Implements SAMRAI::tbox::Database.

◆ putDatabaseBoxArray() [1/4]

virtual void SAMRAI::tbox::NullDatabase::putDatabaseBoxArray ( const std::string &  key,
const DatabaseBox *const  data,
const int  nelements 
)
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ getDatabaseBoxArray() [1/4]

virtual Array<DatabaseBox> SAMRAI::tbox::NullDatabase::getDatabaseBoxArray ( const std::string &  key)
virtual

Returns an empty Array<box>.

Implements SAMRAI::tbox::Database.

◆ isChar()

virtual bool SAMRAI::tbox::NullDatabase::isChar ( const std::string &  key)
virtual

Always returns true.

Implements SAMRAI::tbox::Database.

◆ putCharArray() [1/4]

virtual void SAMRAI::tbox::NullDatabase::putCharArray ( const std::string &  key,
const char *const  data,
const int  nelements 
)
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ getCharArray() [1/4]

virtual Array<char> SAMRAI::tbox::NullDatabase::getCharArray ( const std::string &  key)
virtual

Returns an empty Array<char>.

Implements SAMRAI::tbox::Database.

◆ isComplex()

virtual bool SAMRAI::tbox::NullDatabase::isComplex ( const std::string &  key)
virtual

Always returns true.

Implements SAMRAI::tbox::Database.

◆ putComplexArray() [1/4]

virtual void SAMRAI::tbox::NullDatabase::putComplexArray ( const std::string &  key,
const dcomplex *const  data,
const int  nelements 
)
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ getComplexArray() [1/4]

virtual Array<dcomplex> SAMRAI::tbox::NullDatabase::getComplexArray ( const std::string &  key)
virtual

Returns an empty Array<dcomplex>.

Implements SAMRAI::tbox::Database.

◆ isDouble()

virtual bool SAMRAI::tbox::NullDatabase::isDouble ( const std::string &  key)
virtual

Always returns true.

Implements SAMRAI::tbox::Database.

◆ putDoubleArray() [1/4]

virtual void SAMRAI::tbox::NullDatabase::putDoubleArray ( const std::string &  key,
const double *const  data,
const int  nelements 
)
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ getDoubleArray() [1/4]

virtual Array<double> SAMRAI::tbox::NullDatabase::getDoubleArray ( const std::string &  key)
virtual

Returns an empty Array<double>.

Implements SAMRAI::tbox::Database.

◆ isFloat()

virtual bool SAMRAI::tbox::NullDatabase::isFloat ( const std::string &  key)
virtual

Always return true.

Implements SAMRAI::tbox::Database.

◆ putFloatArray() [1/4]

virtual void SAMRAI::tbox::NullDatabase::putFloatArray ( const std::string &  key,
const float *const  data,
const int  nelements 
)
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ getFloatArray() [1/4]

virtual Array<float> SAMRAI::tbox::NullDatabase::getFloatArray ( const std::string &  key)
virtual

Returns an empty Array<float>.

Implements SAMRAI::tbox::Database.

◆ isInteger()

virtual bool SAMRAI::tbox::NullDatabase::isInteger ( const std::string &  key)
virtual

Always returns true.

Implements SAMRAI::tbox::Database.

◆ putIntegerArray() [1/4]

virtual void SAMRAI::tbox::NullDatabase::putIntegerArray ( const std::string &  key,
const int *const  data,
const int  nelements 
)
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ getIntegerArray() [1/4]

virtual Array<int> SAMRAI::tbox::NullDatabase::getIntegerArray ( const std::string &  key)
virtual

Returns an empty Array<int>.

Implements SAMRAI::tbox::Database.

◆ isString()

virtual bool SAMRAI::tbox::NullDatabase::isString ( const std::string &  key)
virtual

Always returns true.

Implements SAMRAI::tbox::Database.

◆ putStringArray() [1/4]

virtual void SAMRAI::tbox::NullDatabase::putStringArray ( const std::string &  key,
const std::string *const  data,
const int  nelements 
)
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ getStringArray() [1/4]

virtual Array<std::string> SAMRAI::tbox::NullDatabase::getStringArray ( const std::string &  key)
virtual

Returns an empty Array<std::string>.

Implements SAMRAI::tbox::Database.

◆ getName()

virtual std::string SAMRAI::tbox::NullDatabase::getName ( )
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ printClassData()

virtual void SAMRAI::tbox::NullDatabase::printClassData ( std::ostream &  os = pout)
virtual

Does nothing.

Implements SAMRAI::tbox::Database.

◆ operator=()

void SAMRAI::tbox::NullDatabase::operator= ( const NullDatabase )
private

◆ putBoolArray() [2/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.

◆ putBoolArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ getBoolArray() [2/4]

virtual Array<bool> 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.

Parameters
keyKey name in database.

◆ getBoolArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ putDatabaseBoxArray() [2/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.

◆ putDatabaseBoxArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ getDatabaseBoxArray() [2/4]

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.

Parameters
keyKey name in database.

◆ getDatabaseBoxArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ putCharArray() [2/4]

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.

Parameters
keyKey name in database.
keyKey name in database.
dataArray with data to put into database.

◆ putCharArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ getCharArray() [2/4]

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.

Parameters
keyKey name in database.

◆ getCharArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ putComplexArray() [2/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.

◆ putComplexArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ getComplexArray() [2/4]

virtual Array<dcomplex> 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.

Parameters
keyKey name in database.

◆ getComplexArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ putFloatArray() [2/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.

◆ putFloatArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ getFloatArray() [2/4]

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.

Parameters
keyKey name in database.

◆ getFloatArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ putDoubleArray() [2/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.

◆ putDoubleArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ getDoubleArray() [2/4]

virtual Array<double> 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.

Parameters
keyKey name in database.

◆ getDoubleArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ putIntegerArray() [2/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.

◆ putIntegerArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ getIntegerArray() [2/4]

virtual Array<int> 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.

Parameters
keyKey name in database.

◆ getIntegerArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ putStringArray() [2/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.

◆ putStringArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ getStringArray() [2/4]

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.

Parameters
keyKey name in database.

◆ getStringArray() [3/4]

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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

◆ putBool()

virtual void SAMRAI::tbox::Database::putBool ( const std::string &  key,
const bool data 
)
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.

Parameters
keyKey name in database.
dataValue to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putBoolArray() [4/4]

virtual void SAMRAI::tbox::Database::putBoolArray ( const std::string &  key,
const Array< bool > &  data 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getBool()

virtual bool SAMRAI::tbox::Database::getBool ( const std::string &  key)
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.

Parameters
keyKey name in database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getBoolWithDefault()

virtual bool SAMRAI::tbox::Database::getBoolWithDefault ( const std::string &  key,
const bool defaultvalue 
)
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.

◆ getBoolArray() [4/4]

virtual void SAMRAI::tbox::Database::getBoolArray ( const std::string &  key,
bool data,
const int  nelements 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putDatabaseBox()

virtual void SAMRAI::tbox::Database::putDatabaseBox ( const std::string &  key,
const DatabaseBox data 
)
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.

Parameters
keyKey name in database.
dataData to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putDatabaseBoxArray() [4/4]

virtual void SAMRAI::tbox::Database::putDatabaseBoxArray ( const std::string &  key,
const Array< DatabaseBox > &  data 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getDatabaseBox()

virtual DatabaseBox SAMRAI::tbox::Database::getDatabaseBox ( const std::string &  key)
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.

Parameters
keyKey name in database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getDatabaseBoxWithDefault()

virtual DatabaseBox SAMRAI::tbox::Database::getDatabaseBoxWithDefault ( const std::string &  key,
const DatabaseBox defaultvalue 
)
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.

Parameters
keyKey name in database.
defaultvalueDefault value to return if not found.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getDatabaseBoxArray() [4/4]

virtual void SAMRAI::tbox::Database::getDatabaseBoxArray ( const std::string &  key,
DatabaseBox data,
const int  nelements 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putChar()

virtual void SAMRAI::tbox::Database::putChar ( const std::string &  key,
const char &  data 
)
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.

Parameters
keyKey name in database.
dataValue to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putCharArray() [4/4]

virtual void SAMRAI::tbox::Database::putCharArray ( const std::string &  key,
const Array< char > &  data 
)
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.

Parameters
keyKey name in database.
keyKey name in database.
dataArray with data to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getChar()

virtual char SAMRAI::tbox::Database::getChar ( const std::string &  key)
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.

Parameters
keyKey name in database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getCharWithDefault()

virtual char SAMRAI::tbox::Database::getCharWithDefault ( const std::string &  key,
const char &  defaultvalue 
)
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.

Parameters
keyKey name in database.
defaultvalueDefault value to return if not found.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getCharArray() [4/4]

virtual void SAMRAI::tbox::Database::getCharArray ( const std::string &  key,
char *  data,
const int  nelements 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putComplex()

virtual void SAMRAI::tbox::Database::putComplex ( const std::string &  key,
const dcomplex data 
)
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.

Parameters
keyKey name in database.
dataValue to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putComplexArray() [4/4]

virtual void SAMRAI::tbox::Database::putComplexArray ( const std::string &  key,
const Array< dcomplex > &  data 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getComplex()

virtual dcomplex SAMRAI::tbox::Database::getComplex ( const std::string &  key)
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.

Parameters
keyKey name in database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getComplexWithDefault()

virtual dcomplex SAMRAI::tbox::Database::getComplexWithDefault ( const std::string &  key,
const dcomplex defaultvalue 
)
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.

Parameters
keyKey name in database.
defaultvalueDefault value to return if not found.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getComplexArray() [4/4]

virtual void SAMRAI::tbox::Database::getComplexArray ( const std::string &  key,
dcomplex data,
const int  nelements 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putDouble()

virtual void SAMRAI::tbox::Database::putDouble ( const std::string &  key,
const double data 
)
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.

Parameters
keyKey name in database.
dataValue to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putDoubleArray() [4/4]

virtual void SAMRAI::tbox::Database::putDoubleArray ( const std::string &  key,
const Array< double > &  data 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getDouble()

virtual double SAMRAI::tbox::Database::getDouble ( const std::string &  key)
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.

Parameters
keyKey name in database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getDoubleWithDefault()

virtual double SAMRAI::tbox::Database::getDoubleWithDefault ( const std::string &  key,
const double defaultvalue 
)
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.

Parameters
keyKey name in database.
defaultvalueDefault value to return if not found.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getDoubleArray() [4/4]

virtual void SAMRAI::tbox::Database::getDoubleArray ( const std::string &  key,
double data,
const int  nelements 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putFloat()

virtual void SAMRAI::tbox::Database::putFloat ( const std::string &  key,
const float &  data 
)
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.

Parameters
keyKey name in database.
dataValue to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putFloatArray() [4/4]

virtual void SAMRAI::tbox::Database::putFloatArray ( const std::string &  key,
const Array< float > &  data 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getFloat()

virtual float SAMRAI::tbox::Database::getFloat ( const std::string &  key)
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.

Parameters
keyKey name in database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getFloatWithDefault()

virtual float SAMRAI::tbox::Database::getFloatWithDefault ( const std::string &  key,
const float &  defaultvalue 
)
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.

Parameters
keyKey name in database.
defaultvalueDefault value to return if not found.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getFloatArray() [4/4]

virtual void SAMRAI::tbox::Database::getFloatArray ( const std::string &  key,
float *  data,
const int  nelements 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putInteger()

virtual void SAMRAI::tbox::Database::putInteger ( const std::string &  key,
const int data 
)
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.

Parameters
keyKey name in database.
dataValue to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putIntegerArray() [4/4]

virtual void SAMRAI::tbox::Database::putIntegerArray ( const std::string &  key,
const Array< int > &  data 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getInteger()

virtual int SAMRAI::tbox::Database::getInteger ( const std::string &  key)
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.

Parameters
keyKey name in database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getIntegerWithDefault()

virtual int SAMRAI::tbox::Database::getIntegerWithDefault ( const std::string &  key,
const int defaultvalue 
)
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.

Parameters
keyKey name in database.
defaultvalueDefault value to return if not found.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getIntegerArray() [4/4]

virtual void SAMRAI::tbox::Database::getIntegerArray ( const std::string &  key,
int data,
const int  nelements 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putString()

virtual void SAMRAI::tbox::Database::putString ( const std::string &  key,
const std::string &  data 
)
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.

Parameters
keyKey name in database.
dataValue to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ putStringArray() [4/4]

virtual void SAMRAI::tbox::Database::putStringArray ( const std::string &  key,
const Array< std::string > &  data 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getString()

virtual std::string SAMRAI::tbox::Database::getString ( const std::string &  key)
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.

Parameters
keyKey name in database.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getStringWithDefault()

virtual std::string SAMRAI::tbox::Database::getStringWithDefault ( const std::string &  key,
const std::string &  defaultvalue 
)
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.

Parameters
keyKey name in database.
defaultvalueDefault value to return if not found.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getStringArray() [4/4]

virtual void SAMRAI::tbox::Database::getStringArray ( const std::string &  key,
std::string *  data,
const int  nelements 
)
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.

Parameters
keyKey name in database.
dataArray with data to put into database.
nelementsNumber of elements to write from array.

Reimplemented in SAMRAI::tbox::MemoryDatabase.

◆ getScalar() [1/6]

void SAMRAI::tbox::Database::getScalar ( const std::string &  key,
bool scalar 
)
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.

Parameters
keyKey name in database.
scalarReturns scalar that was read.

◆ getScalar() [2/6]

void SAMRAI::tbox::Database::getScalar ( const std::string &  key,
char &  scalar 
)
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.

Parameters
keyKey name in database.
scalarReturns scalar that was read.

◆ getScalar() [3/6]

void SAMRAI::tbox::Database::getScalar ( const std::string &  key,
dcomplex scalar 
)
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.

Parameters
keyKey name in database.
scalarReturns scalar that was read.

◆ getScalar() [4/6]

void SAMRAI::tbox::Database::getScalar ( const std::string &  key,
float &  scalar 
)
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.

Parameters
keyKey name in database.
scalarReturns scalar that was read.

◆ getScalar() [5/6]

void SAMRAI::tbox::Database::getScalar ( const std::string &  key,
double scalar 
)
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.

Parameters
keyKey name in database.
scalarReturns scalar that was read.

◆ getScalar() [6/6]

void SAMRAI::tbox::Database::getScalar ( const std::string &  key,
int scalar 
)
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.

Parameters
keyKey name in database.
scalarReturns scalar that was read.

◆ putScalar() [1/6]

void SAMRAI::tbox::Database::putScalar ( const std::string &  key,
const bool  scalar 
)
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.

Parameters
keyKey name in database.
scalarValue to put into database.

◆ putScalar() [2/6]

void SAMRAI::tbox::Database::putScalar ( const std::string &  key,
const char  scalar 
)
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.

Parameters
keyKey name in database.
scalarValue to put into database.

◆ putScalar() [3/6]

void SAMRAI::tbox::Database::putScalar ( const std::string &  key,
const dcomplex  scalar 
)
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.

Parameters
keyKey name in database.
scalarValue to put into database.

◆ putScalar() [4/6]

void SAMRAI::tbox::Database::putScalar ( const std::string &  key,
const float  scalar 
)
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.

Parameters
keyKey name in database.
scalarValue to put into database.

◆ putScalar() [5/6]

void SAMRAI::tbox::Database::putScalar ( const std::string &  key,
const double  scalar 
)
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.

Parameters
keyKey name in database.
scalarValue to put into database.

◆ putScalar() [6/6]

void SAMRAI::tbox::Database::putScalar ( const std::string &  key,
const int  scalar 
)
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.

Parameters
keyKey name in database.
scalarValue to put into database.

◆ getArray() [1/6]

void SAMRAI::tbox::Database::getArray ( const std::string &  key,
Array< bool > &  array 
)
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.

Parameters
keyKey name in database.
arrayReturns array that was read.

◆ getArray() [2/6]

void SAMRAI::tbox::Database::getArray ( const std::string &  key,
Array< char > &  array 
)
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.

Parameters
keyKey name in database.
arrayReturns array that was read.

◆ getArray() [3/6]

void SAMRAI::tbox::Database::getArray ( const std::string &  key,
Array< dcomplex > &  array 
)
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.

Parameters
keyKey name in database.
arrayReturns array that was read.

◆ getArray() [4/6]

void SAMRAI::tbox::Database::getArray ( const std::string &  key,
Array< float > &  array 
)
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.

Parameters
keyKey name in database.
arrayReturns array that was read.

◆ getArray() [5/6]

void SAMRAI::tbox::Database::getArray ( const std::string &  key,
Array< double > &  array 
)
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.

Parameters
keyKey name in database.
arrayReturns array that was read.

◆ getArray() [6/6]

void SAMRAI::tbox::Database::getArray ( const std::string &  key,
Array< int > &  array 
)
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.

Parameters
keyKey name in database.
arrayReturns array that was read.

◆ putArray() [1/6]

void SAMRAI::tbox::Database::putArray ( const std::string &  key,
const Array< bool array 
)
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.

Parameters
keyKey name in database.
arrayArray to put into database.

◆ putArray() [2/6]

void SAMRAI::tbox::Database::putArray ( const std::string &  key,
const Array< char >  array 
)
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.

Parameters
keyKey name in database.
arrayArray to put into database.

◆ putArray() [3/6]

void SAMRAI::tbox::Database::putArray ( const std::string &  key,
const Array< dcomplex array 
)
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.

Parameters
keyKey name in database.
arrayArray to put into database.

◆ putArray() [4/6]

void SAMRAI::tbox::Database::putArray ( const std::string &  key,
const Array< float >  array 
)
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.

Parameters
keyKey name in database.
arrayArray to put into database.

◆ putArray() [5/6]

void SAMRAI::tbox::Database::putArray ( const std::string &  key,
const Array< double array 
)
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.

Parameters
keyKey name in database.
arrayArray to put into database.

◆ putArray() [6/6]

void SAMRAI::tbox::Database::putArray ( const std::string &  key,
const Array< int array 
)
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.

Parameters
keyKey name in database.
arrayArray to put into database.

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