NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::Callback0List< Result > Class Template Reference

Template class for callbacks with no input arguments. More...

Inheritance diagram for NXOpen::Callback0List< Result >:
NXOpen::Callback0< Result > NXOpen::BaseCallback

Public Member Functions

void Add (const BaseClass &fn)
 Function to add callback function to list of callback functions. More...
 
 Callback0List ()
 Constructor. More...
 
virtual BaseCallbackClone () const
 Function interface for clone operation. More...
 
virtual bool Equals (const BaseCallback &other) const
 Function interface for equality operation. More...
 
virtual Result operator() () const
 Function call operator for invoking callback functions in list. More...
 
bool Remove (const BaseClass &fn)
 Function to remove the callback function from the list of callback functions. More...
 
virtual ~Callback0List ()
 Callback0List destructor. More...
 
- Public Member Functions inherited from NXOpen::Callback0< Result >
virtual ~Callback0 ()
 Callback0 destructor. More...
 
- Public Member Functions inherited from NXOpen::BaseCallback
virtual ~BaseCallback ()
 BaseCallback destructor. More...
 

Additional Inherited Members

- Public Types inherited from NXOpen::Callback0< Result >
typedef Result ResultType
 Return type of callback function. More...
 

Detailed Description

template<class Result>
class NXOpen::Callback0List< Result >

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.

Constructor & Destructor Documentation

template<class Result >
NXOpen::Callback0List< Result >::Callback0List ( )

Constructor.

template<class Result >
virtual NXOpen::Callback0List< Result >::~Callback0List ( )
virtual

Callback0List destructor.

Deletes all the callbacks in the list of callbacks.

Member Function Documentation

template<class Result >
void NXOpen::Callback0List< Result >::Add ( const BaseClass fn)

Function to add callback function to list of callback functions.

template<class Result >
virtual BaseCallback* NXOpen::Callback0List< Result >::Clone ( ) const
virtual

Function interface for clone operation.

Derived classes will define this function to implement a deep copy operation.

Implements NXOpen::BaseCallback.

template<class Result >
virtual bool NXOpen::Callback0List< Result >::Equals ( const BaseCallback other) const
virtual

Function interface for equality operation.

Implements NXOpen::BaseCallback.

template<class Result >
virtual Result NXOpen::Callback0List< Result >::operator() ( ) const
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 >.

template<class 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.


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.