#include <RefinableObj.h>
Public Methods | |
RefParType (const string &name) | |
Create a top parameter type. (in ObjCryst, there is only one, the "ObjCryst" category. | |
RefParType (const RefParType *parent, const string &name) | |
create a children type. | |
~RefParType () | |
Destructor. | |
bool | IsDescendantFromOrSameAs (const RefParType *type) const |
Returns true if the parameter is a descendant of 'type'. | |
bool | operator== (const RefParType *parent) const |
returns true if the two types are the same. | |
const string & | GetName () const |
Get the name for this parameter. | |
Private Attributes | |
const RefParType * | mpParent |
the parent for this RefParType (we could easily allow several...). | |
const string | mName |
The name/description for this parameter type. |
This is used to categorize all parameters, to be able to modify a complete category of parameters (fix/unfix, set limits,...). The types are organized as a tree.
Parameters should be allocated globally in the heap, so we only use pointers in the interface.