-// typedef ${STLHEADER}<ex> ${STLT};
-typedef ${STLHEADER}<ex,malloc_alloc> ${STLT}; // CINT does not like ${STLHEADER}<...,default_alloc>
+// typedef std::${STLHEADER}<ex> ${STLT};
+typedef std::${STLHEADER}<ex,malloc_alloc> ${STLT}; // CINT does not like ${STLHEADER}<...,default_alloc>
- void printraw(ostream & os) const;
- void print(ostream & os, unsigned upper_precedence=0) const;
- void printtree(ostream & os, unsigned indent) const;
+ void printraw(std::ostream & os) const;
+ void print(std::ostream & os, unsigned upper_precedence=0) const;
+ void printtree(std::ostream & os, unsigned indent) const;
- virtual void printseq(ostream & os, char openbracket, char delim,
+ virtual void printseq(std::ostream & os, char openbracket, char delim,
char closebracket, unsigned this_precedence,
unsigned upper_precedence=0) const;
virtual ex this${CONTAINER}(${STLT} const & v) const;
char closebracket, unsigned this_precedence,
unsigned upper_precedence=0) const;
virtual ex this${CONTAINER}(${STLT} const & v) const;
{
debugmsg("${CONTAINER} print",LOGLEVEL_PRINT);
// always print brackets around seq, ignore upper_precedence
printseq(os,'${open_bracket}',',','${close_bracket}',precedence,precedence+1);
}
{
debugmsg("${CONTAINER} print",LOGLEVEL_PRINT);
// always print brackets around seq, ignore upper_precedence
printseq(os,'${open_bracket}',',','${close_bracket}',precedence,precedence+1);
}
- os << string(indent,' ') << "type=" << typeid(*this).name()
- << ", hash=" << hashvalue << " (0x" << hex << hashvalue << dec << ")"
+ os << std::string(indent,' ') << "type=" << typeid(*this).name()
+ << ", hash=" << hashvalue
+ << " (0x" << std::hex << hashvalue << std::dec << ")"
for (${STLT}::const_iterator cit=seq.begin(); cit!=seq.end(); ++cit) {
(*cit).printtree(os,indent+delta_indent);
}
for (${STLT}::const_iterator cit=seq.begin(); cit!=seq.end(); ++cit) {
(*cit).printtree(os,indent+delta_indent);
}
-void ${CONTAINER}::printseq(ostream & os, char openbracket, char delim,
+void ${CONTAINER}::printseq(std::ostream & os, char openbracket, char delim,
char closebracket, unsigned this_precedence,
unsigned upper_precedence) const
{
char closebracket, unsigned this_precedence,
unsigned upper_precedence) const
{
for (++it; it!=seq.end(); it_last=it, ++it) {
if ((*it_last).compare(*it)>0) {
if ((*it_last).compare(*it)>0) {
for (++it; it!=seq.end(); it_last=it, ++it) {
if ((*it_last).compare(*it)>0) {
if ((*it_last).compare(*it)>0) {