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