#include <method.hxx>


Public Member Functions | |
| MethodFunction | add (METHOD_ID const &id, MethodFunction func) |
Registers an implementation function for a method in this table and returns the current implementation function or NULL. | |
| MethodFunction | find (METHOD_ID const &id) |
Finds an implementation function for a method in this table and returns NULL if no function is registered for the method. | |
| METHOD_TABLE () | |
C++ constructor, creating a METHOD_TABLE. | |
| ~METHOD_TABLE () | |
C++ destructor, deleting a METHOD_TABLE. | |
Role: This class holds the table of runtime method implementation functions for a class. Each class that supports runtime methods declares a method table and provides a mechanism to register and execute methods in the table.
| METHOD_TABLE::METHOD_TABLE | ( | ) | [inline] |
C++ constructor, creating a METHOD_TABLE.
| METHOD_TABLE::~METHOD_TABLE | ( | ) |
C++ destructor, deleting a METHOD_TABLE.
| MethodFunction METHOD_TABLE::add | ( | METHOD_ID const & | id, | |
| MethodFunction | func | |||
| ) |
Registers an implementation function for a method in this table and returns the current implementation function or NULL.
| id | method ID. | |
| func | method function. |
| MethodFunction METHOD_TABLE::find | ( | METHOD_ID const & | id | ) |
Finds an implementation function for a method in this table and returns NULL if no function is registered for the method.
| id | method ID. |