- Mar 06, 2018
-
-
Mark OLESEN authored
- relocated HashSetPlusEqOp and HashTablePlusEqOp to HashSetOps::plusEqOp and HashTableOps::plusEqOp, respectively - additional functions for converting between a labelHashSet and a PackedBoolList or List<bool>: From lists selections to labelHashSet indices: HashSetOps::used(const PackedBoolList&); HashSetOps::used(const UList<bool>&); From labelHashSet to list forms: PackedBoolList bitset(const labelHashSet&); List<bool> bools(const labelHashSet&);
-
- Mar 01, 2018
-
-
Mark OLESEN authored
- relocated ListAppendEqOp and ListUniqueEqOp to ListOps::appendEqOp and ListOps::UniqueEqOp, respectively for better code isolation and documentation of purpose. - relocated setValues to ListOps::setValue() with many more alternative selectors possible - relocated createWithValues to ListOps::createWithValue for better code isolation. The default initialization value is itself now a default parameter, which allow for less typing. Negative indices in the locations to set are now silently ignored, which makes it possible to use an oldToNew mapping that includes negative indices. - additional ListOps::createWithValue taking a single position to set, available both in copy assign and move assign versions. Since a negative index is ignored, it is possible to combine with the output of List::find() etc. STYLE: changes for PackedList - code simplication in the PackedList iterators, including dropping the unused operator() on iterators, which is not available in plain list versions either. - improved sizing for PackedBoolList creation from a labelUList. ENH: additional List constructors, for handling single element list. - can assist in reducing constructor ambiguity, but can also helps memory optimization when creating a single element list. For example, labelListList labels(one(), identity(mesh.nFaces()));
-
- Mar 02, 2018
-
-
Mark OLESEN authored
-
Mark OLESEN authored
-
- Mar 03, 2018
-
-
Mark OLESEN authored
- rationalized some method naming. Eg, c_str() instead of asText()
-
- Mar 02, 2018
-
-
Mark OLESEN authored
- constexpr, noexcept on various bits - addition of a 'one::minus' class that returns '-1' instead of '1'. There are no additional operations defined for this class, but it can be used in various places to signal alternative behaviour such as "initialize to a negative or other invalid value"
-
- Mar 04, 2018
-
-
Mark OLESEN authored
- This class is largely a pre-C++11 holdover, prior to having movable references. - align internals with autoPtr instead of always unconditionally allocating memory. The valid() method can be used to check for a null pointer. - Consolidate into a single file, in anticipation of future removal.
-
- Feb 28, 2018
-
-
Mark OLESEN authored
- rvalue() is a (transitional) means of converting Xfer content to a reference for move construct, move assign semantics. - valid() method for consistency with autoPtr and tmp classes
-
- Feb 27, 2018
-
-
Mark OLESEN authored
STYLE: simplified output logic, reduced duplicate code in CompactIOList
-
- Feb 22, 2018
-
-
Mark OLESEN authored
-
- Feb 28, 2018
-
-
Mark OLESEN authored
- now also handles negative indices without issue. This increases its robustness for predicate type of use.
-
Mark OLESEN authored
-
- Feb 23, 2018
-
-
sergio authored
-
sergio authored
-
Andrew Heather authored
several improvements for linked-lists See merge request OpenFOAM-plus!177
-
- Feb 22, 2018
-
-
Mark OLESEN authored
- deprecated MAR-2017 subset(const UList<T>& select, const T& value, const ListType&); inplaceSubset(const UList<T>& select, const T& value, ListType&); The subsetList/inplaceSubsetList variants with a unary predicate provide more flexible and robuster solutions. - deprecated MAR-2017 initList(const T[mRows]); initListList(const T[mRows][nColumns]); Required prior to the addition of constructors with std::initializer_list
-
Mark OLESEN authored
- the wordHashSet typedef is always available when HashSet has been included. - use default HashTable key (word) instead of explicitly mentioning it
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
* For most cases, this conversion would be largely unintentional and also less efficient. If the regex is desirable, the caller should invoke it explicitly. For example, findStrings(regExp(str), listOfStrings); Or use one of the keyType, wordRe, wordRes variants instead. If string is to be used as a plain (non-regex) matcher, this can be directly invoked findMatchingStrings(str, listOfStrings); or using the ListOps instead: findIndices(listOfStrings, str); * provide function interfaces for keyType.
-
- Feb 21, 2018
-
-
Mark OLESEN authored
- subsetList, inplaceSubsetList with optional inverted logic. - use moveable elements where possible. - allow optional starting offset for the identity global function. Eg, 'identity(10, start)' vs 'identity(10) + start'
-
Mark OLESEN authored
-
Mark OLESEN authored
- this permits direct storage of a list with additional matcher capabilities - provide wordRes::matcher class for similar behaviour as previously
-
- Feb 20, 2018
-
-
Mark OLESEN authored
-
Mark OLESEN authored
-
Mark OLESEN authored
Eg, -entry boundaryField/wall2/q vs. boundaryField.wall2.q - remove unneeded quoting when calling foamDictionary
-
Mark OLESEN authored
- now replaced 'if ! isTest' with 'if notTest' for most cases.
-
Mark OLESEN authored
-
Mark OLESEN authored
- should have been limited to non-processor patches only
-
Mark OLESEN authored
- returns the number of non-processorPolyPatch patches, which is invariant across all processors.
-
- Feb 19, 2018
-
-
Mark OLESEN authored
- remove writeLagrangianCoordinates as InfoSwitch, since this is something that a regular user should not be able to disable.
-
Mark OLESEN authored
-
Mark OLESEN authored
-
- Feb 21, 2018
- Feb 15, 2018
-
-
mattijs authored
-
- Feb 14, 2018