~ubuntu-branches/ubuntu/jaunty/aspectc++/jaunty

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-07-07 14:41:02 UTC
  • mfrom: (1.1.3 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080707144102-lzml7t07f3sl00r5
Tags: 1.0pre4~svn.20080711-1
* new upstream snapshot.
* include all upstream documentation. Clarifying emails regarding
  licensing has been included into debian/copyright.
* reformat description following recomendations of
  http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description
  (Closes: #480316)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef __CArgumentInfo_h__
20
20
#define __CArgumentInfo_h__
21
21
 
22
 
// function parameter info
 
22
/** \file 
 
23
 *  Semantic information about a function parameter. */
23
24
 
24
25
#include "Puma/CScopeRequest.h"
25
26
 
26
27
namespace Puma {
27
28
 
28
29
 
29
 
/** \file 
30
 
 *  Representation of a function parameter.
31
 
 *  \see Puma::CArgumentInfo */
32
 
 
33
 
/** \class CArgumentInfo CArgumentInfo.h Puma/infos/CArgumentInfo.h
34
 
 *  A CArgumentInfo object represents a function parameter declaration. */
 
30
/** \class CArgumentInfo CArgumentInfo.h Puma/CArgumentInfo.h
 
31
 *  Semantic information about a function parameter. */
35
32
class CArgumentInfo : public CScopeRequest {
36
33
  bool _hasDefaultArg; // can be set to true even without an init tree
37
34
                       // (needed for inline member functions)
38
35
public: 
39
 
  /** Construct a function parameter info. */
 
36
  /** Constructor. */
40
37
  CArgumentInfo ();
41
 
  /** Destruct the function parameter info. If the object id is 
42
 
   *  \c ARGUMENT_INFO, Puma::CObjectInfo::CleanUp() is called. */
 
38
  /** Destructor. If the object type is CObjectInfo::ARGUMENT_INFO, 
 
39
   *  then CObjectInfo::CleanUp() is called. */
43
40
  ~CArgumentInfo ();
44
41
 
45
42
  /** Get the default argument of the parameter.
46
43
   *  \return The syntax tree node of the default argument or
47
 
   *          \c NULL if parameter has no default argument. */
 
44
   *          NULL if the parameter has no default argument. */
48
45
  CT_ExprList *Init () const;
49
46
  /** Return \e true if the parameter has a default argument. */
50
47
  bool hasDefaultArg () const;  
51
 
  /** Set whether the parameter has a default argument. */
52
 
  void hasDefaultArg (bool);  
 
48
  /** Set whether the parameter has a default argument. 
 
49
   *  \param v True for yes, false for no. */
 
50
  void hasDefaultArg (bool v);  
53
51
};
54
52
 
55
53
inline CArgumentInfo::CArgumentInfo () :