Main Page | Class Hierarchy | Class List | File List | Class Members

dbMethodTrampoline< T, R > Class Template Reference

#include <class.h>

Inheritance diagram for dbMethodTrampoline< T, R >:

dbAnyMethodTrampoline List of all members.

Public Types

typedef R(T::* mfunc )()

Public Member Functions

void invoke (byte *data, void *result)
dbAnyMethodTrampolineoptimize ()
 dbMethodTrampoline (dbFieldDescriptor *fd, mfunc f)
void * operator new (size_t size)
void operator delete (void *p)

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.

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 Thu Nov 24 23:14:30 2005 for GigaBASE by doxygen 1.3.5