summaryrefslogtreecommitdiff
path: root/rrdformat/op_string.go
blob: 9631f921091bf818f3fd61ed0f86b528fc55f829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Code generated by "stringer -type=Op -trimprefix=OP_ -linecomment"; DO NOT EDIT.

package rrdformat

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[OP_NUMBER-0]
	_ = x[OP_VARIABLE-1]
	_ = x[OP_INF-2]
	_ = x[OP_PREV-3]
	_ = x[OP_NEGINF-4]
	_ = x[OP_UNKN-5]
	_ = x[OP_NOW-6]
	_ = x[OP_TIME-7]
	_ = x[OP_ADD-8]
	_ = x[OP_MOD-9]
	_ = x[OP_SUB-10]
	_ = x[OP_MUL-11]
	_ = x[OP_DIV-12]
	_ = x[OP_SIN-13]
	_ = x[OP_DUP-14]
	_ = x[OP_EXC-15]
	_ = x[OP_POP-16]
	_ = x[OP_COS-17]
	_ = x[OP_LOG-18]
	_ = x[OP_EXP-19]
	_ = x[OP_LT-20]
	_ = x[OP_LE-21]
	_ = x[OP_GT-22]
	_ = x[OP_GE-23]
	_ = x[OP_EQ-24]
	_ = x[OP_IF-25]
	_ = x[OP_MIN-26]
	_ = x[OP_MAX-27]
	_ = x[OP_LIMIT-28]
	_ = x[OP_FLOOR-29]
	_ = x[OP_CEIL-30]
	_ = x[OP_UN-31]
	_ = x[OP_END-32]
	_ = x[OP_LTIME-33]
	_ = x[OP_NE-34]
	_ = x[OP_ISINF-35]
	_ = x[OP_PREV_OTHER-36]
	_ = x[OP_COUNT-37]
	_ = x[OP_ATAN-38]
	_ = x[OP_SQRT-39]
	_ = x[OP_SORT-40]
	_ = x[OP_REV-41]
	_ = x[OP_TREND-42]
	_ = x[OP_TRENDNAN-43]
	_ = x[OP_ATAN2-44]
	_ = x[OP_RAD2DEG-45]
	_ = x[OP_DEG2RAD-46]
	_ = x[OP_PREDICT-47]
	_ = x[OP_PREDICTSIGMA-48]
	_ = x[OP_AVG-49]
	_ = x[OP_ABS-50]
	_ = x[OP_ADDNAN-51]
	_ = x[OP_MINNAN-52]
	_ = x[OP_MAXNAN-53]
	_ = x[OP_MEDIAN-54]
	_ = x[OP_PREDICTPERC-55]
	_ = x[OP_DEPTH-56]
	_ = x[OP_COPY-57]
	_ = x[OP_ROLL-58]
	_ = x[OP_INDEX-59]
	_ = x[OP_STEPWIDTH-60]
	_ = x[OP_NEWDAY-61]
	_ = x[OP_NEWWEEK-62]
	_ = x[OP_NEWMONTH-63]
	_ = x[OP_NEWYEAR-64]
	_ = x[OP_SMIN-65]
	_ = x[OP_SMAX-66]
	_ = x[OP_STDEV-67]
	_ = x[OP_PERCENT-68]
	_ = x[OP_POW-69]
}

const _Op_name = "NUMBERVARIABLEINFPREVNEGINFUNKNNOWTIME+%-*/SINDUPEXCPOPCOSLOGEXPLTLEGTGEEQIFMINMAXLIMITFLOORCEILUNENDLTIMENEISINFPREV_OTHERCOUNTATANSQRTSORTREVTRENDTRENDNANATAN2RAD2DEGDEG2RADPREDICTPREDICTSIGMAAVGABSADDNANMINNANMAXNANMEDIANPREDICTPERCDEPTHCOPYROLLINDEXSTEPWIDTHNEWDAYNEWWEEKNEWMONTHNEWYEARSMINSMAXSTDEVPERCENTPOW"

var _Op_index = [...]uint16{0, 6, 14, 17, 21, 27, 31, 34, 38, 39, 40, 41, 42, 43, 46, 49, 52, 55, 58, 61, 64, 66, 68, 70, 72, 74, 76, 79, 82, 87, 92, 96, 98, 101, 106, 108, 113, 123, 128, 132, 136, 140, 143, 148, 156, 161, 168, 175, 182, 194, 197, 200, 206, 212, 218, 224, 235, 240, 244, 248, 253, 262, 268, 275, 283, 290, 294, 298, 303, 310, 313}

func (i Op) String() string {
	if i >= Op(len(_Op_index)-1) {
		return "Op(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _Op_name[_Op_index[i]:_Op_index[i+1]]
}