OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
base
ossimCallback2wRet.h
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
//
3
// File: ossimCallback2wRet.h
4
//
5
// License: MIT
6
//
7
// See LICENSE.txt file in the top level directory for more details.
8
//
9
// Author: David Burken
10
//
11
// Description:
12
//
13
// Simple templated callback class that takes a two parameters(arguments) "P1"
14
// and has a return "RT".
15
//
16
// See link for more detail description:
17
// http://www.tutok.sk/fastgl/callback.html
18
//
19
//----------------------------------------------------------------------------
20
// $Id$
21
22
#ifndef ossimCallback2wRet_HEADER
23
#define ossimCallback2wRet_HEADER 1
24
74
template
<
class
P1,
class
P2,
class
RT>
class
ossimCallback2wRet
75
{
76
public
:
77
ossimCallback2wRet
(){}
78
virtual
~ossimCallback2wRet
(){}
79
virtual
RT
operator()
(P1 p1, P2 p2)
const
= 0;
80
};
81
82
#endif
/* #ifndef ossimCallback2wRet_HEADER */
ossimCallback2wRet::operator()
virtual RT operator()(P1 p1, P2 p2) const =0
ossimCallback2wRet
Usage example, note template params can be anything:
Definition:
ossimCallback2wRet.h:74
ossimCallback2wRet::~ossimCallback2wRet
virtual ~ossimCallback2wRet()
Definition:
ossimCallback2wRet.h:78
ossimCallback2wRet::ossimCallback2wRet
ossimCallback2wRet()
Definition:
ossimCallback2wRet.h:77
Generated on Fri Aug 3 2018 08:46:45 for OSSIM - Open Source Software Image Map by
1.8.14