Lines Matching defs:VariantValue
1 //===--- VariantValue.cpp - Polymorphic value type -*- C++ -*-===/
15 #include "clang/ASTMatchers/Dynamic/VariantValue.h"
65 VariantValue::VariantValue(const VariantValue &Other) : Type(VT_Nothing) {
69 VariantValue::VariantValue(unsigned Unsigned) : Type(VT_Nothing) {
73 VariantValue::VariantValue(const std::string &String) : Type(VT_Nothing) {
77 VariantValue::VariantValue(const DynTypedMatcher &Matcher) : Type(VT_Nothing) {
81 VariantValue::VariantValue(const MatcherList &Matchers) : Type(VT_Nothing) {
85 VariantValue::~VariantValue() { reset(); }
87 VariantValue &VariantValue::operator=(const VariantValue &Other) {
107 void VariantValue::reset() {
123 bool VariantValue::isUnsigned() const {
127 unsigned VariantValue::getUnsigned() const {
132 void VariantValue::setUnsigned(unsigned NewValue) {
138 bool VariantValue::isString() const {
142 const std::string &VariantValue::getString() const {
147 void VariantValue::setString(const std::string &NewValue) {
153 bool VariantValue::isMatchers() const {
157 const MatcherList &VariantValue::getMatchers() const {
162 void VariantValue::setMatchers(const MatcherList &NewValue) {
168 std::string VariantValue::getTypeAsString() const {