OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
Loading...
Searching...
No Matches
functor.cpp
Go to the documentation of this file.
1
//-----------------------------------------------------------------------------
2
// Visual Database Tools
3
// Copyright (c) 1996 by Borland International, All Rights Reserved
4
//
5
/// \file
6
/// C++ Functor template implementation
7
///
8
/// Based on Functors described in
9
/// Rich Hickey's 'Callbacks in C++ using template functors' Feb 95 C++ Report
10
//
11
//-----------------------------------------------------------------------------
12
13
#include <
owl/pch.h
>
14
#include <
owl/defs.h
>
15
#include <
owl/functor.h
>
16
17
namespace
owl
{
18
19
//
20
// Functor base class constructor implentation
21
//
22
TFunctorBase::TFunctorBase
(
const
void
* c,
const
void
* f,
size_t
sz)
23
{
24
if
(c) {
25
Callee
=
const_cast<
void
*
>
(c);
26
memcpy(MemberFunc, f, sz);
27
}
28
else
{
29
Func = f;
30
}
31
}
32
33
}
// OWL namespace
34
owl::TFunctorBase::TFunctorBase
TFunctorBase()
Definition
functor.h:73
owl::TFunctorBase::Callee
void * Callee
Definition
functor.h:81
functor.h
C++ Functor template implementation.
pch.h
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
defs.h
General definitions used by all ObjectWindows programs.
source
owlcore
functor.cpp
Generated by
1.18.0