Skip to content
Snippets Groups Projects
Commit e41cd49d authored by Andrew Heather's avatar Andrew Heather
Browse files

tidying up

parent cc971bb3
Branches
Tags
No related merge requests found
......@@ -62,6 +62,7 @@ class Constant
{
// Private data
//- Constant value
Type value_;
......@@ -91,8 +92,7 @@ public:
//- Destructor
~Constant();
virtual ~Constant();
// Member Functions
......
......@@ -26,6 +26,10 @@ Class
Foam::DataEntry
Description
Top level data entry class for use in dictionaries. Provides a mechanism
to specify a variable as a certain type, e.g. constant or table, and
provide functions to return the (interpolated) value, and integral between
limits.
SourceFiles
DataEntry.C
......@@ -101,16 +105,15 @@ public:
//- Selector
static autoPtr<DataEntry<Type> > New
(
const word& entryName,
const dictionary& dict
);
static autoPtr<DataEntry<Type> > New
(
const word& entryName,
const dictionary& dict
);
//- Destructor
virtual ~DataEntry();
virtual ~DataEntry();
// Member Functions
......
......@@ -42,11 +42,11 @@ Foam::Table<Type>::Table
{
FatalErrorIn
(
"Foam::Table<Type>::Table"
"("
"const word& entryName,"
"const dictionary& dict"
")"
"Foam::Table<Type>::Table\n"
"(\n"
" const word& entryName,\n"
" const dictionary& dict\n"
")\n"
) << "Table is invalid (empty)" << nl
<< exit(FatalError);
}
......
......@@ -84,23 +84,18 @@ class Table
public:
// Runtime type information
//- Runtime type information
TypeName("Table");
// Constructors
//- Construct from dictionary
Table
(
const word& entryName,
const dictionary& dict
);
Table(const word& entryName, const dictionary& dict);
//- Destructor
~Table();
virtual ~Table();
// Member Functions
......
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