dbMethodFastTrampoline Class Template Reference

#include <class.h>

Inheritance diagram for dbMethodFastTrampoline:

dbAnyMethodTrampoline

List of all members.


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.

Public Member Functions

dbAnyMethodTrampolineoptimize ()
 Get optimize trampoline.
void invoke (byte *data, void *result)
 Invoke method.
 dbMethodFastTrampoline (dbMethodTrampoline< T, R > *mt)

Private Types

typedef R(T::* mfunc )()

Private Attributes

mfunc method

Member Typedef Documentation

typedef R(T::* mfunc)() [private]


Constructor & Destructor Documentation

dbMethodFastTrampoline ( dbMethodTrampoline< T, R > *  mt  )  [inline]


Member Function Documentation

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

Returns:
optimized nethod trampoline

Implements dbAnyMethodTrampoline.

void 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.


Member Data Documentation

mfunc method [private]


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild