Puma::CArgumentInfo Class Reference

#include <Puma/infos/CArgumentInfo.h>

Inheritance diagram for Puma::CArgumentInfo:

Inheritance graph

List of all members.


Detailed Description

A CArgumentInfo object represents a function parameter declaration.

Public Member Functions

 CArgumentInfo ()
 ~CArgumentInfo ()
CT_ExprListInit () const
bool hasDefaultArg () const
void hasDefaultArg (bool)

Constructor & Destructor Documentation

Puma::CArgumentInfo::CArgumentInfo (  )  [inline]

Construct a function parameter info.

Puma::CArgumentInfo::~CArgumentInfo (  ) 

Destruct the function parameter info. If the object id is ARGUMENT_INFO, Puma::CObjectInfo::CleanUp() is called.


Member Function Documentation

CT_ExprList* Puma::CArgumentInfo::Init (  )  const

Get the default argument of the parameter.

Returns:
The syntax tree node of the default argument or NULL if parameter has no default argument.

Reimplemented from Puma::CObjectInfo.

bool Puma::CArgumentInfo::hasDefaultArg (  )  const [inline]

Return true if the parameter has a default argument.

void Puma::CArgumentInfo::hasDefaultArg ( bool  has_arg  )  [inline]

Set whether the parameter has a default argument.


Generated on Sat May 10 03:03:49 2008 for Puma by  doxygen 1.5.5