- Jan 26, 2018
-
-
Mark OLESEN authored
- use std::reverse_iterator adaptors, avoid the array-bounds warning - use pointer arithmetic instead of dereferencing the internal array - adjust logic to use 'operator<' instead of 'operator>' in sorting. This creates less work when making other classes sortable.
-
- Jan 25, 2018
-
-
Mark OLESEN authored
- the transfer method was previously a copy - use std::reverse_iterator adaptors in FixedList This greatly reduces the amount of code and now avoids the array-bounds warning for FixedList::rend() - use pointer arithmetic instead of dereferencing the internal array
-
Mark OLESEN authored
-
Mark OLESEN authored
- without these will use the normal move construct + move assign. This is similarly efficient, but avoids the inadvertently having the incorrect Swap being used for derived classes. STYLE: remove unused xfer methods for HashTable, HashSet - unneeded since move construct and move assignment are possible
-
Mark OLESEN authored
- can stop producing content when the target number of entries has been reached. - change return type to labelList instead an Xfer container. This allows return-value-optimization and avoids a surrounding allocation. This potentially breaks existing code. - make PackedList and PackedBoolList moveable. Drop xfer wrappers.
-
- Jan 23, 2018
-
-
Mark OLESEN authored
-
- Jan 09, 2018
-
-
Mark OLESEN authored
- rationalize iterators, reduce code duplication, improve assignment behaviour, moveable construct and assignment.
-
- Nov 27, 2017
-
-
Mark OLESEN authored
- support move construct/assignment for linked-lists themselves and when moving into a 'normal' list - better consistency with begin/end signatures and the various iterators. - for indirect linked-lists, provide iterator access to the underlying data element address: iter.get() vs &(iter()) - add standard '->' indirection for iterators (as per normal STL definitions)
-
- 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
- Feb 09, 2018
-
-
Mark OLESEN authored
-
Mark OLESEN authored
- more consistent with STL practices for function classes. - string::hash function class now operates on std::string rather than Foam::string since we have now avoided inadvertent use of string conversion from int in more places.
-
Mark OLESEN authored
- Eg instead of using labelHashSet, used HashSet<label> which uses the string::hash for hashing. Other places inadvertently using the string::hash instead of Hash<label> for hashing. STYLE: use Map<..> instead of HashTable<.., label, Hash<label>> - reduces clutter
-
- Feb 08, 2018
-
-
Mark OLESEN authored
- reduces some ambiguity and clarifies the expected output and behaviour. STYLE: reduce some automatic conversions of char to string
-
Mark OLESEN authored
- avoid confusion by using HashTable::lookup(key, deflt) explicitly instead of allowing an operator() version.
-
Mark OLESEN authored
- add copy construct from UList - remove copy construct from dissimilar types. This templated constructor was too generous in what it accepted. For the special cases where a copy constructor is required with a change in the data type, now use the createList factory method, which accepts a unary operator. Eg, auto scalars = scalarList::createList ( labels, [](const label& val){ return 1.5*val; } );
-
- Feb 07, 2018
-
-
mattijs authored
-