NX Open C++ Reference Guide
|
Template class for callbacks with no input arguments. More...
Public Member Functions | |
void | Add (const BaseClass &fn) |
Function to add callback function to list of callback functions. | |
Callback0List () | |
Constructor. | |
virtual BaseCallback * | Clone () const |
Function interface for clone operation. | |
virtual bool | Equals (const BaseCallback &other) const |
Function interface for equality operation. | |
virtual Result | operator() () const |
Function call operator for invoking callback functions in list. | |
bool | Remove (const BaseClass &fn) |
Function to remove the callback function from the list of callback functions. | |
virtual | ~Callback0List () |
Callback0List destructor. | |
![]() | |
virtual | ~Callback0 () |
Callback0 destructor. | |
![]() | |
virtual | ~BaseCallback () |
BaseCallback destructor. | |
Additional Inherited Members | |
![]() | |
typedef Result | ResultType |
Return type of callback function. | |
Template class for callbacks with no input arguments.
This template class manages a list of callback functions. The return type of the callback function is the template type Result.
NXOpen::Callback0List< Result >::Callback0List | ( | ) |
Constructor.
|
virtual |
Callback0List destructor.
Deletes all the callbacks in the list of callbacks.
void NXOpen::Callback0List< Result >::Add | ( | const BaseClass & | fn | ) |
Function to add callback function to list of callback functions.
|
virtual |
Function interface for clone operation.
Derived classes will define this function to implement a deep copy operation.
Implements NXOpen::BaseCallback.
|
virtual |
Function interface for equality operation.
Implements NXOpen::BaseCallback.
|
virtual |
Function call operator for invoking callback functions in list.
Callbacks are invoked in the order they were added to the list.
Implements NXOpen::Callback0< Result >.
bool NXOpen::Callback0List< Result >::Remove | ( | const BaseClass & | fn | ) |
Function to remove the callback function from the list of callback functions.
Uses the Equals method on the callback function to find the matching callback function in the list. Finds the first matching callback function in the list and removes it.