Go to the documentation of this file.
33 #ifndef TTA_ANNOTATED_INSTRUCTION_ELEMENT_HH
34 #define TTA_ANNOTATED_INSTRUCTION_ELEMENT_HH
75 typedef std::multimap<ProgramAnnotation::Id, ProgramAnnotation>
AnnotatedInstructionElement()
void setAnnotation(const ProgramAnnotation &annotation)
std::multimap< ProgramAnnotation::Id, ProgramAnnotation > AnnotationIndex
a type for the container of the annotations
@ 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
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