- 06 Feb, 2019 1 commit
-
-
Mark Olesen authored
- forwards to the underlying HashTable erase, but frees things owned by the registry as well (ie, performs a checkOut)
-
- 05 Feb, 2019 1 commit
-
-
Andrew Heather authored
-
- 31 Jan, 2019 1 commit
-
-
Mark Olesen authored
-
- 28 Jan, 2019 2 commits
-
-
Mark Olesen authored
Eg, #define FOAM_CONFIGURED_PROJECT_ETC "/usr/share/openfoam/etc" This provides some easy to file patching locations, but is not yet integrated in the build system at all.
-
Mark Olesen authored
- in some circumstances we need to pass a bool value upwards to the caller and know if the true/false value was set based on real input or is a default value. Eg, in the object::read() we might normally have enabled_(dict.readIfPresent(key, true)); but would lose information about why the value is true/false. We can change that by using enabled_(dict.readIfPresent<Switch>(key, Switch::DEFAULT_ON)); After which we can use this information is testing. if ( child.enabled().nonDefault() ? child.enabled() : parent.enabled() ) { ... } And thus enable output if the parent requested it explicitly or by default and it has not been explicitly disabled in the child. No difference when testing as a bool and the text representation of DEFAULT_ON / DEFAULT_OFF will simply be "true" / "false". ENH: add construction of Switch from dictionary (similar to Enum)
-
- 25 Jan, 2019 6 commits
-
-
Mark Olesen authored
- Can result in inadvertent conversions where the user should really know or check if the pointer is valid prior to using. - Still have several places to fix that are using the deprecated copy construct and copy assignment
-
Mark Olesen authored
- workaround for some old compilers many years ago, but no longer relevant
-
Mark Olesen authored
-
Mark Olesen authored
- can also be used for other purposes. Eg, if (ListOps::found(list, matcher)) { ... } vs. if (!findStrings(matcher, list).empty()) { ... }
-
Mark Olesen authored
- add compile-time detection of deprecated findIndex() function - replace occurrences of findIndex() with the equivalent container method
-
Mark Olesen authored
- simply a functionObject with an additional Time reference, which is a combination frequently used by concrete functionObjects
-
- 24 Jan, 2019 2 commits
-
-
Mark Olesen authored
- use for-range when iterating - dictionary access/search methods - autoPtr for memory management
-
Mark Olesen authored
-
- 29 Jan, 2019 1 commit
-
-
Mark Olesen authored
- assignment operators return a value, for consistency with bool. - partial revert of DEFAULT_TRUE, DEFAULT_FALSE, to reduce complexity.
-
- 23 Jan, 2019 4 commits
-
-
Mark Olesen authored
- now free anything owned by the registry when doing a clear. - the myriad of other ways to remove items (and potentially leaking) have not yet been addressed: * set, erase, retain, filterKeys, filterValues, filterEntries
-
Mark Olesen authored
- checkIn() was incorrectly conditional on the register state of the source object. Partial patch from .org commit 6dc48b62d948
-
Mark Olesen authored
-
Mark Olesen authored
-
- 21 Jan, 2019 1 commit
-
-
Mark Olesen authored
- moves any nullptr to the end of the list where they can be eliminated in a second step with resize()
-
- 18 Jan, 2019 1 commit
-
-
Mark Olesen authored
-
- 16 Jan, 2019 4 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- when combining lists in processor order this simplifies code and reduces memory overhead. Write this: ---- labelList collected; const globalIndex sizing(input.size()); sizing.gather(input, collected); ---- OR ---- labelList collected; globalIndex::gatherOp(input, collected); ---- Instead of this: ---- labelList collected; List<labelList> scratch(Pstream::nProcs()); scratch[Pstream::myProcNo()] = input; Pstream::gatherList(scratch); if (Pstream::master()) { collected = ListListOps::combine<labelList> ( scratch, accessOp<labelList>() ); } scratch.clear(); ----
-
Mark Olesen authored
- remove unused and deprecated emptyList() casting function. This function is disllowed by many modern compilers and is no longer used within OpenFOAM - was deprecated 2018-07.
-
Mark Olesen authored
-
- 10 Jan, 2019 6 commits
-
-
Mark Olesen authored
- use forwarding tmp factory methods, auto types
-
Mark Olesen authored
- use forwarding tmp factory methods, auto types
-
Mark Olesen authored
- use forwarding tmp factory methods, auto types
-
Mark Olesen authored
- use forwarding tmp factory methods, auto types
-
Mark Olesen authored
- use forwarding tmp factory methods, auto types
-
Mark Olesen authored
- use forwarding tmp factory methods
-
- 15 Jan, 2019 1 commit
-
-
Mark Olesen authored
- can still test as a bool or use to 'peek' at the content.
-
- 14 Jan, 2019 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
- The dummy accessOp can be useful outside of ListListOps. - New emptyOp for using as a filter predicate (for example).
-
- 10 Jan, 2019 1 commit
-
-
Mark Olesen authored
-
- 11 Jan, 2019 2 commits
-
-
Mark Olesen authored
- this protected method was previously used directly for the list output and had the check for 2 or more elements in it. Now simply test the List content and handle the output preference separately.
-
Mark Olesen authored
- missing verbatim/endverbatim markers, missing "Foam::" prefix, typos
-
- 10 Jan, 2019 4 commits
-
-
Mark Olesen authored
- emits the notes description only
-
Mark Olesen authored
- this class really should not be used at all anymore. Add a message so people recognize can find any occurrences.
-
Mark Olesen authored
- introduced a ListPolicy details to make the transition between a short list (space separated) and a long list (newline separated) more configurable. We suppress line breaks for commonly used types that often have short content: (word, wordRes, keyType).
-
Mark Olesen authored
-