Mark Olesen
660f3e5492
ENH: cleanup autoPtr class (issue #639 )
...
Improve alignment of its behaviour with std::unique_ptr
- element_type typedef
- release() method - identical to ptr() method
- get() method to get the pointer without checking and without releasing it.
- operator*() for dereferencing
Method name changes
- renamed rawPtr() to get()
- renamed rawRef() to ref(), removed unused const version.
Removed methods/operators
- assignment from a raw pointer was deleted (was rarely used).
Can be convenient, but uncontrolled and potentially unsafe.
Do allow assignment from a literal nullptr though, since this
can never leak (and also corresponds to the unique_ptr API).
Additional methods
- clone() method: forwards to the clone() method of the underlying
data object with argument forwarding.
- reset(autoPtr&&) as an alternative to operator=(autoPtr&&)
STYLE: avoid implicit conversion from autoPtr to object type in many places
- existing implementation has the following:
operator const T&() const { return operator*(); }
which means that the following code works:
autoPtr<mapPolyMesh> map = ...;
updateMesh(*map); // OK: explicit dereferencing
updateMesh(map()); // OK: explicit dereferencing
updateMesh(map); // OK: implicit dereferencing
for clarity it may preferable to avoid the implicit dereferencing
- prefer operator* to operator() when deferenced a return value
so it is clearer that a pointer is involve and not a function call
etc Eg, return *meshPtr_; vs. return meshPtr_();
2018-02-26 12:00:00 +01:00
Andrew Heather
2e9bead519
MRG: merged develop line back into integration branch
2017-05-18 11:11:12 +01:00
Andrew Heather
91b90da4f3
Integrated Foundation code to commit 104aac5
2017-05-17 16:35:18 +01:00
Andrew Heather
7f0cc0045d
ENH: Random numbers - updated dependent code from change cachedRandom->Random class
2017-04-28 09:15:52 +01:00
Henry Weller
c164e91b0a
surfaceFilmModels::perturbedTemperatureDependentContactAngleForce: New contact angle model
...
Combining a Function1 temperature dependency with a distributionModel stochastic
perturbation.
2017-04-04 00:09:38 +01:00
Andrew Heather
436ec1cf1f
MRG: Integrated Foundation code to commit ba4dbed
2017-03-23 12:11:49 +00:00
Henry Weller
8632583934
Removed trailing blank lines
...
Resolves bug-report https://bugs.openfoam.org/view.php?id=2438
2017-01-19 20:17:47 +00:00
Andrew Heather
9fbd612672
GIT: Initial state after latest Foundation merge
2016-09-20 14:49:08 +01:00
Henry Weller
58f905ff70
C++11: Replaced the C NULL with the safer C++11 nullptr
...
Requires gcc version 4.7 or higher
2016-08-05 17:19:38 +01:00
Andrew Heather
efb39a8790
ENH: (further) Doxygen documentation updates for module support
2016-06-27 20:34:19 +01:00
Andrew Heather
f0c3e8d599
STYLE: Updated version to 'plus'
2015-12-22 23:14:17 +00:00
Andrew Heather
8837a89237
STYLE: Updated links from openfoam.org to openfoam.com
2015-12-09 15:03:05 +00:00
Henry
9cd9a9f364
ddtScheme::fvcDdtPhiCoeff: Zero ddtCorr on AMIs
...
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1421
2015-03-24 15:23:01 +00:00
OpenFOAM-admin
9fb26d59d3
GIT: Repo update
2014-12-11 08:35:10 +00:00
OpenFOAM-admin
fbb3ddf2c4
Updated for release 2.3.0
2014-02-17 10:21:46 +00:00
andy
eaaec5c414
BUG: Updated pdfDict example - mantis #754
2013-03-14 08:59:41 +00:00
andy
0ac50306aa
BUG: Updated pdfDict example - mantis #754
2013-03-13 14:46:17 +00:00
andy
951c8436aa
ENH: Applying Gijs' patch: Update header documentation for utilities
2013-02-21 10:54:34 +00:00
Henry
c2dd153a14
Copyright transfered to the OpenFOAM Foundation
2011-08-14 12:17:30 +01:00
OpenFOAM-admin
c720299876
ENH: Reverted back to version dev
2011-06-17 10:08:20 +01:00
mattijs
4f47ff0219
STYLE: dictionaries: update version number
2011-06-10 17:22:56 +01:00
mattijs
acd7554ae0
STYLE: dictionaries in $FOAM_UTILITIES: header
2011-04-06 19:15:15 +01:00
andy
6c1e58605b
ENH: moved thermo/pdfs->lagrangian/distributionModels
2011-02-02 09:28:44 +00:00
andy
eaef8d482b
STYLE: Updated 1991 start copyright year to 2004
2011-01-14 16:08:00 +00:00
andy
099cc39e2e
Revert "STYLE: 2011 copyright date."
...
This reverts commit b18f6cc1ce
.
2011-01-05 18:24:29 +00:00
graham
b18f6cc1ce
STYLE: 2011 copyright date.
2011-01-05 11:14:26 +00:00
andy
ef974adf6b
ENH: Updated pdfPlot utility
2010-10-20 16:07:11 +01:00
henry
ccfb6e32a6
Corrected headers.
2010-06-23 16:54:54 +01:00
andy
28b1a9e2c6
Merge branch 'olesenm'
2010-06-03 10:25:03 +01:00
mattijs
c51a2b0f63
ENH: have MUST_READ_IF_MODIFIED on IOdictionary construction
2010-06-02 09:48:07 +01:00
Mark Olesen
895a077cb1
STYLE: fixup some dictionary headers
2010-05-18 11:38:07 +02:00
Mark Olesen
3213388ddf
Merge remote branch 'OpenCFD/master' into olesenm
2010-03-30 09:11:52 +02:00
andy
4ba2681dd6
ENH: Updated pdfPlot utility
...
- pdf updated - needs to be inside pdfs namespace
- added writeData option - write individual data/samples to file
2010-03-29 17:34:50 +01:00
Mark Olesen
d29c438657
STYLE: use url for FSF license instead of postal address, switch to GPL v3
2010-03-29 14:07:56 +02:00
Mark Olesen
fa93ce8cd7
coding style adherence
...
- markup codingStyleGuide.org examples so they actually indent correctly
- use 'Info<<' as per codingStyleGuide instead of 'Info <<'
2009-11-27 15:39:14 +01:00
andy
7eb4019877
improved pdfPlot utility
2009-08-25 17:57:06 +01:00
Chris Greenshields
1bfa912781
Modified more Description entries in utilities for documenting purposes
2009-07-22 15:51:53 +01:00
Mark Olesen
28b200bcd9
update copyrights for 2009
2008-12-31 19:01:56 +01:00
Mark Olesen
02cabc3cf2
updated Copyright (C) \d+-2008 OpenCFD Ltd.
2008-06-25 15:01:46 +02:00
OpenFOAM-admin
3170c7c0c9
Creation of OpenFOAM-dev repository 15/04/2008
2008-04-15 18:56:58 +01:00