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

Template class for callbacks with one input argument that are member functions of a class. More...

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

Public Types

typedef Result(T::* FunctionType )(Arg1)
 Function signature for callback function attached to this template callback class.
 
typedef
Callback1MemberFunction< T,
Result, Arg1 > 
MyClass
 Template typedef of class signature.
 
- Public Types inherited from NXOpen::Callback1< Result, Arg1 >
typedef Arg1 Arg1Type
 Type of first input argument of callback function.
 
typedef Result ResultType
 Return type of callback function.
 

Public Member Functions

 Callback1MemberFunction (T *object, FunctionType fn)
 Constructor.
 
virtual BaseCallbackClone () const
 Function interface for clone operation.
 
virtual bool Equals (const BaseCallback &other) const
 Function interface for equality operation.
 
virtual Result operator() (Arg1 a1) const
 Function call operator function to invoke callback member function attached to this Callback1MemberFunction instance.
 

Detailed Description

template<class T, class Result, class Arg1>
class NXOpen::Callback1MemberFunction< T, Result, Arg1 >

Template class for callbacks with one input argument 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 , class Arg1 >
typedef Result(T::* NXOpen::Callback1MemberFunction< T, Result, Arg1 >::FunctionType)(Arg1)

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

template<class T , class Result , class Arg1 >
typedef Callback1MemberFunction<T, Result, Arg1> NXOpen::Callback1MemberFunction< T, Result, Arg1 >::MyClass

Template typedef of class signature.

Used to simplify implementation of callback framework methods.

Constructor & Destructor Documentation

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

Constructor.

Member Function Documentation

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

Function interface for equality operation.

Implements NXOpen::BaseCallback.

template<class T , class Result , class Arg1 >
virtual Result NXOpen::Callback1MemberFunction< T, Result, Arg1 >::operator() ( Arg1  a1) const
virtual

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

Implements NXOpen::Callback1< Result, Arg1 >.


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