28 #ifndef _util_keyval_keyvalval_h
29 #define _util_keyval_keyvalval_h
33 #include <util/class/class.h>
40 enum KeyValValueError { OK, WrongType };
45 virtual KeyValValue::KeyValValueError doublevalue(
double&)
const;
46 virtual KeyValValue::KeyValValueError booleanvalue(
int&)
const;
47 virtual KeyValValue::KeyValValueError floatvalue(
float&)
const;
48 virtual KeyValValue::KeyValValueError charvalue(
char&)
const;
49 virtual KeyValValue::KeyValValueError intvalue(
int&)
const;
50 virtual KeyValValue::KeyValValueError longvalue(
long&)
const;
51 virtual KeyValValue::KeyValValueError sizevalue(
size_t&)
const;
52 DEPRECATED
virtual KeyValValue::KeyValValueError pcharvalue(
const char*&)
const;
53 virtual KeyValValue::KeyValValueError stringvalue(std::string&)
const;
55 virtual void print(std::ostream &o=
ExEnv::out0())
const;
70 KeyValValue::KeyValValueError doublevalue(
double&)
const;
83 KeyValValue::KeyValValueError booleanvalue(
int&)
const;
96 KeyValValue::KeyValValueError floatvalue(
float&)
const;
109 KeyValValue::KeyValValueError charvalue(
char&)
const;
122 KeyValValue::KeyValValueError intvalue(
int&)
const;
135 KeyValValue::KeyValValueError longvalue(
long&)
const;
148 KeyValValue::KeyValValueError sizevalue(
size_t&)
const;
161 DEPRECATED KeyValValue::KeyValValueError pcharvalue(
const char*&)
const;
162 KeyValValue::KeyValValueError stringvalue(std::string&)
const;
179 KeyValValue::KeyValValueError
doublevalue(
double&)
const;
184 KeyValValue::KeyValValueError
floatvalue(
float&)
const;
186 KeyValValue::KeyValValueError
charvalue(
char&)
const;
188 KeyValValue::KeyValValueError
intvalue(
int&)
const;
190 KeyValValue::KeyValValueError
longvalue(
long&)
const;
193 KeyValValue::KeyValValueError
sizevalue(
size_t&)
const;
195 DEPRECATED KeyValValue::KeyValValueError
pcharvalue(
const char*&)
const;
196 KeyValValue::KeyValValueError stringvalue(std::string&)
const;
KeyValValue::KeyValValueError sizevalue(size_t &) const
Converts the string to size_t.
Represents a float value.
Definition: keyvalval.h:88
Represents a std::string value.
Definition: keyvalval.h:168
Represents a Ref<DescribedClass> value.
Definition: keyvalval.h:201
A template class that maintains references counts.
Definition: ref.h:361
Represents a size_t value.
Definition: keyvalval.h:140
KeyValValue::KeyValValueError booleanvalue(int &) const
Converts the string to boolean.
KeyValValue::KeyValValueError charvalue(char &) const
Converts the string to char.
KeyValValue::KeyValValueError floatvalue(float &) const
Converts the string to float.
KeyValValue::KeyValValueError intvalue(int &) const
Converts the string to int.
Represents a long value.
Definition: keyvalval.h:127
KeyValValue::KeyValValueError longvalue(long &) const
Converts the string to long.
Represents a boolean value.
Definition: keyvalval.h:75
Represents an int value.
Definition: keyvalval.h:114
std::vector< unsigned int > operator<<(const GaussianBasisSet &B, const GaussianBasisSet &A)
computes a map from basis functions in A to the equivalent basis functions in B.
Represents a char value.
Definition: keyvalval.h:101
DEPRECATED KeyValValue::KeyValValueError pcharvalue(const char *&) const
Converts the string to a pointer to char (deprecated).
Represents the value of a keyword.
Definition: keyvalval.h:38
Represents a pointer to char value (deprecated, use KeyValValuestring).
Definition: keyvalval.h:153
KeyValValue::KeyValValueError doublevalue(double &) const
Converts the string to double.
static std::ostream & out0()
Return an ostream that writes from node 0.
The base class for all reference counted objects.
Definition: ref.h:192
Represents a double value.
Definition: keyvalval.h:62
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14
Generated at Sun Jan 26 2020 23:24:01 for MPQC
3.0.0-alpha using the documentation package Doxygen
1.8.16.