mksqlite  2.5
A MATLAB interface to SQLite
Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
MexFunctors Class Reference

Functors for SQL application-defined (aggregation) functions. More...

#include <sql_interface.hpp>

+ Collaboration diagram for MexFunctors:

Public Types

enum  { FCN, STEP, FINAL }
 

Public Member Functions

 MexFunctors (ValueMex &exception, const ValueMex &func, const ValueMex &step, const ValueMex &final)
 Ctor.
 
 MexFunctors (MexFunctors &other)
 Copy Ctor.
 
 MexFunctors (MexFunctors &&other)
 Move Ctor.
 
MexFunctorsoperator= (const MexFunctors &other)
 Copy assignment.
 
MexFunctorsoperator= (MexFunctors &&other)
 Move assignment.
 
 ~MexFunctors ()
 Dtor.
 
void swapException (ValueMex &exception)
 Exchange exception stack information.
 
void initGroupData ()
 Initialize data for "step" and "final" function.
 
ValueMexgetData ()
 Return data array from "step" and "final" function.
 
const ValueMexgetFunc (int nr) const
 Return one of the functors (function, init or final)
 
ValueMex dupFunc (int nr) const
 Duplicate one of the functors (function, init or final)
 
bool checkFunc (int nr) const
 Check if function handle is valid (not empty and of functon handle class)
 
bool IsEmpty () const
 Check if one of the functors is empty.
 
bool IsValid () const
 Check if all functors are valid.
 

Public Attributes

bool m_busy
 true, if function is in progress to prevent recursive calls
 

Private Member Functions

 MexFunctors ()
 inhibit standard Ctor
 
 MexFunctors (const MexFunctors &other)
 Copy Ctor.
 

Private Attributes

ValueMex m_functors [3]
 Function handles (function, step, final)
 
ValueMex m_group_data
 Data container for "step" and "final" functions.
 
ValueMexm_pexception
 Exception stack information.
 

Detailed Description

Functors for SQL application-defined (aggregation) functions.

Definition at line 172 of file sql_interface.hpp.


The documentation for this class was generated from the following file: