Last change
on this file since 6218 was
5679,
checked in by ldelgass, 9 years ago
|
Full merge 1.3 branch to uq branch to sync. Fixed partial subdirectory merge
by removing mergeinfo from lang/python/Rappture directory.
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | * ====================================================================== |
---|
3 | * AUTHOR: Derrick S. Kearney, Purdue University |
---|
4 | * Copyright (c) 2004-2012 HUBzero Foundation, LLC |
---|
5 | * |
---|
6 | * See the file "license.terms" for information on usage and |
---|
7 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
8 | * ====================================================================== |
---|
9 | */ |
---|
10 | |
---|
11 | #ifndef RAPPTURE_ARRAY1DUNIFORM_H |
---|
12 | #define RAPPTURE_ARRAY1DUNIFORM_H |
---|
13 | |
---|
14 | #include "RpArray1D.h" |
---|
15 | |
---|
16 | namespace Rappture { |
---|
17 | |
---|
18 | class Array1DUniform : public Array1D |
---|
19 | { |
---|
20 | public: |
---|
21 | Array1DUniform(); |
---|
22 | Array1DUniform(double min, double max, double step); |
---|
23 | Array1DUniform(double min, double max, size_t nmemb); |
---|
24 | Array1DUniform(const Array1DUniform &o); |
---|
25 | virtual ~Array1DUniform (); |
---|
26 | |
---|
27 | void min(double min); |
---|
28 | void max(double max); |
---|
29 | double step(void) const; |
---|
30 | void step(double step); |
---|
31 | |
---|
32 | static const char type[]; |
---|
33 | |
---|
34 | protected: |
---|
35 | double _step; |
---|
36 | |
---|
37 | private: |
---|
38 | double __calcStepFromNmemb(size_t nmemb); |
---|
39 | size_t __calcNmembFromStep(double step); |
---|
40 | void __fillBuffer(); |
---|
41 | |
---|
42 | }; |
---|
43 | } // namespace Rappture |
---|
44 | |
---|
45 | #endif // RAPPTURE_ARRAY1DUNIFORM_H |
---|
Note: See
TracBrowser
for help on using the repository browser.