A FunctionParameter models the parameter of a function definition. More...
#include <FunctionParameter.h>
Public Member Functions | |
| FunctionParameter (const std::string &name, int t) | |
| Constructor. | |
| const std::string & | getName () const |
| It returns the function name. | |
| int | getType () const |
| It returns the parameter type. | |
| void | setName (const std::string &name) |
| It sets the function name. | |
| void | setType (int t) |
| It sets the parameter type. | |
| ~FunctionParameter () | |
| Destructor. | |
Private Attributes | |
| std::string | m_name |
| Parameter name. | |
| int | m_type |
| Parameter type. | |
A FunctionParameter models the parameter of a function definition.
Definition at line 46 of file FunctionParameter.h.
|
inline |
Constructor.
| name | The parameter name. |
| t | The parameter type. |
Definition at line 56 of file FunctionParameter.h.
|
inline |
Destructor.
Definition at line 59 of file FunctionParameter.h.
|
inline |
It returns the function name.
Definition at line 66 of file FunctionParameter.h.
References m_name.
|
inline |
It returns the parameter type.
Definition at line 80 of file FunctionParameter.h.
References m_type.
|
inline |
It sets the function name.
| name | The function name. |
Definition at line 73 of file FunctionParameter.h.
References m_name.
|
inline |
It sets the parameter type.
| t | The parameter type. |
Definition at line 87 of file FunctionParameter.h.
References m_type.
|
private |
Parameter name.
Definition at line 91 of file FunctionParameter.h.
Referenced by FunctionParameter(), getName(), and setName().
|
private |
Parameter type.
Definition at line 92 of file FunctionParameter.h.
Referenced by FunctionParameter(), getType(), and setType().