- 12 Mar, 2009 1 commit
-
-
mattijs authored
-
- 27 Feb, 2009 1 commit
-
-
Mark Olesen authored
- Hash returns unsigned - FixedList templated on unsigned int - include uLabel.H in UList, HashTable etc. so the output function is know throughout
-
- 06 Feb, 2009 1 commit
-
-
Mark Olesen authored
- OSspecific: chmod() -> chMod(), even although it's not used anywhere - ListOps get subset() and inplaceSubset() templated on BoolListType - added UList<bool>::operator[](..) const specialization. Returns false (actually pTraits<bool>::zero) for out-of-range elements. This lets us use List<bool> with lazy evaluation and no noticeable change in performance. - use rcIndex() and fcIndex() wherever possible. Could check if branching or modulus is faster for fcIndex(). - UList and FixedList get 'const T* cdata() const' and 'T* data()' members. Similar to the STL front() and std::string::data() methods, they return a pointer to the first element without needing to write '&myList[0]', recast begin() or violate const-ness.
-
- 20 Jan, 2009 1 commit
-
-
Mark Olesen authored
- added STL-compatible resize() method. Should this be the primary entry point? - made [DS]LListBase end iterators private
-
- 16 Jan, 2009 1 commit
-
-
Mark Olesen authored
- uniform use of reinterpret_cast<foo*>(0) instead of reinterpret_cast<foo*>(NULL) - make all static null() members inline since they are really only a cast: "*reinterpret_cast<foo*>(0)"
-
- 05 Jan, 2009 1 commit
-
-
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.
-
- 02 Jan, 2009 1 commit
-
-
Mark Olesen authored
- this should provide a slightly more naturally means to using transfer constructors, for example labelList list2(list1.transfer()); vs. labelList list2(xferMove(list1)); - returns a plain list where appropriate (eg, DynamicList, SortableList) for example labelList list2(dynList1.transfer()); vs. labelList list2(xferMoveTo<labelList>(dynList1));
-
- 31 Dec, 2008 1 commit
-
-
Mark Olesen authored
-
- 29 Nov, 2008 1 commit
-
-
Mark Olesen authored
- using SizeInc to define the granularity in the SizeMult=0 needed?
-
- 23 Nov, 2008 1 commit
-
-
Mark Olesen authored
-
- 07 Nov, 2008 1 commit
-
-
Mark Olesen authored
-
- 21 Oct, 2008 1 commit
-
-
mattijs authored
-
- 20 Oct, 2008 1 commit
-
-
Mark Olesen authored
- shrink() should now correctly actually shrink - List::transfer(DynamicList&) invokes shrink() before transferring contents: otherwise the ununsed allocated space is never recovered until much, much later. - DynamicList::transfer(List&) no longer throws a FatalError when transferring in a smaller list. The original list contents are getting tossed away anyhow!
-
- 17 Oct, 2008 1 commit
-
-
Mark Olesen authored
- removed operator* in favour of operator() for consistency with tmp class. The previous use of operator() for const casting didn't work anyhow due to template confusion. - added xferCopy(), xferMove() and xferTmp() template functions instead - preliminary changes to IOobjects and Fields for xfer
-
- 10 Oct, 2008 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
usage of the public 'label& List::size()'. IMO this method is much too dangerous to leave public - the different signature is needed to avoid confusing the compiler.
-
- 09 Oct, 2008 1 commit
-
-
Mark Olesen authored
-
- 06 Oct, 2008 1 commit
-
-
Mark Olesen authored
-
- 23 Sep, 2008 1 commit
-
-
Mark Olesen authored
-
- 17 Sep, 2008 1 commit
-
-
mattijs authored
-
- 10 Sep, 2008 1 commit
-
-
mattijs authored
-
- 25 Jun, 2008 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
-
- 25 May, 2008 1 commit
-
-
henry authored
because I failed to work out how to merge Mark's stuff -- HELP!!!
-
- 08 May, 2008 1 commit
-
-
Mark Olesen authored
-
- 15 Apr, 2008 1 commit
-
-
OpenFOAM-admin authored
-