comma::SRDeclStencil Class Reference
A stencil to represent a subroutine declaration.
More...
#include <Stencil.h>
List of all members.
Detailed Description
A stencil to represent a subroutine declaration.
Definition at line 157 of file Stencil.h.
Member Typedef Documentation
Iterators over the parameters.
Definition at line 207 of file Stencil.h.
Container used to hold the subroutine parameters.
Definition at line 199 of file Stencil.h.
Member Enumeration Documentation
- Enumerator:
UNKNOWN_Stencil |
An uninitialized stencil.
|
FUNCTION_Stencil |
A function stencil.
|
PROCEDURE_Stencil |
A procedure stencil.
|
Definition at line 162 of file Stencil.h.
Constructor & Destructor Documentation
comma::SRDeclStencil::SRDeclStencil |
( |
|
) |
[inline] |
Member Function Documentation
void comma::SRDeclStencil::addParameter |
( |
ParamValueDecl * |
param |
) |
[inline] |
Adds a parameter declaration to this stencil.
Definition at line 187 of file Stencil.h.
Iterators over the parameters.
Definition at line 208 of file Stencil.h.
bool comma::SRDeclStencil::denotesFunction |
( |
|
) |
const [inline] |
Returns true if this stencil denotes a function.
Definition at line 184 of file Stencil.h.
bool comma::SRDeclStencil::denotesProcedure |
( |
|
) |
const [inline] |
Returns true if this stencil denotes a subroutine.
Definition at line 181 of file Stencil.h.
Iterators over the parameters.
Definition at line 209 of file Stencil.h.
ParamValueDecl* comma::SRDeclStencil::getParameter |
( |
unsigned |
i |
) |
[inline] |
Returns the i'th parameter asscoiated with this stencil.
Definition at line 193 of file Stencil.h.
const ParamVec& comma::SRDeclStencil::getParams |
( |
|
) |
const [inline] |
ParamVec& comma::SRDeclStencil::getParams |
( |
|
) |
[inline] |
Returns a direct reference to the vector of parameters.
Definition at line 202 of file Stencil.h.
TypeDecl* comma::SRDeclStencil::getReturnType |
( |
|
) |
[inline] |
Returns the return type of this stencil, or null if no return type info has been associated.
Definition at line 222 of file Stencil.h.
unsigned comma::SRDeclStencil::numParameters |
( |
|
) |
const [inline] |
Returns the number of parameters associated with this stencil.
Definition at line 190 of file Stencil.h.
void comma::SRDeclStencil::reset |
( |
|
) |
[inline, virtual] |
void comma::SRDeclStencil::setReturnType |
( |
TypeDecl * |
retTy |
) |
[inline] |
Sets the return type for this stencil. The stencil must have been initialized as a function stencil.
Definition at line 214 of file Stencil.h.
The documentation for this class was generated from the following file: