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

Template class for callbacks with one input argument. More...

Inheritance diagram for NXOpen::Callback1List< Result, Arg1 >:
NXOpen::Callback1< Result, Arg1 > NXOpen::BaseCallback

Public Member Functions

void Add (const BaseClass &fn)
 Function to add callback function to list of callback functions. More...
 
 Callback1List ()
 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() (Arg1 a1) 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 ~Callback1List ()
 Callback1List destructor. More...
 

Additional Inherited Members

- Public Types inherited from NXOpen::Callback1< Result, Arg1 >
typedef Arg1 Arg1Type
 Type of first input argument of callback function. More...
 
typedef Result ResultType
 Return type of callback function. More...
 

Detailed Description

template<class Result, class Arg1>
class NXOpen::Callback1List< Result, Arg1 >

Template class for callbacks with one input argument.

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 , class Arg1 >
NXOpen::Callback1List< Result, Arg1 >::Callback1List ( )

Constructor.

template<class Result , class Arg1 >
virtual NXOpen::Callback1List< Result, Arg1 >::~Callback1List ( )
virtual

Callback1List destructor.

Deletes all the callbacks in the list of callbacks.

Member Function Documentation

template<class Result , class Arg1 >
void NXOpen::Callback1List< Result, Arg1 >::Add ( const BaseClass fn)

Function to add callback function to list of callback functions.

template<class Result , class Arg1 >
virtual BaseCallback* NXOpen::Callback1List< Result, Arg1 >::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 , class Arg1 >
virtual bool NXOpen::Callback1List< Result, Arg1 >::Equals ( const BaseCallback other) const
virtual

Function interface for equality operation.

Implements NXOpen::BaseCallback.

template<class Result , class Arg1 >
virtual Result NXOpen::Callback1List< Result, Arg1 >::operator() ( Arg1  a1) 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::Callback1< Result, Arg1 >.

template<class Result , class Arg1 >
bool NXOpen::Callback1List< Result, Arg1 >::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.