Purpose:
|
Holds the table of runtime method implementation functions for a class.
|
|
Derivation:
|
METHOD_TABLE : ACIS_OBJECT : -
|
|
Filename:
|
kern/kernel/kerndata/data/method.hxx
|
|
Description:
|
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:
|
public: METHOD_TABLE::METHOD_TABLE
();
|
|
|
C++ constructor, creating a
METHOD_TABLE.
|
|
|
|
|
Destructor:
|
public: METHOD_TABLE::~METHOD_TABLE
();
|
|
|
C++ destructor, deleting a
METHOD_TABLE.
|
|
|
|
Methods:
|
public: MethodFunction METHOD_TABLE::add
(
|
|
|
METHOD_ID const& id,
|
// method ID
|
|
|
MethodFunction func
|
// method function
|
|
|
);
|
|
|
Registers an implementation function for a method in this table. This method returns the current implementation function or
NULL
|
|
|
|
|
|
|
public: MethodFunction METHOD_TABLE::find
(
|
|
|
METHOD_ID const& id
|
// method ID
|
|
|
);
|
|
|
Finds an implementation function for a method in this table. This method returns
NULL if no function is registered for the method.
|