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

Template class for callbacks with no input arguments that are member functions of a class. More...

Inheritance diagram for NXOpen::Callback0MemberFunction< T, Result >:
NXOpen::Callback0< Result > NXOpen::BaseCallback

Public Types

typedef Result(T::* FunctionType )()
 Function signature for callback function attached to this template callback class. More...
 
typedef
Callback0MemberFunction< T,
Result > 
MyClass
 Template typedef of class signature. More...
 
- Public Types inherited from NXOpen::Callback0< Result >
typedef Result ResultType
 Return type of callback function. More...
 

Public Member Functions

 Callback0MemberFunction (T *object, FunctionType fn)
 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 function to invoke callback member function attached to this Callback0MemberFunction instance. 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...
 

Detailed Description

template<class T, class Result>
class NXOpen::Callback0MemberFunction< T, Result >

Template class for callbacks with no input arguments that are member functions of a class.

Template type T is the class that the callback function is a member function of. The return type of the callback function is the template type Result.

Member Typedef Documentation

template<class T , class Result >
typedef Result(T::* NXOpen::Callback0MemberFunction< T, Result >::FunctionType)()

Function signature for callback function attached to this template callback class.

template<class T , class Result >
typedef Callback0MemberFunction<T, Result> NXOpen::Callback0MemberFunction< T, Result >::MyClass

Template typedef of class signature.

Used to simplify implementation of callback framework methods.

Constructor & Destructor Documentation

template<class T , class Result >
NXOpen::Callback0MemberFunction< T, Result >::Callback0MemberFunction ( T *  object,
FunctionType  fn 
)

Constructor.

Member Function Documentation

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

Function interface for equality operation.

Implements NXOpen::BaseCallback.

template<class T , class Result >
virtual Result NXOpen::Callback0MemberFunction< T, Result >::operator() ( ) const
virtual

Function call operator function to invoke callback member function attached to this Callback0MemberFunction instance.

Implements NXOpen::Callback0< Result >.


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