VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
1DRegularTableFn.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include <stdio.h>
12 #include <vlutil/vlMachineTypes.h>
14 #include "vrfutil/rwReal.h"
16 
23 
24 #include "vrfutil/vrfutilDefines.h"
26 {
27 public:
28 
31 
34  parentRegistry = NULL);
36  parentRegistry = NULL);
37 
39  Dt1DRegularTableFn(const DtReal bottom,
40  const DtReal top,
41  const DtReal inc,
42  const DtReal* data);
43 
45  virtual ~Dt1DRegularTableFn();
46 
49 
51  Dt1DRegularTableFn(const DtString& name, const Dt1DRegularTableFn& orig,
52  DtReaderWriterRegistry* parentRegistry = NULL);
53  Dt1DRegularTableFn(const DtSymbolString& name, const Dt1DRegularTableFn& orig,
54  DtReaderWriterRegistry* parentRegistry = NULL);
55 
58 
60  virtual bool init(const DtReal value);
61 
67  virtual bool init(const DtReal bottom, const DtReal top, const DtReal inc,
68  const DtReal* data);
69 
71  virtual bool init(const DtReal bottom, const DtReal top, const DtReal inc,
72  const DtNLengthRealVector& data);
73 
77  virtual const char* readerWriterType() const;
78 
79  bool operator==(const Dt1DRegularTableFn&) const;
80 
81 private:
85 
86 public:
87 
89  virtual DtReal lookup(DtReal coordinate1,...) const;
90  virtual DtReal lookup(const DtReal* coordinates) const;
91 
93  virtual DtReal integrate(DtReal lower, DtReal upper,...) const;
94 
96  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
97  const DtVariableBindingsList& variableBindings);
98 
100  virtual void putData(std::string& fp, int indentLevel = 0);
101  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
102  const DtVariableBindingsList& variableBindings);
103 
105  void putSelf(std::string& fp, int indentLevel = 0, bool writeUnspecified = false,
106  const DtFilename& path = DtReaderWriter::appPath());
107 
108 protected:
109 
110  DtReal mySpan;
115  DtReal * myDomain;
116  DtReal * mySlope;
117 
118 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)