VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
prbStepFunction.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 "vrfutil/readerWriter.h"
14 #include <vlutil/vlMachineTypes.h>
15 #include "vrfutil/rwList.h"
16 #include "vrfutil/rwBoolean.h"
17 
18 class DtString;
20 class DtPrbValueList;
21 
22 
25 {
26 public:
27 
30 
32  DtPrbStepFunction(const DtString& name,
33  DtReaderWriterRegistry* parentRegistry = NULL);
34  DtPrbStepFunction(const DtSymbolString& name,
35  DtReaderWriterRegistry* parentRegistry = NULL);
36 
38  DtPrbStepFunction(const DtString& name, const
40  parentRegistry = NULL);
41  DtPrbStepFunction(const DtSymbolString& name, const
43  parentRegistry = NULL);
44 
45  const DtPrbStepFunction& operator=(const
46  DtPrbStepFunction& orig);
47 
49  virtual ~DtPrbStepFunction();
50 
51  virtual DtPrbStepFunction* clone(const DtString& name,
52  DtReaderWriterRegistry* parentRegistry = NULL) const;
53  virtual DtPrbStepFunction* clone(const DtSymbolString& name,
54  DtReaderWriterRegistry* parentRegistry = NULL) const;
55 
57  virtual void addTableEntry(const DtPrbValueList& tableEntry);
58 
64  virtual bool getProbabilities(DtReal value, DtPrbValueList* entry) const;
65 
68  virtual double minInputValue() const;
69 
72  virtual double maxInputValue() const;
73 
75  virtual void setRoundDown(bool rd);
76 
77 protected:
78 
80  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
81  const DtVariableBindingsList& variableBindings);
82 
85  void emptyList();
86 
89  void copyList(const DtPrbStepFunction & orig);
90 
91  virtual void addTableEntry(DtPrbValueList * tableEntry);
92 
95 };
96 
97 
98 
99 
100 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)