Home

METHOD_TABLE Class Reference
[Kernel Functionality]

Holds the table of runtime method implementation functions for a class. More...

#include <method.hxx>

Inheritance diagram for METHOD_TABLE:

Inheritance graph
[legend]
Collaboration diagram for METHOD_TABLE:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

Holds the table of runtime method implementation functions for a class.



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.


Constructor & Destructor Documentation

METHOD_TABLE::METHOD_TABLE (  )  [inline]

C++ constructor, creating a METHOD_TABLE.

METHOD_TABLE::~METHOD_TABLE (  ) 

C++ destructor, deleting a METHOD_TABLE.


Member Function Documentation

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.



Parameters:
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.



Parameters:
id method ID.