ENH: dummy I/O for nullObject, additional null subclass for zero/one

- the zero::null and one::null sub-classes add an additional null
  output adapter.

  The function of the nil class (special-purpose class only used for
  HashSet) is now taken by zero::null.
This commit is contained in:
Mark Olesen
2017-10-31 10:54:17 +01:00
parent c5344c3161
commit 930d6dcaf2
8 changed files with 192 additions and 129 deletions

View File

@ -61,6 +61,10 @@ int main(int argc, char *argv[])
nil x;
cout<<"nil:" << sizeof(x) << nl;
}
{
zero x;
cout<<"zero:" << sizeof(x) << nl;
}
{
bool x(0);
cout<<"bool:" << sizeof(x) << nl;
@ -93,6 +97,10 @@ int main(int argc, char *argv[])
cout<<"double:" << sizeof(double) << nl;
}
{
cout<<"string:" << sizeof(Foam::string) << nl;
}
Info << "---\nEnd\n" << endl;