~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/inc/Puma/CTypeInfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
class CT_ExprList;
49
49
class CObjectInfo;
50
50
class CScopeInfo;
 
51
class CTemplateParamInfo;
51
52
//class ostream;
52
53
 
53
54
class CTypeInfo : public Printable {
57
58
    PRINT_PRE = 1,  // printing a declarator prefix like '*' or '&'
58
59
    PRINT_ABS = 2,  // printing absolute names
59
60
    PRINT_TPL = 4,  // printing template argument list
60
 
    PRINT_TDN = 8   // print typedef names instead of defined type
 
61
    PRINT_TDN = 8,  // print typedef names instead of defined type
 
62
    PRINT_ELA = 16  // print elaborated type specifiers (struct, enum, union)
61
63
  };
62
64
 
63
65
public:
118
120
  bool operator !=(const CTypeInfo &) const;
119
121
  
120
122
  void print (ostream& os) const;
121
 
  void TypeText (ostream &, const char * = (const char*)0,
122
 
                 bool abs = false, bool tdef = false) const;
 
123
  void TypeText (ostream &, const char *name = (const char*)0,
 
124
                 bool abs = false, bool tdef = false, 
 
125
                 bool elaborated_type_spec = false) const;
123
126
  long int Dimension () const;
124
127
  
125
128
  long int Size () const;
251
254
  void Mangled (ostream &) const;
252
255
 
253
256
private:
 
257
  bool equalTemplateParams (CTemplateParamInfo *p1, CTemplateParamInfo *p2) const;
254
258
  void TypeText (char, ostream &, const char * = (const char*)0) const;
255
259
  void printName (char, ostream &, CObjectInfo *) const;
256
260
  void printScope (char, ostream &, CObjectInfo *) const;
302
306
 
303
307
inline void CTypeInfo::print (ostream& out) const 
304
308
 { TypeText ((char)PRINT_STD, out); }
305
 
inline void CTypeInfo::TypeText (ostream &out, const char *t, bool abs, bool tdef) const
 
309
inline void CTypeInfo::TypeText (ostream &out, const char *t, bool abs, bool tdef, bool elaborated_type_spec) const
306
310
 { char flags = (char)(abs ? PRINT_ABS : PRINT_STD);
307
 
   if (tdef) flags |= (char)PRINT_TDN; TypeText (flags, out, t); }
 
311
   if (tdef) flags |= (char)PRINT_TDN; 
 
312
   if (elaborated_type_spec) flags |= (char)PRINT_ELA;
 
313
   TypeText (flags, out, t); }
308
314
 
309
315
inline long int CTypeInfo::Dimension () const
310
316
 { return TypeArray () ? TypeArray ()->Dimension () :