• Home
  • Raw
  • Download

Lines Matching full: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()
129 const std::unordered_set<std::string> &GetBoolAttributes() const in GetBoolAttributes()
134 const std::unordered_map<std::string, std::vector<std::string>> &GetAttributes() const in GetAttributes()
139 virtual std::optional<Error> ValidateData() in ValidateData()
149 virtual std::optional<Error> Validate(std::string_view attribute) const = 0;
151 …virtual std::optional<Error> Validate(std::string_view attribute, std::string_view value) const = …
153 virtual std::optional<Error> StoreValue(std::string_view attribute, std::string_view value) in StoreValue()
155 std::string key(attribute); in StoreValue()
158 std::tie(it, std::ignore) = attributes_.try_emplace(key); in StoreValue()
166 virtual std::optional<Error> Store(std::string_view attribute) in Store()
173 virtual void SetFlags(std::string_view attribute) = 0;
175 virtual void SetFlags(std::string_view attribute, std::string_view value) = 0;
177 virtual void RemoveFlags(std::string_view attribute) = 0;
179 virtual void RemoveFlags(std::string_view attribute, std::string_view value) = 0;
181 bool HasAttribute(std::string_view attribute) const in HasAttribute()
183 std::string key(attribute); in HasAttribute()
187 std::optional<Error> ValidateSize(std::string_view value) const;
190 std::unordered_set<std::string> set_attributes_;
191 std::unordered_map<std::string, std::vector<std::string>> attributes_;
196 const std::vector<AnnotationData> &GetAnnotations() const in GetAnnotations()
201 void SetAnnotations(std::vector<AnnotationData> &&annotations) in SetAnnotations()
203 annotations_ = std::forward<std::vector<AnnotationData>>(annotations); in SetAnnotations()
206 void AddAnnotations(const std::vector<AnnotationData> &annotations) in AddAnnotations()
214 … annotations_[anno_idx].SetOrAddElementByIndex(ele_idx, std::forward<AnnotationElement>(element)); in SetOrAddAnnotationElementByIndex()
217 std::optional<Error> ValidateData() override;
220 std::optional<Error> Store(std::string_view attribute) override;
222 std::optional<Error> StoreValue(std::string_view attribute, std::string_view value) override;
224 virtual bool IsAnnotationRecordAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationRecordAttribute()
229 virtual bool IsAnnotationIdAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationIdAttribute()
234 virtual bool IsAnnotationElementTypeAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationElementTypeAttribute()
239 …virtual bool IsAnnotationElementArrayComponentTypeAttribute([[maybe_unused]] std::string_view attr… in IsAnnotationElementArrayComponentTypeAttribute()
244 virtual bool IsAnnotationElementNameAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationElementNameAttribute()
249 … virtual bool IsAnnotationElementValueAttribute([[maybe_unused]] std::string_view attribute) const in IsAnnotationElementValueAttribute()
257 void Initialize(std::string_view name) in Initialize()
283 std::optional<Error> AddValue(
284 std::string_view value,
285 … const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotation_id_map);
291std::make_unique<ArrayValue>(component_type_.value(), std::move(values_))); in CreateAnnotationElement()
294 return AnnotationElement(name_, std::make_unique<ScalarValue>(values_.front())); in CreateAnnotationElement()
336 std::string name_;
337 std::optional<Value::Type> type_;
338 std::optional<Value::Type> component_type_;
339 std::vector<ScalarValue> values_;
344 void Initialize(std::string_view name) in Initialize()
358 void SetId(std::string_view id) in SetId()
363 std::string GetId() const in GetId()
371 elements_.push_back(std::forward<AnnotationElement>(element)); in AddElement()
374 std::unique_ptr<AnnotationData> CreateAnnotationData() in CreateAnnotationData()
376 return std::make_unique<AnnotationData>(name_, std::move(elements_)); in CreateAnnotationData()
379 void AddAnnnotationDataToVector(std::vector<AnnotationData> *annotations) in AddAnnnotationDataToVector()
381 annotations->emplace_back(name_, std::move(elements_)); in AddAnnnotationDataToVector()
395 std::string name_;
396 std::optional<std::string> id_;
397 std::vector<AnnotationElement> elements_;
401std::optional<Metadata::Error> MeetExpRecordAttribute(std::string_view attribute, std::string_view…
402std::optional<Metadata::Error> MeetExpIdAttribute(std::string_view attribute, std::string_view val…
403std::optional<Metadata::Error> MeetExpElementNameAttribute(std::string_view attribute, std::string…
404std::optional<Metadata::Error> MeetExpElementTypeAttribute(std::string_view attribute, std::string…
405std::optional<Metadata::Error> MeetExpElementArrayComponentTypeAttribute(std::string_view attribut…
406std::string_view value);
407std::optional<Metadata::Error> MeetExpElementValueAttribute(std::string_view attribute, std::strin…
409 void InitializeAnnotationBuilder(std::string_view name) in InitializeAnnotationBuilder()
440 void InitializeAnnotationElementBuilder(std::string_view name) in InitializeAnnotationElementBuilder()
466 std::vector<AnnotationData> annotations_;
467 std::unordered_map<std::string, std::unique_ptr<AnnotationData>> id_map_;
490 virtual std::string GetBase() const;
492 virtual std::vector<std::string> GetInterfaces() const;
503 std::optional<Error> Validate(std::string_view attribute) const override;
505std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
507 void SetFlags(std::string_view attribute) override;
509 void SetFlags(std::string_view attribute, std::string_view value) override;
511 void RemoveFlags(std::string_view attribute) override;
513 void RemoveFlags(std::string_view attribute, std::string_view value) override;
533 std::optional<ScalarValue> GetValue() const in GetValue()
539 std::optional<Error> StoreValue(std::string_view attribute, std::string_view value) override;
541 std::optional<Error> Validate(std::string_view attribute) const override;
543std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
545 void SetFlags(std::string_view attribute) override;
547 void SetFlags(std::string_view attribute, std::string_view value) override;
549 void RemoveFlags(std::string_view attribute) override;
551 void RemoveFlags(std::string_view attribute, std::string_view value) override;
553 virtual bool IsValueAttribute(std::string_view attribute) in IsValueAttribute()
560 std::optional<ScalarValue> value_;
570 std::optional<Error> Validate(std::string_view attribute) const override;
572std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
574 void SetFlags(std::string_view attribute) override;
576 void SetFlags(std::string_view attribute, std::string_view value) override;
578 void RemoveFlags(std::string_view attribute) override;
580 void RemoveFlags(std::string_view attribute, std::string_view value) override;
585 std::optional<Error> Validate(std::string_view attribute) const override;
587std::optional<Error> Validate(std::string_view attribute, std::string_view value) const override;
589 void SetFlags(std::string_view attribute) override;
591 void SetFlags(std::string_view attribute, std::string_view value) override;
593 void RemoveFlags(std::string_view attribute) override;
595 void RemoveFlags(std::string_view attribute, std::string_view value) override;