HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SOP_VolumeBound.proto.h
Go to the documentation of this file.
1 /* Automagically Generated by generate_proto.py
2  * Do not Edit
3  */
4 #pragma once
5 
6 #include <SOP/SOP_API.h>
7 #include <SOP/SOP_NodeVerb.h>
8 #include <SOP/SOP_GraphProxy.h>
9 
10 #include <OP/OP_Utils.h>
11 #include <PRM/PRM_Parm.h>
12 #include <UT/UT_IStream.h>
13 #include <UT/UT_NTStreamUtil.h>
14 #include <UT/UT_Ramp.h>
15 #include <UT/UT_SharedPtr.h>
16 #include <UT/UT_StringHolder.h>
17 #include <UT/UT_StringStream.h>
18 #include <UT/UT_VectorTypes.h>
19 #include <UT/UT_EnvControl.h>
20 #include <SYS/SYS_Types.h>
21 
22 using namespace UT::Literal;
23 
24 class DEP_MicroNode;
25 namespace SOP_VolumeBoundEnums
26 {
27  enum class Comp
28  {
29  GREATER = 0,
30  LESS,
33  };
34 }
35 
36 
38 {
39 public:
40  static int version() { return 1; }
41 
43  {
44  myGroup = ""_sh;
45  myComp = 0;
46  myValue = 0;
47  myVoxelpad = UT_Vector3D(0,0,0);
48 
49  }
50 
51  explicit SOP_VolumeBoundParms(const SOP_VolumeBoundParms &) = default;
52 
53  ~SOP_VolumeBoundParms() override {}
54 
55  bool operator==(const SOP_VolumeBoundParms &src) const
56  {
57  if (myGroup != src.myGroup) return false;
58  if (myComp != src.myComp) return false;
59  if (myValue != src.myValue) return false;
60  if (myVoxelpad != src.myVoxelpad) return false;
61 
62  return true;
63  }
64  bool operator!=(const SOP_VolumeBoundParms &src) const
65  {
66  return !operator==(src);
67  }
69 
70 
71 
72  void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
73  {
74  myGroup = ""_sh;
75  if (true)
76  graph->evalOpParm(myGroup, nodeidx, "group", time, 0);
77  myComp = 0;
78  if (true)
79  graph->evalOpParm(myComp, nodeidx, "comp", time, 0);
80  myValue = 0;
81  if (true)
82  graph->evalOpParm(myValue, nodeidx, "value", time, 0);
83  myVoxelpad = UT_Vector3D(0,0,0);
84  if (true)
85  graph->evalOpParm(myVoxelpad, nodeidx, "voxelpad", time, 0);
86 
87  }
88 
89 
90  void loadFromOpSubclass(const LoadParms &loadparms) override
91  {
92  buildFromOp(loadparms.graph(), loadparms.nodeIdx(), loadparms.context().getTime(), loadparms.depnode());
93  }
94 
95 
96  void copyFrom(const SOP_NodeParms *src) override
97  {
98  *this = *((const SOP_VolumeBoundParms *)src);
99  }
100 
101  template <typename T>
102  void
103  doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
104  {
105  if (idx.size() < 1)
106  return;
107  UT_ASSERT(idx.size() == instance.size()+1);
108  if (idx.size() != instance.size()+1)
109  return;
110  switch (idx[0])
111  {
112  case 0:
113  coerceValue(value, myGroup);
114  break;
115  case 1:
116  coerceValue(value, myComp);
117  break;
118  case 2:
119  coerceValue(value, myValue);
120  break;
121  case 3:
122  coerceValue(value, myVoxelpad);
123  break;
124 
125  }
126  }
127 
128  void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
129  { doGetParmValue(idx, instance, value); }
130  void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
131  { doGetParmValue(idx, instance, value); }
132  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
133  { doGetParmValue(idx, instance, value); }
134  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
135  { doGetParmValue(idx, instance, value); }
136  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
137  { doGetParmValue(idx, instance, value); }
138  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
139  { doGetParmValue(idx, instance, value); }
140  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
141  { doGetParmValue(idx, instance, value); }
142  void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
143  { doGetParmValue(idx, instance, value); }
144  void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override
145  { doGetParmValue(idx, instance, value); }
146  void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr<UT_Ramp> &value) const override
147  { doGetParmValue(idx, instance, value); }
148  void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
149  { doGetParmValue(idx, instance, value); }
150 
151  template <typename T>
152  void
153  doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
154  {
155  if (idx.size() < 1)
156  return;
157  UT_ASSERT(idx.size() == instance.size()+1);
158  if (idx.size() != instance.size()+1)
159  return;
160  switch (idx[0])
161  {
162  case 0:
163  coerceValue(myGroup, ( ( value ) ));
164  break;
165  case 1:
166  coerceValue(myComp, clampMinValue(0, clampMaxValue(3, value ) ));
167  break;
168  case 2:
169  coerceValue(myValue, ( ( value ) ));
170  break;
171  case 3:
172  coerceValue(myVoxelpad, ( ( value ) ));
173  break;
174 
175  }
176  }
177 
178  void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
179  { doSetParmValue(idx, instance, value); }
180  void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
181  { doSetParmValue(idx, instance, value); }
182  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
183  { doSetParmValue(idx, instance, value); }
184  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
185  { doSetParmValue(idx, instance, value); }
186  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
187  { doSetParmValue(idx, instance, value); }
188  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
189  { doSetParmValue(idx, instance, value); }
190  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
191  { doSetParmValue(idx, instance, value); }
192  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
193  { doSetParmValue(idx, instance, value); }
194  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
195  { doSetParmValue(idx, instance, value); }
196  void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr<UT_Ramp> &value) override
197  { doSetParmValue(idx, instance, value); }
198  void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
199  { doSetParmValue(idx, instance, value); }
200 
201  exint getNestNumParms(TempIndex idx) const override
202  {
203  if (idx.size() == 0)
204  return 4;
205  switch (idx[0])
206  {
207 
208  }
209  // Invalid
210  return 0;
211  }
212 
213  const char *getNestParmName(TempIndex fieldnum) const override
214  {
215  if (fieldnum.size() < 1)
216  return 0;
217  switch (fieldnum[0])
218  {
219  case 0:
220  return "group";
221  case 1:
222  return "comp";
223  case 2:
224  return "value";
225  case 3:
226  return "voxelpad";
227 
228  }
229  return 0;
230  }
231 
232  ParmType getNestParmType(TempIndex fieldnum) const override
233  {
234  if (fieldnum.size() < 1)
235  return PARM_UNSUPPORTED;
236  switch (fieldnum[0])
237  {
238  case 0:
239  return PARM_STRING;
240  case 1:
241  return PARM_INTEGER;
242  case 2:
243  return PARM_FLOAT;
244  case 3:
245  return PARM_VECTOR3;
246 
247  }
248  return PARM_UNSUPPORTED;
249  }
250 
251  // Boiler plate to load individual types.
252  static void loadData(UT_IStream &is, int64 &v)
253  { is.bread(&v, 1); }
254  static void loadData(UT_IStream &is, bool &v)
255  { int64 iv; is.bread(&iv, 1); v = iv; }
256  static void loadData(UT_IStream &is, fpreal64 &v)
257  { is.bread<fpreal64>(&v, 1); }
258  static void loadData(UT_IStream &is, UT_Vector2D &v)
259  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1); }
260  static void loadData(UT_IStream &is, UT_Vector3D &v)
261  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
262  is.bread<fpreal64>(&v.z(), 1); }
263  static void loadData(UT_IStream &is, UT_Vector4D &v)
264  { is.bread<fpreal64>(&v.x(), 1); is.bread<fpreal64>(&v.y(), 1);
265  is.bread<fpreal64>(&v.z(), 1); is.bread<fpreal64>(&v.w(), 1); }
266  static void loadData(UT_IStream &is, UT_Matrix2D &v)
267  { for (int r = 0; r < 2; r++) for (int c = 0; c < 2; c++) is.bread<fpreal64>(&v(r, c), 1); }
268  static void loadData(UT_IStream &is, UT_Matrix3D &v)
269  { for (int r = 0; r < 3; r++) for (int c = 0; c < 3; c++) is.bread<fpreal64>(&v(r, c), 1); }
270  static void loadData(UT_IStream &is, UT_Matrix4D &v)
271  { for (int r = 0; r < 4; r++) for (int c = 0; c < 4; c++) is.bread<fpreal64>(&v(r, c), 1); }
272  static void loadData(UT_IStream &is, UT_Vector2I &v)
273  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1); }
274  static void loadData(UT_IStream &is, UT_Vector3I &v)
275  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
276  is.bread<int64>(&v.z(), 1); }
277  static void loadData(UT_IStream &is, UT_Vector4I &v)
278  { is.bread<int64>(&v.x(), 1); is.bread<int64>(&v.y(), 1);
279  is.bread<int64>(&v.z(), 1); is.bread<int64>(&v.w(), 1); }
281  { is.bread(v); }
283  { UT_StringHolder rampdata;
284  loadData(is, rampdata);
285  if (rampdata.isstring())
286  {
287  v.reset(new UT_Ramp());
288  UT_IStream istr((const char *) rampdata, rampdata.length(), UT_ISTREAM_ASCII);
289  v->load(istr);
290  }
291  else v.reset();
292  }
295  loadData(is, data);
296  if (data.isstring())
297  {
298  // Find the data type.
299  const char *colon = UT_StringWrap(data).findChar(':');
300  if (colon)
301  {
302  int typelen = colon - data.buffer();
304  type.strncpy(data.buffer(), typelen);
305  UT_IStream istr(((const char *) data) + typelen + 1, data.length() - (typelen + 1), UT_ISTREAM_BINARY);
306 
307  v = PRM_DataFactory::parseBinary(type.buffer(), istr);
308  }
309  }
310  else v.reset();
311  }
312 
313  static void saveData(std::ostream &os, int64 v)
314  { UTwrite(os, &v); }
315  static void saveData(std::ostream &os, bool v)
316  { int64 iv = v; UTwrite(os, &iv); }
317  static void saveData(std::ostream &os, fpreal64 v)
318  { UTwrite<fpreal64>(os, &v); }
319  static void saveData(std::ostream &os, UT_Vector2D v)
320  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y()); }
321  static void saveData(std::ostream &os, UT_Vector3D v)
322  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
323  UTwrite<fpreal64>(os, &v.z()); }
324  static void saveData(std::ostream &os, UT_Vector4D v)
325  { UTwrite<fpreal64>(os, &v.x()); UTwrite<fpreal64>(os, &v.y());
326  UTwrite<fpreal64>(os, &v.z()); UTwrite<fpreal64>(os, &v.w()); }
327  static void saveData(std::ostream &os, UT_Matrix2D v)
329  static void saveData(std::ostream &os, UT_Matrix3D v)
331  static void saveData(std::ostream &os, UT_Matrix4D v)
333  static void saveData(std::ostream &os, UT_StringHolder s)
334  { UT_StringWrap(s).saveBinary(os); }
335  static void saveData(std::ostream &os, UT_SharedPtr<UT_Ramp> s)
337  UT_OStringStream ostr;
338  if (s) s->save(ostr);
339  result = ostr.str();
340  saveData(os, result);
341  }
342  static void saveData(std::ostream &os, PRM_DataItemHandle s)
344  UT_OStringStream ostr;
345  if (s)
346  {
347  ostr << s->getDataTypeToken();
348  ostr << ":";
349  s->saveBinary(ostr);
350  }
351  result = ostr.str();
352  saveData(os, result);
353  }
354 
355 
356  void save(std::ostream &os) const
357  {
358  int32 v = version();
359  UTwrite(os, &v);
360  saveData(os, myGroup);
361  saveData(os, myComp);
362  saveData(os, myValue);
363  saveData(os, myVoxelpad);
364 
365  }
366 
367  bool load(UT_IStream &is)
368  {
369  int32 v;
370  is.bread(&v, 1);
371  if (version() != v)
372  {
373  // Fail incompatible versions
374  return false;
375  }
376  loadData(is, myGroup);
377  loadData(is, myComp);
378  loadData(is, myValue);
379  loadData(is, myVoxelpad);
380 
381  return true;
382  }
383 
384  const UT_StringHolder & getGroup() const { return myGroup; }
385  void setGroup(const UT_StringHolder & val) { myGroup = val; }
387  {
388  SOP_Node *thissop = cookparms.getNode();
389  if (!thissop) return getGroup();
391  OP_Utils::evalOpParm(result, thissop, "group", cookparms.getCookTime(), 0);
392  return result;
393  }
394  Comp getComp() const { return Comp(myComp); }
395  void setComp(Comp val) { myComp = int64(val); }
396  Comp opComp(const SOP_NodeVerb::CookParms &cookparms) const
397  {
398  SOP_Node *thissop = cookparms.getNode();
399  if (!thissop) return getComp();
400  int64 result;
401  OP_Utils::evalOpParm(result, thissop, "comp", cookparms.getCookTime(), 0);
402  return Comp(result);
403  }
404  fpreal64 getValue() const { return myValue; }
405  void setValue(fpreal64 val) { myValue = val; }
406  fpreal64 opValue(const SOP_NodeVerb::CookParms &cookparms) const
407  {
408  SOP_Node *thissop = cookparms.getNode();
409  if (!thissop) return getValue();
411  OP_Utils::evalOpParm(result, thissop, "value", cookparms.getCookTime(), 0);
412  return result;
413  }
414  UT_Vector3D getVoxelpad() const { return myVoxelpad; }
415  void setVoxelpad(UT_Vector3D val) { myVoxelpad = val; }
417  {
418  SOP_Node *thissop = cookparms.getNode();
419  if (!thissop) return getVoxelpad();
421  OP_Utils::evalOpParm(result, thissop, "voxelpad", cookparms.getCookTime(), 0);
422  return result;
423  }
424 
425 private:
426  UT_StringHolder myGroup;
427  int64 myComp;
428  fpreal64 myValue;
429  UT_Vector3D myVoxelpad;
430 
431 };
type
Definition: core.h:977
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector2D &value) const override
Comp opComp(const SOP_NodeVerb::CookParms &cookparms) const
static void loadData(UT_IStream &is, fpreal64 &v)
exint nodeIdx() const
Definition: SOP_NodeVerb.h:102
int int32
Definition: SYS_Types.h:39
SOP_Node * getNode() const
Definition: SOP_NodeVerb.h:734
static void loadData(UT_IStream &is, UT_Matrix4D &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix2D &value) const override
bool operator!=(const SOP_VolumeBoundParms &src) const
static void loadData(UT_IStream &is, UT_Vector4I &v)
exint bread(int32 *buffer, exint asize=1)
GT_API const UT_StringHolder time
fpreal getTime() const
Definition: OP_Context.h:60
void setValue(fpreal64 val)
const GLfloat * c
Definition: glew.h:16631
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector3D &value) const override
int64 exint
Definition: SYS_Types.h:125
SYS_FORCE_INLINE const char * buffer() const
const SOP_GraphProxy * graph() const
Definition: SOP_NodeVerb.h:101
fpreal64 getValue() const
An output stream object that owns its own string buffer storage.
GLenum src
Definition: glcorearb.h:1792
bool operator==(const SOP_VolumeBoundParms &src) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Vector4D &value) const override
static PRM_DataItemHandle parseBinary(const char *type, UT_IStream &is)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector4D &value) override
const UT_WorkBuffer & str()
Returns a read-only reference to the underlying UT_WorkBuffer.
void setNestParmValue(TempIndex idx, TempIndex instance, const fpreal &value) override
void setNestParmValue(TempIndex idx, TempIndex instance, const exint &value) override
static void saveData(std::ostream &os, UT_SharedPtr< UT_Ramp > s)
double fpreal64
Definition: SYS_Types.h:201
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
Definition: Dimensions.h:137
UT_Vector3D opVoxelpad(const SOP_NodeVerb::CookParms &cookparms) const
void save(std::ostream &os) const
void doGetParmValue(TempIndex idx, TempIndex instance, T &value) const
void loadFromOpSubclass(const LoadParms &loadparms) override
SYS_FORCE_INLINE T & y()
Definition: UT_Vector3.h:508
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix3D &value) override
exint length() const
static void loadData(UT_IStream &is, UT_Vector2D &v)
static void loadData(UT_IStream &is, UT_Vector2I &v)
static void loadData(UT_IStream &is, UT_Vector3D &v)
SYS_FORCE_INLINE const char * buffer() const
std::shared_ptr< T > UT_SharedPtr
Wrapper around std::shared_ptr.
Definition: UT_SharedPtr.h:30
static void saveData(std::ostream &os, UT_Vector4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector3D &value) override
const GLdouble * v
Definition: glcorearb.h:836
void buildFromOp(const SOP_GraphProxy *graph, exint nodeidx, fpreal time, DEP_MicroNode *depnode)
SYS_FORCE_INLINE T & z()
Definition: UT_Vector3.h:510
static void loadData(UT_IStream &is, bool &v)
static void saveData(std::ostream &os, bool v)
UT_StringHolder opGroup(const SOP_NodeVerb::CookParms &cookparms) const
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix3D &value) const override
bool load(UT_IStream &is)
static void loadData(UT_IStream &is, UT_Matrix2D &v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_SharedPtr< UT_Ramp > &value) override
static void saveData(std::ostream &os, UT_Matrix3D v)
fpreal64 opValue(const SOP_NodeVerb::CookParms &cookparms) const
long long int64
Definition: SYS_Types.h:116
const UT_StringHolder & getGroup() const
void getNestParmValue(TempIndex idx, TempIndex instance, PRM_DataItemHandle &value) const override
UT_Vector3T< fpreal64 > UT_Vector3D
void copyFrom(const SOP_NodeParms *src) override
void setNestParmValue(TempIndex idx, TempIndex instance, const PRM_DataItemHandle &value) override
void setVoxelpad(UT_Vector3D val)
void saveBinary(std::ostream &os) const
Save string to binary stream.
Definition: UT_String.h:287
static void saveData(std::ostream &os, fpreal64 v)
GT_API const UT_StringHolder version
DEP_MicroNode * depnode() const
Definition: SOP_NodeVerb.h:109
static void saveData(std::ostream &os, UT_StringHolder s)
GLboolean * data
Definition: glcorearb.h:130
const char * getNestParmName(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, fpreal &value) const override
static void loadData(UT_IStream &is, UT_Matrix3D &v)
GLuint GLfloat * val
Definition: glcorearb.h:1607
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Vector2D &value) override
static void saveData(std::ostream &os, UT_Vector3D v)
static void saveData(std::ostream &os, UT_Matrix4D v)
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix4D &value) override
static void loadData(UT_IStream &is, UT_SharedPtr< UT_Ramp > &v)
fpreal64 fpreal
Definition: SYS_Types.h:277
void getNestParmValue(TempIndex idx, TempIndex instance, UT_SharedPtr< UT_Ramp > &value) const override
static void loadData(UT_IStream &is, PRM_DataItemHandle &v)
static void saveData(std::ostream &os, UT_Matrix2D v)
Utility class for containing a color ramp.
Definition: UT_Ramp.h:84
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_StringHolder &value) override
static void loadData(UT_IStream &is, UT_Vector4D &v)
static void saveData(std::ostream &os, UT_Vector2D v)
void getNestParmValue(TempIndex idx, TempIndex instance, exint &value) const override
#define SOP_API
Definition: SOP_API.h:10
void doSetParmValue(TempIndex idx, TempIndex instance, const T &value)
GLsizei const GLfloat * value
Definition: glcorearb.h:823
virtual void evalOpParm(int64 &v, NodeIdx node, const char *parmname, fpreal time, DEP_MicroNode *depnode) const =0
ParmType getNestParmType(TempIndex fieldnum) const override
void getNestParmValue(TempIndex idx, TempIndex instance, UT_Matrix4D &value) const override
exint getNestNumParms(TempIndex idx) const override
SYS_FORCE_INLINE T & x()
Definition: UT_Vector3.h:506
static void saveData(std::ostream &os, int64 v)
fpreal getCookTime() const
Definition: SOP_NodeVerb.h:748
void setGroup(const UT_StringHolder &val)
static void saveData(std::ostream &os, PRM_DataItemHandle s)
const char * findChar(int c) const
Definition: UT_String.h:1371
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:171
void setNestParmValue(TempIndex idx, TempIndex instance, const UT_Matrix2D &value) override
static void loadData(UT_IStream &is, UT_StringHolder &v)
static void loadData(UT_IStream &is, int64 &v)
GLboolean r
Definition: glcorearb.h:1221
UT_Vector3D getVoxelpad() const
GLdouble s
Definition: glew.h:1395
const OP_Context & context() const
Definition: SOP_NodeVerb.h:107
UT_SharedPtr< const PRM_DataItem > PRM_DataItemHandle
Definition: PRM_Parm.h:89
SYS_FORCE_INLINE bool isstring() const
SYS_FORCE_INLINE void strncpy(const char *src, exint maxlen)
static void loadData(UT_IStream &is, UT_Vector3I &v)
void getNestParmValue(TempIndex idx, TempIndex instance, UT_StringHolder &value) const override