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

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

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

Public Types

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

virtual Result operator() (Arg1 a1, Arg2 a2) const =0
 Pure virtual function defining function call operator interface. More...
 
- Public Member Functions inherited from NXOpen::BaseCallback
virtual BaseCallbackClone () const =0
 Function interface for clone operation. More...
 
virtual bool Equals (const BaseCallback &other) const =0
 Function interface for equality operation. More...
 
virtual ~BaseCallback ()
 BaseCallback destructor. More...
 

Detailed Description

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

Template base 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 Arg1 NXOpen::Callback2< Result, Arg1, Arg2 >::Arg1Type

Type of first input argument of callback function.

template<class Result , class Arg1 , class Arg2 >
typedef Arg2 NXOpen::Callback2< Result, Arg1, Arg2 >::Arg2Type

Type of second input argument of callback function.

template<class Result , class Arg1 , class Arg2 >
typedef Result NXOpen::Callback2< Result, Arg1, Arg2 >::ResultType

Return type of callback function.

Member Function Documentation

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

Pure virtual function defining function call operator interface.

Derived callback classes will implement this function to invoke the callback function (or functions) attached to the callback class instance.

Implemented in NXOpen::Callback2List< Result, Arg1, Arg2 >, NXOpen::Callback2MemberFunction< T, Result, Arg1, Arg2 >, and NXOpen::Callback2Function< 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.