Skip to content

Commit 0665684

Browse files
committed
[RF] Make RooArgProxy::isValueServer() and isShapeServer() public
There is no reason to hide these member functions from the user, which are `const` getters to values that the user was setting themselves to begin with.
1 parent 2f75c41 commit 0665684

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

roofit/roofitcore/inc/RooArgProxy.h

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,6 @@ class RooArgProxy : public TNamed, public RooAbsProxy {
5050
/// Returns the owner of this proxy.
5151
RooAbsArg* owner() const { return _owner; }
5252

53-
protected:
54-
55-
friend class RooSimultaneous ;
56-
RooAbsArg* _owner ; ///< Pointer to owner of proxy
57-
RooAbsArg* _arg ; ///< Pointer to content of proxy
58-
59-
bool _valueServer ; ///< If true contents is value server of owner
60-
bool _shapeServer ; ///< If true contents is shape server of owner
61-
bool _isFund ; ///< If true proxy contains an lvalue
62-
bool _ownArg ; ///< If true proxy owns contents
63-
64-
friend class RooAbsArg ;
65-
6653
/// Returns true of contents is value server of owner
6754
inline bool isValueServer() const {
6855
return _valueServer ;
@@ -71,10 +58,21 @@ class RooArgProxy : public TNamed, public RooAbsProxy {
7158
inline bool isShapeServer() const {
7259
return _shapeServer ;
7360
}
61+
62+
protected:
63+
7464
bool changePointer(const RooAbsCollection& newServerSet, bool nameChange=false, bool factoryInitMode=false) override ;
7565

7666
virtual void changeDataSet(const RooArgSet* newNormSet) ;
7767

68+
RooAbsArg* _owner = nullptr; ///< Pointer to owner of proxy
69+
RooAbsArg* _arg = nullptr; ///< Pointer to content of proxy
70+
71+
bool _valueServer = false; ///< If true contents is value server of owner
72+
bool _shapeServer = false; ///< If true contents is shape server of owner
73+
bool _isFund = true; ///< If true proxy contains an lvalue
74+
bool _ownArg = false; ///< If true proxy owns contents
75+
7876
ClassDefOverride(RooArgProxy,1) // Abstract proxy for RooAbsArg objects
7977
};
8078

0 commit comments

Comments
 (0)