From f756537288218f18075b7568a364d3b151664a4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Wed, 25 Apr 2012 12:50:43 +0200 Subject: [PATCH] Moved internal method of WellsManager to private section. --- opm/core/WellsManager.hpp | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/opm/core/WellsManager.hpp b/opm/core/WellsManager.hpp index 755a37d06..31eaba6e1 100644 --- a/opm/core/WellsManager.hpp +++ b/opm/core/WellsManager.hpp @@ -55,6 +55,23 @@ namespace Opm /// \param[in] result The result of a run to conditionsMet on WellCollection void applyControl(const WellControlResult& result); + /// Access the managed Wells. + /// The method is named similarly to c_str() in std::string, + /// to make it clear that we are returning a C-compatible struct. + const Wells* c_wells() const; + + /// Access the well group hierarchy. + const WellCollection& wellCollection() const; + + private: + // Disable copying and assignment. + WellsManager(const WellsManager& other); + WellsManager& operator=(const WellsManager& other); + + // The managed Wells. + Wells* w_; + WellCollection well_collection_; + /// Apply control results for a specific target (OIL, WATER, etc) /// \param[in] exceed_info will for each group name contain all the /// exceed informations for the given mode. @@ -63,21 +80,6 @@ namespace Opm void applyControl(const std::map >& exceed_info, ProductionSpecification::ControlMode mode); - /// Access the managed Wells. - /// The method is named similarly to c_str() in std::string, - /// to make it clear that we are returning a C-compatible struct. - const Wells* c_wells() const; - - const WellCollection& wellCollection() const; - - private: - // Disable copying and assignment. - WellsManager(const WellsManager& other); - WellsManager& operator=(const WellsManager& other); - // The managed Wells. - Wells* w_; - - WellCollection well_collection_; };