STYLE: make some sampledSurfaces methods protected

- less used bookkeeping/convenience methods that may be phased out
  in the future
This commit is contained in:
Mark Olesen
2019-03-13 17:27:33 +01:00
parent a5a06709f0
commit 0387c477b9
3 changed files with 13 additions and 27 deletions

View File

@ -29,10 +29,8 @@ License
#include "polySurface.H"
#include "mapPolyMesh.H"
#include "stringListOps.H"
#include "volFields.H"
#include "HashOps.H"
#include "PstreamCombineReduceOps.H"
#include "Time.H"
#include "UIndirectList.H"
#include "addToRunTimeSelectionTable.H"

View File

@ -280,7 +280,6 @@ class sampledSurfaces
// \return True if surface existed and was removed
bool removeRegistrySurface(const sampledSurface& s);
//- Store sampled field onto surface registry if it exists
template<class Type, class GeoMeshType>
bool storeRegistryField
@ -291,11 +290,21 @@ class sampledSurfaces
Field<Type>&& values
);
//- Test surfaces for condition
template<class Container, class Predicate>
static bool testAny(const Container& items, const Predicate& pred);
//- Do any surfaces need an update?
virtual bool needsUpdate() const;
//- Mark the surfaces as needing an update.
// Return false if all surfaces were already marked as expired.
virtual bool expire();
//- Update the surfaces as required.
// Return false if no surfaces required an update.
virtual bool update();
//- No copy construct
sampledSurfaces(const sampledSurfaces&) = delete;
@ -336,18 +345,6 @@ public:
// Member Functions
//- Does any of the surfaces need an update?
virtual bool needsUpdate() const;
//- Mark the surfaces as needing an update.
// May also free up unneeded data.
// Return false if all surfaces were already marked as expired.
virtual bool expire();
//- Update the surfaces as required and merge surface points (parallel).
// Return false if no surfaces required an update.
virtual bool update();
//- Set verbosity level
void verbose(const bool verbosity = true);
@ -372,7 +369,7 @@ public:
//- Get merge tolerance
static scalar mergeTol();
//- Set tolerance and return old tolerance
//- Set merge tolerance and return old value
static scalar mergeTol(const scalar tol);
};