Main Page   Class Hierarchy   Compound List   File List   Compound Members  

dbMethodTrampoline< T, R > Class Template Reference

#include <class.h>

Inheritance diagram for dbMethodTrampoline< T, R >:

dbAnyMethodTrampoline dbMethodFastTrampoline< T, R > List of all members.

Public Types

typedef R(T::* mfunc )()

Public Methods

void invoke (byte *data, void *result)
dbAnyMethodTrampolineoptimize ()
 dbMethodTrampoline (dbFieldDescriptor *fd, mfunc f)

Public Attributes

mfunc method
dbFieldDescriptorcls

Detailed Description

template<class T, class R>
class dbMethodTrampoline< T, R >

Template for method trampoline implementation


Member Function Documentation

template<class T, class R>
void dbMethodTrampoline< T, R >::invoke byte *    data,
void *    result
[inline, virtual]
 

Invoke method

Parameters:
data  pointer to the record insode database
result  pointer to place result in

Implements dbAnyMethodTrampoline.

Reimplemented in dbMethodFastTrampoline< T, R >.

template<class T, class R>
dbAnyMethodTrampoline * dbMethodTrampoline< T, R >::optimize   [inline, virtual]
 

Get optimize trampoline. Optimized trampoline can be used for records which format in the database is the same as in application. In this case there is no need to fetch record and pointer insode dataabse can be used intead

Returns:
optimized nethod trampoline

Implements dbAnyMethodTrampoline.


The documentation for this class was generated from the following file:
Generated on Fri Nov 15 21:06:30 2002 for FastDB by doxygen1.2.15