- Jan 10, 2009
-
-
Mark Olesen authored
- can use 'XX.empty()' instead of 'XX.size() == 0', 'XX.size() < 1' or 'XX.size() <= 0' or for simpler coding. It also has the same number of characters as '!XX.size()' and /might/ be more readable - many size checking had 'XX.size() > 0', 'XX.size() != 0', or 'XX.size() >= 1' when a simple 'XX.size()' suffices
-
Mark Olesen authored
-
Mark Olesen authored
-
- Jan 09, 2009
-
-
Mark Olesen authored
- string doesn't use any debug info, remove it - restructured the macros to add in NoDebug macro versions to className, typeInfo. Might be helpful with tackling the globals bootstrapping issue. - HashTableName + StaticHashTableName - avoid lookup of debug switch when FULLDEBUG is not defined
-
Mark Olesen authored
-
Mark Olesen authored
-
Mark Olesen authored
-
-
Mark Olesen authored
-
Mark Olesen authored
-
Mark Olesen authored
- avoids problems with finding files based on FOAMversion (reported by Mattijs)
-
Mark Olesen authored
-
- Jan 08, 2009
-
-
Mark Olesen authored
- Problem: changing between OpenFOAM versions with different WM_PROJECT_INST_DIR paths would leave the old paths in the env vars. - TODO: etc/cshrc is rougned out, but needs work on the corresponding if-statement
-
-
henry authored
-
Mark Olesen authored
-
Mark Olesen authored
-
- Jan 07, 2009
-
-
Mark Olesen authored
-
Mark Olesen authored
-
- Jan 06, 2009
- Jan 05, 2009
- Dec 31, 2008
-
-
Mark Olesen authored
-
- Jan 07, 2009
-
-
Mark Olesen authored
- motivation: we could probably reuse the Switch::asBool() within boolIO.C ... and possibly make Switch is-a bool and has-a word (or has-a enum for the word) for reuse with nicer output values for bool
-
Mark Olesen authored
Conflicts: src/OpenFOAM/db/IOstreams/Pstreams/IPstream.C src/OpenFOAM/db/IOstreams/Pstreams/OPstream.C
-
- Jan 05, 2009
-
-
Mark Olesen authored
- we can now use a list of words/regexp for filtering/selecting ... the first results: cellTable/boundaryRegion
-
Mark Olesen authored
regExp: - added optional ignoreCase for constructor. - the compile() methods is now exposed as set(...) method with an optional ignoreCase argument. Not currently much use for the other regex compile flags though. The set() method can be used directly instead of the operator=() assignment. keyType + wordRe: - it's not clear that any particular characters are valid/invalid (compared to string or word), so just drop the valid(char) method for now wordRe: - a bool doesn't suffice, added enum compOption (compile-option) - most constructors now have a compOption. In *all* cases it defaults to LITERAL - ie, the same behaviour for std::string and Foam::string - added set(...) methods that do much the same as operator=(...), but the compOption can be specified. In all cases, it defaults to DETECT. In Summary By default the constructors will generally preserve the argument as string literal and the assignment operators will use the wordRe::DETECT compOption to scan the string for regular expression meta characters and/or invalid word characters and react accordingly. The exceptions are when constructing/assigning from another Foam::wordRe (preserve the same type) or from a Foam::word (always literal).
-
Mark Olesen authored
- The capitalization is consistent with most other template classes, but more importantly frees up xfer() for use as method name without needing special treatment to avoid ambiguities. It seems reasonable to have different names for transfer(...) and xfer() methods, since the transfer is occuring in different directions. The xfer() method can thus replace the recently introduced zero-parameter transfer() methods. Other name candidates (eg, yield, release, etc.) were deemed too abstract.
-
Mark Olesen authored
- match() only does a full match - find() and search() do partial matches search() is similar to the name coming into C++ TR1
-
- Jan 03, 2009
-
-
Mark Olesen authored
- a possible future replacement for keyType, but the immediate use is the wordReList for grepping through other lists. - note that the argList treatment of '(' ... ')' yields quoted strings, which we can use for building a wordReList minor cleanup of regExp class - constructor from std::string, match std::string and operator=(std::string&) rely on automatic conversion to Foam::string - ditch partialMatch with sub-groups, it doesn't make much sense
-