• Home
  • Raw
  • Download

Lines Matching refs:std

48         Error(std::string msg, Type type) : msg_(std::move(msg)), type_(type) {}  in Error()
53 std::string GetMessage() const in GetMessage()
64 std::string msg_;
72 std::optional<Error> SetAttribute(std::string_view attribute) in SetAttribute()
84 void RemoveAttribute(const std::string &attribute) in RemoveAttribute()
91 bool GetAttribute(const std::string &attribute) const in GetAttribute()
96 std::optional<Error> SetAttributeValue(std::string_view attribute, std::string_view value) in SetAttributeValue()
108 std::vector<std::string> GetAttributeValues(const std::string &attribute) const in GetAttributeValues()
118 std::optional<std::string> GetAttributeValue(const std::string &attribute) const in GetAttributeValue()
128 const std::unordered_set<std::string> &GetBoolAttributes() const in GetBoolAttributes()
133 const std::unordered_map<std::string, std::vector<std::string>> &GetAttributes() const in GetAttributes()
138 virtual std::optional<Error> ValidateData() in ValidateData()
148 virtual std::optional<Error> Validate(std::string_view attribute) const = 0;
150 …virtual std::optional<Error> Validate(std::string_view attribute, std::string_view value) const = …
152 virtual std::optional<Error> StoreValue(std::string_view attribute, std::string_view value) in StoreValue()
154 std::string key(attribute); in StoreValue()
157 std::tie(it, std::ignore) = attributes_.try_emplace(key); in StoreValue()
165 virtual std::optional<Error> Store(std::string_view attribute) in Store()
172 virtual void SetFlags(std::string_view attribute) = 0;
174 virtual void SetFlags(std::string_view attribute, std::string_view value) = 0;
176 virtual void RemoveFlags(std::string_view attribute) = 0;
178 virtual void RemoveFlags(std::string_view attribute, std::string_view value) = 0;
180 bool HasAttribute(std::string_view attribute) const in HasAttribute()
182 std::string key(attribute); in HasAttribute()
186 std::optional<Error> ValidateSize(std::string_view value) const;
189 std::unordered_set<std::string> set_attributes_;
190 std::unordered_map<std::string, std::vector<std::string>> attributes_;
195 const std::vector<AnnotationData> &GetAnnotations() const in GetAnnotations()
200 void SetAnnotations(std::vector<AnnotationData> &&annotations) in SetAnnotations()
202 annotations_ = std::forward<std::vector<AnnotationData>>(annotations); in SetAnnotations()
205 void AddAnnotations(const std::vector<AnnotationData> &annotations) in AddAnnotations()
213 … annotations_[anno_idx].SetOrAddElementByIndex(ele_idx, std::forward<AnnotationElement>(element)); in SetOrAddAnnotationElementByIndex()
216 std::optional<Error> ValidateData() override;
219 std::optional<Error> Store(std::string_view attribute) override;
221 std::optional<Error> StoreValue(std::string_view attribute, std::string_view value) override;
223 virtual bool IsAnnotationRecordAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationRecordAttribute()
228 virtual bool IsAnnotationIdAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationIdAttribute()
233 virtual bool IsAnnotationElementTypeAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationElementTypeAttribute()
238 …virtual bool IsAnnotationElementArrayComponentTypeAttribute([[maybe_unused]] std::string_view attr… in IsAnnotationElementArrayComponentTypeAttribute()
243 virtual bool IsAnnotationElementNameAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationElementNameAttribute()
248 … virtual bool IsAnnotationElementValueAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationElementValueAttribute()
256 void Initialize(std::string_view name) in Initialize()
282 std::optional<Error> AddValue(
283 std::string_view value,
284 … const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotation_id_map);
290std::make_unique<ArrayValue>(component_type_.value(), std::move(values_))); in CreateAnnotationElement()
293 return AnnotationElement(name_, std::make_unique<ScalarValue>(values_.front())); in CreateAnnotationElement()
335 std::string name_;
336 std::optional<Value::Type> type_;
337 std::optional<Value::Type> component_type_;
338 std::vector<ScalarValue> values_;
343 void Initialize(std::string_view name) in Initialize()
357 void SetId(std::string_view id) in SetId()
362 std::string GetId() const in GetId()
370 elements_.push_back(std::forward<AnnotationElement>(element)); in AddElement()
373 std::unique_ptr<AnnotationData> CreateAnnotationData() in CreateAnnotationData()
375 return std::make_unique<AnnotationData>(name_, std::move(elements_)); in CreateAnnotationData()
378 void AddAnnnotationDataToVector(std::vector<AnnotationData> *annotations) in AddAnnnotationDataToVector()
380 annotations->emplace_back(name_, std::move(elements_)); in AddAnnnotationDataToVector()
394 std::string name_;
395 std::optional<std::string> id_;
396 std::vector<AnnotationElement> elements_;
400std::optional<Metadata::Error> MeetExpRecordAttribute(std::string_view attribute, std::string_view…
401std::optional<Metadata::Error> MeetExpIdAttribute(std::string_view attribute, std::string_view val…
402std::optional<Metadata::Error> MeetExpElementNameAttribute(std::string_view attribute, std::string…
403std::optional<Metadata::Error> MeetExpElementTypeAttribute(std::string_view attribute, std::string…
404std::optional<Metadata::Error> MeetExpElementArrayComponentTypeAttribute(std::string_view attribut…
405std::string_view value);
406std::optional<Metadata::Error> MeetExpElementValueAttribute(std::string_view attribute, std::strin…
408 void InitializeAnnotationBuilder(std::string_view name) in InitializeAnnotationBuilder()
439 void InitializeAnnotationElementBuilder(std::string_view name) in InitializeAnnotationElementBuilder()
465 std::vector<AnnotationData> annotations_;
466 std::unordered_map<std::string, std::unique_ptr<AnnotationData>> id_map_;
489 virtual std::string GetBase() const;
491 virtual std::vector<std::string> GetInterfaces() const;
502 std::optional<Error> Validate(std::string_view attribute) const override;
504std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
506 void SetFlags(std::string_view attribute) override;
508 void SetFlags(std::string_view attribute, std::string_view value) override;
510 void RemoveFlags(std::string_view attribute) override;
512 void RemoveFlags(std::string_view attribute, std::string_view value) override;
532 std::optional<ScalarValue> GetValue() const in GetValue()
538 std::optional<Error> StoreValue(std::string_view attribute, std::string_view value) override;
540 std::optional<Error> Validate(std::string_view attribute) const override;
542std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
544 void SetFlags(std::string_view attribute) override;
546 void SetFlags(std::string_view attribute, std::string_view value) override;
548 void RemoveFlags(std::string_view attribute) override;
550 void RemoveFlags(std::string_view attribute, std::string_view value) override;
552 virtual bool IsValueAttribute(std::string_view attribute) in IsValueAttribute()
559 std::optional<ScalarValue> value_;
569 std::optional<Error> Validate(std::string_view attribute) const override;
571std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
573 void SetFlags(std::string_view attribute) override;
575 void SetFlags(std::string_view attribute, std::string_view value) override;
577 void RemoveFlags(std::string_view attribute) override;
579 void RemoveFlags(std::string_view attribute, std::string_view value) override;
584 std::optional<Error> Validate(std::string_view attribute) const override;
586std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
588 void SetFlags(std::string_view attribute) override;
590 void SetFlags(std::string_view attribute, std::string_view value) override;
592 void RemoveFlags(std::string_view attribute) override;
594 void RemoveFlags(std::string_view attribute, std::string_view value) override;