VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
prbValueList.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <readerWriter/rwList.h>
14 
20 {
21 public:
22 
25 
27  DtPrbValueList(const DtString& name,
28  DtReaderWriterRegistry* parentRegistry = NULL);
29  DtPrbValueList(const DtSymbolString& name,
30  DtReaderWriterRegistry* parentRegistry = NULL);
31 
33  virtual ~DtPrbValueList();
34 
36  DtPrbValueList(const DtString& name,
37  const DtPrbValueList& orig,
38  DtReaderWriterRegistry* parentRegistry = NULL);
39  DtPrbValueList(const DtSymbolString& name,
40  const DtPrbValueList& orig,
41  DtReaderWriterRegistry* parentRegistry = NULL);
42 
45 
46  virtual DtPrbValueList* clone(const DtString& name,
47  DtReaderWriterRegistry* parentRegistry = NULL) const;
48  virtual DtPrbValueList* clone(const DtSymbolString& name,
49  DtReaderWriterRegistry* parentRegistry = NULL) const;
50 
51  virtual void addProbability(const DtString& name, DtReal value);
52  virtual DtReal probability(const DtString& name) const;
53 
54  virtual void setValue(DtReal val);
55  virtual DtReal value() const;
56 
57  bool operator==(const DtPrbValueList&) const;
58  bool operator!=(const DtPrbValueList& rhs) const
59  {
60  return !(*this == rhs);
61  }
62 
63 protected:
65  virtual void putData(std::string& fp, int indentLevel = 0);
66 
68  virtual DtlObjPtr getLocalData(DtlObjPtr args);
69 
71  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
72  const DtVariableBindingsList& variableBindings);
73 
74  virtual void copyList(const DtPrbValueList &orig);
75 
76  virtual void emptyList();
77 
78 protected:
79  DtReal myValue;
80 };
81 
82 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)