Lines Matching refs:AidlConstantValue
149 class AidlConstantValue; variable
175 std::map<std::string, std::shared_ptr<AidlConstantValue>>* parameter_list);
203 std::map<std::string, std::shared_ptr<AidlConstantValue>>&& parameters);
207 std::map<std::string, std::shared_ptr<AidlConstantValue>> parameters_;
322 class AidlConstantValue; variable
331 const std::string& name, AidlConstantValue* default_value);
346 const AidlConstantValue* GetDefaultValue() const { return default_value_.get(); } in GetDefaultValue()
360 std::unique_ptr<AidlConstantValue> default_value_;
413 class AidlConstantValue : public AidlNode {
437 virtual ~AidlConstantValue() = default;
440 AidlConstantValue(const AidlConstantValue&) = delete;
441 AidlConstantValue(AidlConstantValue&&) = delete;
442 AidlConstantValue& operator=(const AidlConstantValue&) = delete;
443 AidlConstantValue& operator=(AidlConstantValue&&) = delete;
447 static AidlConstantValue* Default(const AidlTypeSpecifier& specifier);
449 static AidlConstantValue* Boolean(const AidlLocation& location, bool value);
450 static AidlConstantValue* Character(const AidlLocation& location, char value);
452 static AidlConstantValue* Integral(const AidlLocation& location, const string& value);
453 static AidlConstantValue* Floating(const AidlLocation& location, const std::string& value);
454 static AidlConstantValue* Array(const AidlLocation& location,
455 std::unique_ptr<vector<unique_ptr<AidlConstantValue>>> values);
457 static AidlConstantValue* String(const AidlLocation& location, const string& value);
462 static AidlConstantValue* ShallowIntegralCopy(const AidlConstantValue& other);
472 AidlConstantValue(const AidlLocation& location, Type parsed_type, int64_t parsed_value,
474 AidlConstantValue(const AidlLocation& location, Type type, const string& checked_value);
475 AidlConstantValue(const AidlLocation& location, Type type,
476 std::unique_ptr<vector<unique_ptr<AidlConstantValue>>> values);
484 const vector<unique_ptr<AidlConstantValue>> values_; // if type_ == ARRAY
498 class AidlUnaryConstExpression : public AidlConstantValue {
501 std::unique_ptr<AidlConstantValue> rval);
508 std::unique_ptr<AidlConstantValue> unary_;
512 class AidlBinaryConstExpression : public AidlConstantValue {
514 AidlBinaryConstExpression(const AidlLocation& location, std::unique_ptr<AidlConstantValue> lval,
515 const string& op, std::unique_ptr<AidlConstantValue> rval);
528 std::unique_ptr<AidlConstantValue> left_val_;
529 std::unique_ptr<AidlConstantValue> right_val_;
535 std::unique_ptr<AidlConstantValue> value;
541 const string& name, AidlConstantValue* value);
553 const AidlConstantValue& GetValue() const { return *value_; } in GetValue()
567 unique_ptr<AidlConstantValue> value_;
781 AidlEnumerator(const AidlLocation& location, const std::string& name, AidlConstantValue* value,
792 AidlConstantValue* GetValue() const { return value_.get(); } in GetValue()
799 void SetValue(std::unique_ptr<AidlConstantValue> value) { value_ = std::move(value); } in SetValue()
803 unique_ptr<AidlConstantValue> value_;