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

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

Inheritance diagram for NXOpen::Callback2Function< Result, Arg1, Arg2 >:
NXOpen::Callback2< Result, Arg1, Arg2 > NXOpen::BaseCallback

Public Types

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

Public Member Functions

 Callback2Function (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() (Arg1 a1, Arg2 a2) const
 Function call operator function to invoke callback function attached to this Callback2Function instance. More...
 

Detailed Description

template<class Result, class Arg1, class Arg2>
class NXOpen::Callback2Function< Result, Arg1, Arg2 >

Template class for callbacks with two input arguments.

The return type of the callback function is the template type Result.

Member Typedef Documentation

template<class Result , class Arg1 , class Arg2 >
typedef Result(* NXOpen::Callback2Function< Result, Arg1, Arg2 >::FunctionType)(Arg1, Arg2)

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

template<class Result , class Arg1 , class Arg2 >
typedef Callback2Function<Result, Arg1, Arg2> NXOpen::Callback2Function< Result, Arg1, Arg2 >::MyClass

Template typedef of class signature.

Used to simplify implementation of callback framework methods.

Constructor & Destructor Documentation

template<class Result , class Arg1 , class Arg2 >
NXOpen::Callback2Function< Result, Arg1, Arg2 >::Callback2Function ( FunctionType  fn)

Constructor.

Member Function Documentation

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

Function interface for equality operation.

Implements NXOpen::BaseCallback.

template<class Result , class Arg1 , class Arg2 >
virtual Result NXOpen::Callback2Function< Result, Arg1, Arg2 >::operator() ( Arg1  a1,
Arg2  a2 
) const
virtual

Function call operator function to invoke callback function attached to this Callback2Function instance.

Implements NXOpen::Callback2< Result, Arg1, Arg2 >.


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