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

« back to all changes in this revision

Viewing changes to Puma/src/infos/CEnumeratorInfo.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:
24
24
 
25
25
#include "Puma/CAttributeInfo.h"
26
26
#include "Puma/CTypeInfo.h"
 
27
#include "Puma/Limits.h"
27
28
 
28
29
namespace Puma {
29
30
 
40
41
 *  A CEnumeratorInfo object represents an enumerator constant. */
41
42
class CEnumeratorInfo : public CAttributeInfo {
42
43
  CEnumInfo *_Enum;
43
 
  long int _Value;
 
44
  LONG_LONG _Value;
44
45
 
45
46
public: 
46
47
  /** Construct a new enumerator info. */
61
62
   *  \return The syntax tree node or \c NULL if no initializer. */
62
63
  CT_ExprList *Init () const;
63
64
  
 
65
  /** Get the underlying value type. */
 
66
  CTypeInfo *UnderlyingType () const;
 
67
 
64
68
  /** Get the corresponding enumeration info. */
65
69
  CEnumInfo *Enum () const;
66
70
  /** Set the enumeration info.
68
72
  void Enum (CEnumInfo *ei);
69
73
 
70
74
  /** Get the constant value of the enumerator. */
71
 
  long int Value () const;
 
75
  LONG_LONG Value () const;
72
76
  /** Set the value of the enumerator constant. 
73
77
   *  \param v The value of the enumerator. */
74
 
  void Value (long int v);
 
78
  void Value (LONG_LONG v);
75
79
};
76
80
 
77
81
inline CEnumeratorInfo::CEnumeratorInfo () :
82
86
 
83
87
inline void CEnumeratorInfo::Enum (CEnumInfo *e) 
84
88
 { _Enum = e; }
85
 
inline void CEnumeratorInfo::Value (long int v) 
 
89
inline void CEnumeratorInfo::Value (LONG_LONG v) 
86
90
 { _Value = v; }
87
91
 
88
92
inline CEnumInfo *CEnumeratorInfo::Enum () const 
89
93
 { return _Enum; }
90
 
inline long int CEnumeratorInfo::Value () const 
 
94
inline LONG_LONG CEnumeratorInfo::Value () const 
91
95
 { return _Value; }
92
96
 
93
97
inline CEnumeratorInfo *CEnumeratorInfo::BaseObject () const
94
98
 { return (CEnumeratorInfo*)CObjectInfo::BaseObject (); }
95
99
 
96
 
 
97
100
} // namespace Puma
98
101
 
99
102
#endif /* __CEnumeratorInfo_h__ */