Go to the documentation of this file.
66 std::pair<ProgramAnnotation::Id, ProgramAnnotation>(
88 std::pair<ProgramAnnotation::Id, ProgramAnnotation>(
102 std::pair<AnnotationIndex::const_iterator,
103 AnnotationIndex::const_iterator> range(
113 AnnotationIndex::const_iterator i = range.first;
114 for (
int counter = 0; counter < index; ++counter) {
178 for (
auto i = range.first; i != range.second; i++) {
179 if (i->second.stringValue() == data) {
AnnotatedInstructionElement()
void setAnnotation(const ProgramAnnotation &annotation)
@ ANN_UNDEF_ID
an illegal annotation ID (the id is only 24 bits, this has more meaningful bits)
void copyAnnotationsFrom(const AnnotatedInstructionElement &other)
AnnotationIndex annotations_
container for annotations
Id
the ID in TPEF is 24 bits, here enum
ProgramAnnotation::Id id() const
bool hasAnnotation(ProgramAnnotation::Id id, const TCEString &data) const
~AnnotatedInstructionElement()
bool hasAnnotations(ProgramAnnotation::Id id=ProgramAnnotation::ANN_UNDEF_ID) const
ProgramAnnotation annotation(int index, ProgramAnnotation::Id id=ProgramAnnotation::ANN_UNDEF_ID) const
void addAnnotation(const ProgramAnnotation &annotation)
void removeAnnotations(ProgramAnnotation::Id id=ProgramAnnotation::ANN_UNDEF_ID)
int annotationCount(ProgramAnnotation::Id id=ProgramAnnotation::ANN_UNDEF_ID) const