Detailed Description
The class Parameter contains one parameter.
A parameter can be a function parameter or a macro parameter.
Member Function Documentation
Parameter::Parameter()
Parameter::Parameter(const QString & leftType, const QString & rightType = "", const QString & name = "", const QString & defaultValue = "")
Constructs this parameter from the left and right types leftType and rightType, the parameter name, and the defaultValue. In practice, rightType is not used, and I don't know what is was meant for.
Parameter::Parameter(const Parameter & p)
The standard copy constructor copies the strings from p.
const QString & Parameter::defaultValue() const
bool Parameter::hasType() const
const QString & Parameter::leftType() const
const QString & Parameter::name() const
See also setName().
QString Parameter::reconstruct(bool value = false) const
Reconstructs the text describing the parameter and returns it. If value is true, the default value will be included, if there is one.
const QString & Parameter::rightType() const
void Parameter::setName(const QString & name)
See also name().
Parameter & Parameter::operator=(const Parameter & p)
Assigning Parameter p to this Parameter copies the strings across.