OpenASIP  2.0
Public Member Functions | Public Attributes | List of all members
Annotation Class Reference

#include <ParserStructs.hh>

Collaboration diagram for Annotation:
Collaboration graph

Public Member Functions

std::string toString () const
 

Public Attributes

UValue id
 
std::vector< InitDataFieldpayload
 

Detailed Description

One annotation.

Definition at line 364 of file ParserStructs.hh.

Member Function Documentation

◆ toString()

std::string Annotation::toString ( ) const
inline

Definition at line 371 of file ParserStructs.hh.

371  {
372  std::stringstream retVal;
373  retVal << "[0x" << std::hex << id;
374 
375  for (unsigned int i = 0; i < payload.size(); i++) {
376  retVal << " " << payload[i].toString();
377  }
378 
379  retVal << "]";
380 
381  return retVal.str();
382  }

References id, and payload.

Member Data Documentation

◆ id

UValue Annotation::id

Definition at line 367 of file ParserStructs.hh.

Referenced by toString().

◆ payload

std::vector<InitDataField> Annotation::payload

Definition at line 369 of file ParserStructs.hh.

Referenced by toString().


The documentation for this class was generated from the following file:
Annotation::id
UValue id
Definition: ParserStructs.hh:367
Annotation::payload
std::vector< InitDataField > payload
Definition: ParserStructs.hh:369