1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
#ifndef _UMLBASEFORMALPARAMETER_H
#define _UMLBASEFORMALPARAMETER_H
#include <qcstring.h>
#include "UmlTypeSpec.h"
// This class manages 'formal parameters' of a template class. For instance 'T' in
//
// template class Cl<class T> ...
class UmlBaseFormalParameter {
public:
UmlBaseFormalParameter() {};
// returns the name of the formal
const QCString & name() const { return _name; };
// returns the type of a formal, probably "class"
const QCString & type() const { return _type; };
// returns the default actual value
const UmlTypeSpec & defaultValue() const { return _default_value; };
// return the optional extend (Java)
const UmlTypeSpec & extend() { return _extends; };
friend class UmlBaseClass;
protected:
QCString _name;
// "class" ...
QCString _type;
UmlTypeSpec _default_value;
UmlTypeSpec _extends;
//internal, do NOT use it
void read_();
};
#endif
|