Commit 80499b9c authored by Andrew Heather's avatar Andrew Heather
Browse files
parents 6e07a151 850d94bc
......@@ -86,6 +86,7 @@ class dictionary
//- Parent dictionary
const dictionary& parent_;
public:
//- Read dictionary from Istream
......@@ -181,7 +182,10 @@ public:
//- Find and return an entry data stream pointer if present
// otherwise return NULL.
// If recursive search parent dictionaries
const entry* lookupEntryPtr(const word&, bool recursive=false) const;
const entry* lookupEntryPtr
(
const word&, bool recursive=false
) const;
//- Find and return an entry data stream pointer for manipulation
// if present otherwise return NULL.
......@@ -196,7 +200,8 @@ public:
// If recursive search parent dictionaries
ITstream& lookup(const word&, bool recursive=false) const;
//- Find and return a T, if not found return the given default value
//- Find and return a T,
// if not found return the given default value
// If recursive search parent dictionaries
template<class T>
T lookupOrDefault
......@@ -206,8 +211,9 @@ public:
bool recursive=false
) const;
//- Find and return a T, if not found return the given default value,
// and add to dictionary. If recursive search parent dictionaries
//- Find and return a T, if not found return the given
// default value, and add to dictionary.
// If recursive search parent dictionaries
template<class T>
T lookupOrAddDefault
(
......
......@@ -46,6 +46,7 @@ const Foam::dimensionSet Foam::dimDensity(1, -3, 0, 0, 0, 0, 0);
const Foam::dimensionSet Foam::dimForce(1, 1, -2, 0, 0, 0, 0);
const Foam::dimensionSet Foam::dimVelocity(0, 1, -1, 0, 0, 0, 0);
const Foam::dimensionSet Foam::dimAcceleration(0, 1, -2, 0, 0, 0, 0);
const Foam::dimensionSet Foam::dimPressure(1, -1, -2, 0, 0, 0, 0);
const Foam::dimensionSet Foam::dimGasConstant(0, 2, -2, -1, 0, 0, 0);
const Foam::dimensionSet Foam::dimSpecificHeatCapacity(0, 2, -2, -1, 0, 0, 0);
......
......@@ -62,6 +62,7 @@ extern const dimensionSet dimDensity;
extern const dimensionSet dimForce;
extern const dimensionSet dimVelocity;
extern const dimensionSet dimAcceleration;
extern const dimensionSet dimPressure;
extern const dimensionSet dimGasConstant;
extern const dimensionSet dimSpecificHeatCapacity;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment