te::da::FunctionParameter Class Reference

A FunctionParameter models the parameter of a function definition. More...

#include <FunctionParameter.h>

Public Member Functions

 FunctionParameter (const std::string &name, int t)
 Constructor. More...
 
const std::string & getName () const
 It returns the function name. More...
 
int getType () const
 It returns the parameter type. More...
 
void setName (const std::string &name)
 It sets the function name. More...
 
void setType (int t)
 It sets the parameter type. More...
 
 ~FunctionParameter ()
 Destructor. More...
 

Private Attributes

std::string m_name
 Parameter name. More...
 
int m_type
 Parameter type. More...
 

Detailed Description

A FunctionParameter models the parameter of a function definition.

See also
FunctionDefn

Definition at line 46 of file FunctionParameter.h.

Constructor & Destructor Documentation

te::da::FunctionParameter::FunctionParameter ( const std::string &  name,
int  t 
)
inline

Constructor.

Parameters
nameThe parameter name.
tThe parameter type.

Definition at line 56 of file FunctionParameter.h.

te::da::FunctionParameter::~FunctionParameter ( )
inline

Destructor.

Definition at line 59 of file FunctionParameter.h.

Member Function Documentation

const std::string& te::da::FunctionParameter::getName ( ) const
inline

It returns the function name.

Returns
The function name.

Definition at line 66 of file FunctionParameter.h.

int te::da::FunctionParameter::getType ( ) const
inline

It returns the parameter type.

Returns
The parameter type.

Definition at line 80 of file FunctionParameter.h.

void te::da::FunctionParameter::setName ( const std::string &  name)
inline

It sets the function name.

Parameters
nameThe function name.

Definition at line 73 of file FunctionParameter.h.

void te::da::FunctionParameter::setType ( int  t)
inline

It sets the parameter type.

Parameters
tThe parameter type.

Definition at line 87 of file FunctionParameter.h.

Member Data Documentation

std::string te::da::FunctionParameter::m_name
private

Parameter name.

Definition at line 91 of file FunctionParameter.h.

int te::da::FunctionParameter::m_type
private

Parameter type.

Definition at line 92 of file FunctionParameter.h.


The documentation for this class was generated from the following file: