- 27 Jan, 2010 1 commit
-
-
mattijs authored
An empty list (m_) has no pointer so cannot be referenced. Instead we now return a null pointer (which is no problem for UList)
-
- 25 Nov, 2009 1 commit
-
-
Mark Olesen authored
- this builds on Mattijs' commit 968f0bbd but with a first() as well. - Added both to FixedList, IndirectList, UIndirectList and *PtrList and since they can certainly be useful there. Did not add to BiIndirectList, since I'm not sure what it should mean there. Did not add to PackedList, since it's not clear how useful they'd be yet in these contexts (and I'm not sure how it would interact with the iterator proxy implementation). - Note: STL defines front() and back() for these methods.
-
- 12 Nov, 2009 1 commit
-
-
mattijs authored
-
- 04 Nov, 2009 1 commit
-
-
mattijs authored
-
- 03 Nov, 2009 1 commit
-
-
mattijs authored
-
- 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)"
-
- 09 Jan, 2009 1 commit
-
-
Mark Olesen authored
-
- 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
-
- 21 Oct, 2008 1 commit
-
-
mattijs authored
-
- 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
-
- 09 Oct, 2008 1 commit
-
-
Mark Olesen authored
-
- 06 Oct, 2008 1 commit
-
-
Mark Olesen authored
-
- 25 Jun, 2008 2 commits
-
-
Mark Olesen authored
-
Mark Olesen authored
-
- 15 Apr, 2008 1 commit
-
-
OpenFOAM-admin authored
-