- 09 Aug, 2018 1 commit
-
-
Andrew Heather authored
-
- 08 Aug, 2018 1 commit
-
-
Mark OLESEN authored
- there were previously no hashing mechanisms for lists so they would fall back to the definition for primitives and hash the memory location of the allocated List object. - provide a UList::Hash<> sub-class for inheritance, and also a global specialization for UList<T>, List<T> such that the hash value for List<List<T>> cascades properly. - provide similar function in triFace to ensure that it remains similar in behaviour to face. - added SymmHash to Pair, for use when order is unimportant. STYLE: use string::hash() more consistently - no particular reason to use Hash<word>() which forwards to string::hash() anyhow
-
- 30 May, 2018 1 commit
-
-
Mark OLESEN authored
- resolve in favour of "inline explicit", which had marginally more uses and provides consistent prefixing for inline methods.
-
- 19 Mar, 2018 1 commit
-
-
Mark OLESEN authored
- can assist the compiler in producing tighter code.
-
- 26 Feb, 2018 1 commit
-
-
Mark OLESEN authored
-
- 28 Feb, 2018 1 commit
-
-
Mark OLESEN authored
- now also handles negative indices without issue. This increases its robustness for predicate type of use.
-
- 09 Feb, 2018 1 commit
-
-
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.
-
- 25 Jan, 2018 1 commit
-
-
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
-
- 27 Nov, 2017 1 commit
-
-
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)
-
- 04 Nov, 2017 1 commit
-
-
Mark OLESEN authored
-
- 29 Oct, 2017 1 commit
-
-
Mark OLESEN authored
- consistent with C++ STL conventions, the reverse iterators should use operator++ to transit the list from rbegin() to rend(). The previous implementation used raw pointers, which meant that they had the opposite behaviour: operator-- to transit from rbegin() to rend(). The updated version only has operator++ defined, thus the compiler should catch any possible instances where people were using the old (incorrect) versions. - updated forAllReverseIters() and forAllConstReverseIters() macros to be consistent with new implementation and with C++ STL conventions.
-
- 20 Oct, 2017 1 commit
-
-
Mark OLESEN authored
- low-level beginRaw(), writeRaw(), endRaw() methods. These can be used to directly add '()' decorators for serial output or prepare/cleanup parallel buffers. Used, for example, when outputting indirect lists in binary to avoid.
-
- 20 Sep, 2017 2 commits
-
-
Mark OLESEN authored
- improve functional compatibility with DynList (remove methods) * eg, remove an element from any position in a DynamicList * reduce the number of template parameters * remove/subset regions of DynamicList - propagate Swap template specializations for lists, hashtables - move construct/assignment to various containers. - add find/found methods for FixedList and UList for a more succinct (and clearer?) usage than the equivalent global findIndex() function. - simplify List_FOR_ALL loops
-
Mark OLESEN authored
-
- 26 May, 2017 1 commit
-
-
Mark OLESEN authored
-
- 14 May, 2017 1 commit
-
-
Mark OLESEN authored
- std::initializer_list has its own size() method, so no need to use std::distance. STYLE/BUG: use separate iterator de-reference and increment in List - avoids unnecessary copying of iterators, and avoids any potentially odd behaviour with the combination with incrementing. ENH: support construct from iterator pair for DynamicList, SortableList
-
- 29 Apr, 2017 1 commit
-
-
Mark OLESEN authored
- more hash-like methods. Eg, insert/erase via lists, clear(), empty(),... - minVertex(), maxVertex() to return the smallest/largest label used - improved documentation, more clarification about where/how negative point labels are treated.
-
- 27 Apr, 2017 1 commit
-
-
Mark OLESEN authored
- performance improvement. Noticed while examining issue #458
-
- 26 Apr, 2017 1 commit
-
-
Mark OLESEN authored
- cannot use comparison of list sizes. Okay for UList, but not here. STYLE: - don't need two iterators for the '<' comparison, can just access internal storage directly
-
- 21 Feb, 2017 1 commit
-
-
mark authored
- remove some spurious regExp includes
-
- 10 Feb, 2017 1 commit
-
-
Mark Olesen authored
- Introduce writeList(Ostream&, label) method in various List classes to provide more flexibility and avoid hard-coded limits when deciding if a list is too long and should be broken up into multiple lines (ASCII only). - The old hard-code limit (10) is retained in the operator<< versions - This functionality is wrapped in the FlatOutput output adapter class and directly accessible via the 'flatOutput()' function. Eg, #include "ListOps.H" Info<< "methods: " << flatOutput(myLongList) << endl; // OR Info<< "methods: "; myLongList.writeList(os) << endl;
-
- 08 Feb, 2017 2 commits
-
-
Mark Olesen authored
- constness on local variables, pre-increment on loops, parameter names
-
Mark Olesen authored
- outputs compound tags etc. Should only be called by itself or by a derived class.
-
- 12 Aug, 2016 1 commit
-
-
Henry Weller authored
SLList: now a C++11 template alias rather than a wrapper-class.
-
- 11 Aug, 2016 1 commit
-
-
Henry Weller authored
-
- 05 Aug, 2016 1 commit
-
-
Henry Weller authored
FixedList: Add constructors from iterators and C++11 initializer_list using C++11 constructor delegation
-
- 03 Aug, 2016 1 commit
-
-
Henry Weller authored
Resolves bug-report http://bugs.openfoam.org/view.php?id=2178
-
- 01 Jul, 2016 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
-
- 26 Apr, 2016 3 commits
-
-
Henry Weller authored
-
Henry Weller authored
This reverts commit 3cfc54ba.
-
Henry Weller authored
-
- 28 Feb, 2016 1 commit
-
-
Henry Weller authored
-
- 10 Jan, 2016 2 commits
-
-
Henry Weller authored
-
Henry Weller authored
-
- 10 Nov, 2015 1 commit
-
-
Henry Weller authored
Avoids the clutter and maintenance effort associated with providing the function signature string.
-
- 08 Nov, 2015 1 commit
-
-
Henry Weller authored
Avoids the clutter and maintenance effort associated with providing the function signature string.
-
- 15 Jul, 2015 1 commit
-
-
Henry Weller authored
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1787
-
- 30 Jun, 2015 1 commit
-
- 15 Dec, 2014 1 commit
-
-
Henry authored
-