8 #ifndef CSCORE_PROPERTYIMPL_H_ 9 #define CSCORE_PROPERTYIMPL_H_ 14 #include <llvm/StringRef.h> 26 int defaultValue_,
int value_)
30 defaultValue{defaultValue_},
36 void SetValue(
int v) {
37 if (hasMinimum && v < minimum)
39 else if (hasMaximum && v > maximum)
51 void SetDefaultValue(
int v) {
52 if (hasMinimum && v < minimum)
53 defaultValue = minimum;
54 else if (hasMaximum && v > maximum)
55 defaultValue = maximum;
61 CS_PropertyKind propKind{CS_PROP_NONE};
62 bool hasMinimum{
false};
63 bool hasMaximum{
false};
70 std::vector<std::string> enumChoices;
76 #endif // CSCORE_PROPERTYIMPL_H_ Definition: SinkImpl.h:19
Definition: PropertyImpl.h:21
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42