Generic Class. More...
#include <rprgclass.h>
Inheritance diagram for RPrgClass:
Collaboration diagram for RPrgClass:
Public Member Functions | |
int | Compare (const RPrgClass &c) const |
int | Compare (const RString &c) const |
RPrgFunc * | GetMethod (const RString &method) const |
RCursor< RPrgFunc > | GetMethods (void) const |
RString | GetName (void) const |
virtual RPrgVar * | NewVar (RInterpreter *prg, RPrgOutput *o, const RString &name, RContainer< RPrgVar, true, false > ¶ms)=0 |
RPrgClass (const RString &name) | |
virtual | ~RPrgClass (void) |
Protected Attributes | |
R::RContainer< RPrgFunc, true, true > | Methods |
RString | Name |
R::RContainer< RPrgVar, true, true > | Vars |
Detailed Description
Generic Class.
The RPrgClass provides a class for a generic class.
Constructor & Destructor Documentation
|
virtual |
Destruct the class.
Member Function Documentation
int Compare | ( | const RPrgClass & | c | ) | const |
This methods compares two classes using their names and works like the "strcpy" function of the ANSI C/C++ library.
- See also
- R::RContainer.
- Parameters
-
c Pointer to a class.
- Returns
- int
int Compare | ( | const RString & | c | ) | const |
This methods compares the name of a class with a string and works like the "strcpy" function of the ANSI C/C++ library.
- See also
- R::RContainer.
- Parameters
-
c String representing the name of a class.
- Returns
- int
RString GetName | ( | void | ) | const |
Get the name of the function.
|
pure virtual |
Create a variable.
- Parameters
-
prg Program asking the creation. o Output. name Name of the variable to create. params Parameters of the constructor.
- Returns
Implemented in RPrgStringClass.
Member Data Documentation
|
protected |
Name of the class.
|
protected |
Variables defined in the class.
|
protected |
Methods defined in the class.