19 #ifndef __CPUI_COMMENT__
20 #define __CPUI_COMMENT__
57 void setEmitted(
bool val)
const { emitted = val; }
58 bool isEmitted(
void)
const {
return emitted; }
59 uint4 getType(
void)
const {
return type; }
60 const Address &getFuncAddr(
void)
const {
return funcaddr; }
61 const Address &getAddr(
void)
const {
return addr; }
62 int4 getUniq(
void)
const {
return uniq; }
63 const string &getText(
void)
const {
return text; }
90 virtual void clear(
void)=0;
107 const Address &ad,
const string &txt)=0;
141 virtual void saveXml(ostream &s)
const=0;
161 virtual void clear(
void);
164 const Address &ad,
const string &txt);
169 virtual void saveXml(ostream &s)
const;
207 bool operator<(
const Subsort &op2)
const {
208 if (index == op2.index) {
209 if (order == op2.order)
210 return (pos < op2.pos);
211 return (order < op2.order);
213 return (index < op2.index);
219 void setHeader(uint4 headerType) {
228 void setBlock(int4 i,uint4 ord) {
233 map<Subsort,Comment *> commmap;
234 mutable map<Subsort,Comment *>::const_iterator start;
235 map<Subsort,Comment *>::const_iterator stop;
236 map<Subsort,Comment *>::const_iterator opstop;
237 bool displayUnplacedComments;
245 bool hasNext(
void)
const {
return (start!=opstop); }
246 Comment *getNext(
void)
const {
Comment *res=(*start).second; ++start;
return res; }