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

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

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

Public Types

typedef Arg1 Arg1Type
 Type of first input argument of callback function. More...
 
typedef Result ResultType
 Return type of callback function. More...
 

Public Member Functions

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

Template base class for callbacks with one input argument.

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

Member Typedef Documentation

template<class Result , class Arg1 >
typedef Arg1 NXOpen::Callback1< Result, Arg1 >::Arg1Type

Type of first input argument of callback function.

template<class Result , class Arg1 >
typedef Result NXOpen::Callback1< Result, Arg1 >::ResultType

Return type of callback function.

Member Function Documentation

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


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