14 #ifndef DCNUMERICRANGE_H
15 #define DCNUMERICRANGE_H
35 INLINE
bool is_in_range(Number num)
const;
36 INLINE
void validate(Number num,
bool &range_error)
const;
38 INLINE
bool has_one_value()
const;
39 INLINE Number get_one_value()
const;
43 INLINE
void output(std::ostream &out, Number divisor = 1)
const;
44 INLINE
void output_char(std::ostream &out, Number divisor = 1)
const;
48 INLINE
bool add_range(Number min, Number max);
50 INLINE
bool is_empty()
const;
51 INLINE
int get_num_ranges()
const;
52 INLINE Number get_min(
int n)
const;
53 INLINE Number get_max(
int n)
const;
58 INLINE
bool operator < (
const MinMax &other)
const;
63 INLINE
void output_minmax(std::ostream &out, Number divisor,
const MinMax &range)
const;
64 INLINE
void output_minmax_char(std::ostream &out,
const MinMax &range)
const;
Represents a range of legal integer or floating-point values.
This class generates an arbitrary hash number from a sequence of ints.
This is our own Panda specialization on the default STL vector.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.