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

dbMethodFastTrampoline< T, R > Class Template Reference

#include <class.h>

Inheritance diagram for dbMethodFastTrampoline< T, R >:

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

Public Types

typedef R(T::* mfunc )()

Public Member Functions

void invoke (byte *data, void *result)
 dbMethodFastTrampoline (dbMethodTrampoline< T, R > *mt)
dbAnyMethodTrampolineoptimize ()
void * operator new (size_t size EXTRA_DEBUG_NEW_PARAMS)
void operator delete (void *p EXTRA_DEBUG_NEW_PARAMS)

Public Attributes

mfunc method
dbFieldDescriptorcls

Detailed Description

template<class T, class R>
class dbMethodFastTrampoline< T, R >

Optimized method trampoline which doesn't fetch record from the database and use direct pointer to the record inside database


Member Function Documentation

template<class T, class R>
void dbMethodFastTrampoline< 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

Reimplemented from dbMethodTrampoline< T, R >.

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

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 database can be used intead

Returns:
optimized nethod trampoline

Implements dbAnyMethodTrampoline.


The documentation for this class was generated from the following file:
Generated on Thu Feb 12 13:04:49 2004 for FastDB by doxygen 1.3.5