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

« back to all changes in this revision

Viewing changes to Puma/src/infos/CTypeArray.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:
32
32
  bool _isFixed;
33
33
  CTypeQualified *_Quals;
34
34
  CTypeTemplateParam *_DepDim;
 
35
  bool _hasDim;
35
36
 
36
37
protected:
37
38
  CTypeArray (CTypeInfo *, CTypeQualified *, TypeId);
38
39
  
39
40
public:
40
 
  CTypeArray (CTypeInfo *, CTypeQualified * = 0);
 
41
  CTypeArray (CTypeInfo *, CTypeQualified * = 0, bool has_dimension = false);
41
42
  ~CTypeArray ();
42
43
 
43
44
  void Dimension (long int);
46
47
  void isFixed (bool);
47
48
  bool isFixed () const;
48
49
  
 
50
  void hasDimension (bool);
 
51
  bool hasDimension () const;
 
52
  
49
53
  CTypeQualified *Qualifiers () const;
50
54
  
51
55
  void DepDim (CTypeTemplateParam *);
52
56
  CTypeTemplateParam *DepDim () const;
53
57
};
54
58
 
55
 
inline CTypeArray::CTypeArray (CTypeInfo *base, CTypeQualified *quals) :
 
59
inline CTypeArray::CTypeArray (CTypeInfo *base, CTypeQualified *quals, bool has_dimension) :
56
60
  CTypeInfo (base, CTypeInfo::TYPE_ARRAY),
57
61
  _Size (0),
58
62
  _isFixed (false),
59
63
  _Quals (quals),
60
 
  _DepDim (0)
 
64
  _DepDim (0),
 
65
  _hasDim (has_dimension)
61
66
 {}
62
67
inline CTypeArray::CTypeArray (CTypeInfo *base, CTypeQualified *quals, CTypeInfo::TypeId id) :
63
68
  CTypeInfo (base, id),
64
69
  _Size (0),
65
70
  _isFixed (false),
66
71
  _Quals (quals),
67
 
  _DepDim (0)
 
72
  _DepDim (0),
 
73
  _hasDim (false)
68
74
 {}
69
75
inline CTypeArray::~CTypeArray ()
70
76
 { if (_Quals) CTypeInfo::Destroy (_Quals); }
79
85
inline bool CTypeArray::isFixed () const
80
86
 { return _isFixed; }
81
87
 
 
88
inline void CTypeArray::hasDimension (bool v)
 
89
 { _hasDim = v; }
 
90
inline bool CTypeArray::hasDimension () const
 
91
 { return _hasDim || _Size != 0; }
 
92
 
82
93
inline CTypeQualified *CTypeArray::Qualifiers () const
83
94
 { return _Quals; }
84
95