@@ -82,11 +82,26 @@ public:
82
82
{
83
83
}
84
84
85
- // Copy constructor and assignment operator are deleted to avoid surprises.
85
+ // / The copy constructor is deleted.
86
+ // /
87
+ // / Copying all bin contents can be an expensive operation, depending on the number of bins. If required, users can
88
+ // / explicitly call Clone().
86
89
RHistEngine (const RHistEngine<BinContentType> &) = delete ;
90
+ // / Efficiently move construct a histogram engine.
91
+ // /
92
+ // / After this operation, the moved-from object is invalid.
87
93
RHistEngine (RHistEngine<BinContentType> &&) = default ;
94
+
95
+ // / The copy assignment operator is deleted.
96
+ // /
97
+ // / Copying all bin contents can be an expensive operation, depending on the number of bins. If required, users can
98
+ // / explicitly call Clone().
88
99
RHistEngine<BinContentType> &operator =(const RHistEngine<BinContentType> &) = delete ;
100
+ // / Efficiently move a histogram engine.
101
+ // /
102
+ // / After this operation, the moved-from object is invalid.
89
103
RHistEngine<BinContentType> &operator =(RHistEngine<BinContentType> &&) = default ;
104
+
90
105
~RHistEngine () = default ;
91
106
92
107
const std::vector<RAxisVariant> &GetAxes () const { return fAxes .Get (); }
@@ -178,6 +193,8 @@ public:
178
193
179
194
// / Clone this histogram engine.
180
195
// /
196
+ // / Copying all bin contents can be an expensive operation, depending on the number of bins.
197
+ // /
181
198
// / \return the cloned object
182
199
RHistEngine<BinContentType> Clone () const
183
200
{
0 commit comments