~ubuntu-branches/ubuntu/wily/aspectc++/wily

« back to all changes in this revision

Viewing changes to Puma/src/parser/ccparser/DeducedArgument.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-09-18 10:46:03 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090918104603-fjfrjm7cze5w2kz5
Tags: 1.0pre4~svn.20090918-1
* New snapshot
* include patch from "Michael Bienia" <geser@ubuntu.com> to fix FTBFS
  with g++-4.4. Thanks! (Closes: #546175)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  CTree *arg;
38
38
  bool del;
39
39
  bool default_arg;
40
 
  
 
40
  bool direct_arg;
 
41
 
41
42
public:
42
 
  DeducedArgument (CTemplateParamInfo *, CTypeInfo *, CTree * = 0, bool = false);
43
 
  DeducedArgument (CTemplateParamInfo *, CConstant *, CTree * = 0, bool = false);
 
43
  DeducedArgument (CTemplateParamInfo *, CTypeInfo *, CTree * = 0, bool = false, bool = false);
 
44
  DeducedArgument (CTemplateParamInfo *, CConstant *, CTree * = 0, bool = false, bool = false);
44
45
  DeducedArgument (CTemplateParamInfo *, long);
45
46
  ~DeducedArgument ();
46
 
    
 
47
 
47
48
  bool operator ==(const DeducedArgument &);
48
49
  bool operator !=(const DeducedArgument &);
49
50
 
52
53
  CTemplateParamInfo *TemplateParam () const;
53
54
  CTree *TemplateArg () const;
54
55
  bool isDefaultArg () const;
 
56
  bool isDirectArg () const;
55
57
 
56
58
  /** Print the deduced argument, i.e. the type or constant value.
57
59
   *  \param os The output stream. */
58
60
  virtual void print (std::ostream &os) const;
59
61
};
60
 
  
 
62
 
61
63
inline CTypeInfo *DeducedArgument::Type () const
62
64
 { return type; }
63
65
inline CConstant *DeducedArgument::Value () const
68
70
 { return arg; }
69
71
inline bool DeducedArgument::isDefaultArg () const
70
72
 { return default_arg; }
 
73
inline bool DeducedArgument::isDirectArg () const
 
74
 { return direct_arg; }
71
75
inline bool DeducedArgument::operator !=(const DeducedArgument &d)
72
76
 { return !(*this == d); }
73
77