mksqlite  2.5
A MATLAB interface to SQLite
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
ValueBase Class Reference

Base class for ValueMex and ValueSQL. More...

#include <value.hpp>

+ Inheritance diagram for ValueBase:

Public Member Functions

 ~ValueBase ()
 Dtor.
 

Public Attributes

bool m_isConst
 if flagged as non-const, class may swap memory ownership (custody)
 
union {
double m_float
 floating point representation
 
sqlite3_int64 m_integer
 integer representation
 
char * m_text
 text representation or allocated memory ()
 
mxArray * m_blob
 binary large object representation
 
mxArray * m_pcItem
 MATLAB variable representation.
 
tagNativeArraym_array
 self allocated variable representation
 
long long m_largest_field
 largest member used to copy entire union (dummy field)
 
}; 
 

Protected Member Functions

 ValueBase ()
 Standard ctor.
 
 ValueBase (const ValueBase &other)
 Copy ctor for constant objects.
 
 ValueBase (ValueBase &other)
 Move ctor for lvalues.
 
 ValueBase (ValueBase &&other)
 Move ctor for rvalues (temporary objects)
 
ValueBaseoperator= (const ValueBase &other)
 Assignment operator.
 
ValueBaseoperator= (ValueBase &other)
 Move assignment operator for lvalues.
 
ValueBaseoperator= (ValueBase &&other)
 Move assignment operator for rvalues (temporary objects)
 

Detailed Description

Base class for ValueMex and ValueSQL.

This class doesn't free objects' memory nor manage its lifetime! Member m_largest_field is only used to copy the content of the union.

Definition at line 58 of file value.hpp.


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