Commit Graph

31 Commits

Author SHA1 Message Date
f115890dba ENH: autoPtr: added reUse flag, improved error message 2013-05-21 14:22:43 +01:00
df20892bf6 Updated headers 2012-10-11 18:10:55 +01:00
41dcf4abfb OpenFOAM: added "transfer" constructor to tmp
Needed for return of tmp argument in "absolute" meshPhi function
2012-10-11 18:10:39 +01:00
c2dd153a14 Copyright transfered to the OpenFOAM Foundation 2011-08-14 12:17:30 +01:00
95d8fd4860 STYLE: Updated copyright dates 2011-05-11 11:34:38 +01:00
c3cb632c24 Documentation: converted javadoc @ to LaTeX style \ in Doxygen code docs 2011-02-08 18:22:00 +00:00
eaef8d482b STYLE: Updated 1991 start copyright year to 2004 2011-01-14 16:08:00 +00:00
099cc39e2e Revert "STYLE: 2011 copyright date."
This reverts commit b18f6cc1ce.
2011-01-05 18:24:29 +00:00
b18f6cc1ce STYLE: 2011 copyright date. 2011-01-05 11:14:26 +00:00
d79237597e STYLE: Fixing code style requirements for all src. 2010-07-28 13:31:46 +01:00
c7267ed9ad STYLE: remove disabled methods from autoPtr
- (have been disabled for more than 1 year)
2010-04-21 15:36:10 +02:00
b6f3bd4c23 STYLE: follow coding guide recommendation for '//- Destructor' 2010-04-12 11:55:52 +02:00
c508b2fe17 STYLE: consistent capitalization of Private/Protected Member Functions in comments 2010-03-30 11:33:42 +02:00
d29c438657 STYLE: use url for FSF license instead of postal address, switch to GPL v3 2010-03-29 14:07:56 +02:00
76c0a7bfb9 STYLE: Minor coding style tweaks 2010-02-03 19:08:18 +00:00
69918f23c5 consistency update
- 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.
2009-02-06 20:43:09 +01:00
246d569c4d consistency update for null pointers
- 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)"
2009-01-16 10:15:49 +01:00
16aaf5b54e autoPtr gets "empty()" method that can be used instead of "! ...valid()" 2009-01-10 10:38:53 +01:00
e5205c8676 minor docu change 2009-01-07 10:52:31 +01:00
19503c93e1 rename xfer<T> class to Xfer<T>
- 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.
2009-01-05 12:30:19 +01:00
28b200bcd9 update copyrights for 2009 2008-12-31 19:01:56 +01:00
5bf78f0e23 autoPtr - removed unneeded const_cast 2008-11-17 08:40:39 +01:00
9a4de95354 made xfer constructors explicit, with trickle down to polyMesh/fvMesh calls 2008-10-27 13:14:07 +01:00
2a3bb0f5c4 autoPtr, tmp cosmetics
- dropped non-const tmp::clear() in favour of the const version
2008-10-24 17:21:02 +02:00
2023ab6e0d added xfer<T>::null() 2008-10-24 10:13:48 +02:00
60d1734564 add xferCopyTo and xferMoveTo functions 2008-10-23 09:56:21 +02:00
91cb6d2912 xfer class modifications:
- 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
2008-10-17 18:27:11 +02:00
cd6e34c8b8 Merge commit 'OpenCFD/master' into merging
Conflicts:

	src/OpenFOAM/containers/misc/xferI.H
	src/OpenFOAM/fields/tmp/refCount.H
	src/OpenFOAM/memory/refCount/refCount.H
	src/OpenFOAM/memory/xfer/xferI.H
	src/finiteVolume/fvMesh/extendedStencil/extendedCentredStencil.C
	src/finiteVolume/fvMesh/extendedStencil/faceStencil/faceEdgeCellStencil.H
2008-10-17 19:55:27 +02:00
3fd4253e45 Reorganised the memory-management classes. 2008-10-16 14:54:08 +01:00
70a38319d6 added xfer::operator->() for easier de-referencing of underlying methods 2008-10-16 14:27:16 +02:00
dffbda287c src/OpenFOAM/memory for holding all the memory management bits 2008-10-14 18:47:27 +02:00