theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3ValueC_cc.hh
Go to the documentation of this file.
1
9/* LABEL-INIT */
10
11#pragma once
12
13namespace ccsq3lite {
14
17 typedef struct {
21
24 class Sq3ValueC : public MkObjectC {
25
26 friend class Sq3Lite;
27
28 static inline MK_PTR Sq3ValueC_selfCreateTLS (MK_OBJ obj);
29
30/* LABEL-START */
31
34
35 public:
36 static thread_local Sq3ValueC MK_NULL_REF;
37
38 private:
39
40 static Sq3ValueC* Sq3ValueC_GetSelf (SQ3_VAL hdl) {
41 return (hdl != NULL ? static_cast<Sq3ValueC*>((*Sq3ValueC_X2obj(hdl)).self) : &MK_NULL_REF);
42 }
43
44 #ifdef Sq3ValueC_selfCreate_overload
45 static MK_PTR Sq3ValueC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env);
46 #else
47 static MK_PTR Sq3ValueC_selfCreate (MK_RT_ARGS MK_OBJ obj, MK_PTR const env) {
48 return new Sq3ValueC(obj);
49 }
50 #endif
51
52 static void Sq3ValueC_selfDelete (MK_RT_ARGS MK_PTR self, MK_PTR env) {
53 delete static_cast<Sq3ValueC*>(self);
54 }
55
56 static void Sq3ValueC_selfUnlink (MK_RT_ARGS MK_PTR self, MK_PTR env) {
57 Sq3ValueC* selfO = static_cast<Sq3ValueC*>(self);
58 selfO->atomUnlink();
59 }
60
61 void Sq3ValueC_Init (SQ3_VAL hdl) { atomInit(Sq3ValueC_X2obj(hdl)); };
62
63
64 static Sq3ValueC* Sq3ValueC_ObjCreate (MK_RT_ARGS SQ3_VAL hdl) {
65 return static_cast<Sq3ValueC*>(MkObjectC::atomObjCreate(MK_RT_CALL Sq3ValueC_X2obj(hdl)));
66 }
67
68#ifndef META_IS_MkObjectC
69 Sq3ValueC (MK_OBJ obj) : MkObjectC(obj) {};
70#endif
71
72 public:
73
74#ifndef META_IS_MkObjectC
76#endif
77
82
84 SQ3_VAL getVAL() const {
85 SQ3_VAL ret = reinterpret_cast<SQ3_VAL>(hdl);
86 if (unlikely(ret == NULL)) InstHdlIsNullError();
87 return ret;
88 };
89
92 return reinterpret_cast<SQ3_VAL>(hdl);
93 };
94
96 SQ3_VALN getVALN() const {
97 SQ3_VALN ret = reinterpret_cast<SQ3_VALN>(hdl);
98 if (unlikely(ret == NULL)) InstHdlIsNullError();
99 return ret;
100 };
101
104 return reinterpret_cast<SQ3_VALN>(hdl);
105 };
106
108 static SQ3_VAL getVAL(Sq3ValueC* clsHdl) {
109 SQ3_VAL ret = clsHdl ? reinterpret_cast<SQ3_VAL>(clsHdl->hdl) : NULL;
110 if (unlikely(ret == NULL)) ClassHdlIsNullError(Sq3ValueC);
111 return ret;
112 };
113
116 return clsHdl ? reinterpret_cast<SQ3_VAL>(clsHdl->hdl) : NULL;
117 };
118
120 static SQ3_VALN getVALN(const Sq3ValueC* clsHdl) {
121 SQ3_VALN ret = clsHdl ? reinterpret_cast<SQ3_VALN>(clsHdl->hdl) : NULL;
122 if (unlikely(ret == NULL)) ClassHdlIsNullError(Sq3ValueC);
123 return ret;
124 };
125
127 static SQ3_VALN getVALN__null_allow(const Sq3ValueC* clsHdl) {
128 return clsHdl ? reinterpret_cast<SQ3_VALN>(clsHdl->hdl) : NULL;
129 };
130
132 static SQ3_VAL getVAL(const Sq3ValueC& clsHdl) {
133 return clsHdl.getVAL();
134 };
135
137 static SQ3_VAL getVAL__null_allow(const Sq3ValueC& clsHdl) {
138 return clsHdl.getVAL__null_allow();
139 };
140
142 static SQ3_VALN getVALN(const Sq3ValueC& clsHdl) {
143 return clsHdl.getVALN();
144 };
145
147 static SQ3_VALN getVALN__null_allow(const Sq3ValueC& clsHdl) {
148 return clsHdl.getVALN__null_allow();
149 };
150
152 bool Check() const {
153 return (hdl && Sq3ValCheck(hdl));
154 };
155
156/* LABEL-END */
157
158 public:
159
160/* no COPY constructor
161 Sq3ValueC (const Sq3ValueC* hdl);
162 Sq3ValueC (const Sq3ValueC& ref);
163 Sq3ValueC& operator= (const Sq3ValueC& buf);
164 Sq3ValueC& operator= (const Sq3ValueC* buf);
165*/
166
167 // BEGIN-Sq3ValueC - created by 'cc_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
168
172
173 public:
174
175 // doc-key: Sq3ValueC,Sq3ValueC-Class-Export,sc_,public
176
178 static Sq3ValueC* HandleResolve (MK_HDL netHdl);
179
180 // doc-key: Sq3ValueC,Sq3ValueC-Class-Export,om_,public
181
182 // skip class-overload: MK_HDL HandleGet ()
183
185 // Sq3ValueC_Class_CC_API
186
190
191 public:
192
193 // doc-key: Sq3ValueC,Sq3ValueC-Class-Introspection,oc_,public
194
196 Sq3ValueC* Next ();
197
199 Sq3ValueC* Prev ();
200
201 // doc-key: Sq3ValueC,Sq3ValueC-Class-Introspection,sc_,public
202
204 static Sq3ValueC* Instances ();
205
207 // Sq3ValueC_Class_CC_API
208
212
213 public:
214
215 // doc-key: Sq3ValueC,Sq3ValueC-Class-Misc,sc_,public
216
218 static Sq3ValueC* GetNull ();
219
221 // Sq3ValueC_Class_CC_API
222
226
227 public:
228
229 // doc-key: Sq3ValueC,Sq3ValueC-Info,om_,public
230
232 Sq3TextE Bytes () const;
233
235 Sq3TextE Encoding () const;
236
238 MK_BOOL FromBind () const;
239
240 // skip class-overload: void Log (const MkObjectC* fmtobj = NULL, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const
241
242 // skip class-overload: void Log (const MkObjectC& fmtobj, MK_DBG debug = 0, MK_STRN callfunc = __builtin_FUNCTION(), MK_I32 lvl = 0) const
243
245 MK_BOOL NoChange () const;
246
248 Sq3TypeE NumericType () const;
249
251 MK_I32 SubType () const;
252
254 Sq3TypeE Type () const;
255
257 // Sq3ValueC_Info_CC_API
258
262
263 public:
264
265 // doc-key: Sq3ValueC,Sq3ValueC-TOR,oCx,public
266
268 Sq3ValueC* Dup () const;
269
271 // Sq3ValueC_TOR_CC_API
272
276
277 public:
278
279 // doc-key: Sq3ValueC,Sq3ValueC-Types,oc_,public
280
282 MkBufferC* BUF () const;
283
285 MkBufferC* Blob () const;
286
287 // doc-key: Sq3ValueC,Sq3ValueC-Types,om_,public
288
290 MK_BNP BinaryR () const;
291
293 MK_DBL Double () const;
294
296 MK_I32 Int () const;
297
299 MK_I64 Int64 () const;
300
302 std::string StringR () const;
303
305 MK_STRN Text () const;
306
308 // Sq3ValueC_Types_CC_API
309
313
314 public:
315
316 // doc-key: Sq3ValueC,Sq3ValueC-Vtab,oco,public
317
320
323
325 // Sq3ValueC_Vtab_CC_API
326
327 // END-Sq3ValueC - created by 'cc_MqS.tcl -i NHI1_HOME/theSq3Lite/c/gen/c_sq3lite.meta' - DO NOT change
328
330
331 }; // class Sq3ValueC
332} // namespace ccsq3lite
Sq3Lite PACKAGE - toplevel package of the Programming-Language-Micro-Kernel (PLMK) …
Struct to represent the data of the Sq3ValueC … → C-API: libsq3lite::Sq3ValueS
#define unlikely(x)
double MK_DBL
signed long long MK_I64
int32_t MK_HDL
int32_t MK_NUM
signed int MK_I32
MK_PTRB * MK_PTR
const MK_STRB * MK_STRN
static MK_PTR atomObjCreate(MK_RT_ARGS MK_OBJ obj)
void atomInit(MK_OBJ obj)
static MK_PTR atomObjNew(MK_RT_ARGS MK_OBJ obj)
struct MkObjectS * MK_OBJ
#define MK_RT_CALL
#define MK_RT_ARGS
Sq3TextE
Text Encodings.
Sq3TypeE
Fundamental Datatypes.
static Sq3ValueC * Sq3ValueC_ObjNew(MK_RT_ARGS SQ3_VAL hdl)
return Sq3ValueC from LibMsgqueObject
SQ3_VAL getVAL() const
return the LibMsgqueObject from current Sq3ValueC instance
SQ3_VALN getVALN__null_allow() const
(const) return the LibMsgqueObject from current Sq3ValueC instance
static thread_local Sq3ValueC MK_NULL_REF
static SQ3_VALN getVALN(const Sq3ValueC *clsHdl)
(const) return LibMsgqueObject from current Sq3ValueC pointer
static SQ3_VAL getVAL(Sq3ValueC *clsHdl)
return LibMsgqueObject from current Sq3ValueC pointer
SQ3_VAL getVAL__null_allow() const
return the LibMsgqueObject from current Sq3ValueC instance
static SQ3_VAL getVAL__null_allow(const Sq3ValueC &clsHdl)
return LibMsgqueObject from current Sq3ValueC reference
static SQ3_VALN getVALN(const Sq3ValueC &clsHdl)
(const) return LibMsgqueObject from current Sq3ValueC reference
static SQ3_VALN getVALN__null_allow(const Sq3ValueC *clsHdl)
(const) return LibMsgqueObject from current Sq3ValueC pointer
bool Check() const
check if pointer is still valid
static SQ3_VAL getVAL__null_allow(Sq3ValueC *clsHdl)
return LibMsgqueObject from current Sq3ValueC pointer
SQ3_VALN getVALN() const
(const) return the LibMsgqueObject from current Sq3ValueC instance
static SQ3_VALN getVALN__null_allow(const Sq3ValueC &clsHdl)
(const) return LibMsgqueObject from current Sq3ValueC reference
Sq3ValueC(SQ3_VAL hdl)
static SQ3_VAL getVAL(const Sq3ValueC &clsHdl)
return LibMsgqueObject from current Sq3ValueC reference
Sq3ValueC * Prev()
C++: Sq3ValueC* val.Prev() → C-API get previous instance from linked-list of Sq3ValueS type
Sq3ValueC * Next()
C++: Sq3ValueC* val.Next() → C-API get next instance from linked-list of Sq3ValueS type
static Sq3ValueC * Instances()
C++: [static] Sq3ValueC* Sq3ValueC::Instances() → C-API get head-instance from linked-list of Sq...
static Sq3ValueC * HandleResolve(MK_HDL netHdl)
C++: [static] Sq3ValueC* Sq3ValueC::HandleResolve(MK_HDL netHdl) → C-API Handle-Resolve-Slot - r...
static Sq3ValueC * GetNull()
C++: [static] Sq3ValueC* Sq3ValueC::GetNull() → C-API Null-Slot - return a Sq3ValueC typed NULL ...
struct Sq3ValueS * SQ3_VAL
class-shortcut for struct Sq3ValueS *, all shortcut using the XX_YYY syntax (only for public API) …
static bool Sq3ValCheck(MK_MNGN mng)
check Sq3ValueS -> libmkkernel::MkObjectS::signature …
#define Sq3ValueC_X2obj(x)
MK_BOOL NoChange() const
C++: MK_BOOL sq3val.NoChange() → C-API Obtaining SQL Values …
MK_BOOL FromBind() const
C++: MK_BOOL sq3val.FromBind() → C-API Obtaining SQL Values …
Sq3TypeE Type() const
C++: Sq3TypeE sq3val.Type() → C-API Obtaining SQL Values …
MK_I32 SubType() const
C++: MK_I32 sq3val.SubType() → C-API Finding The Subtype Of SQL Values …
Sq3TypeE NumericType() const
C++: Sq3TypeE sq3val.NumericType() → C-API Obtaining SQL Values …
Sq3TextE Encoding() const
C++: Sq3TextE sq3val.Encoding() → C-API Report the internal text encoding state of an sqlite3_v...
Sq3TextE Bytes() const
C++: Sq3TextE sq3val.Bytes() → C-API Obtaining SQL Values …
Sq3ValueC * Dup() const
C++: [constructor] Sq3ValueC* sq3val.Dup() → C-API Copy And Free SQL Values …
MK_STRN Text() const
C++: MK_STRN sq3val.Text() → C-API Obtaining SQL Values …
MK_I64 Int64() const
C++: MK_I64 sq3val.Int64() → C-API Obtaining SQL Values …
MK_DBL Double() const
C++: MK_DBL sq3val.Double() → C-API Obtaining SQL Values …
MkBufferC * Blob() const
C++: MkBufferC* sq3val.Blob() → C-API Obtaining SQL Values …
MK_I32 Int() const
C++: MK_I32 sq3val.Int() → C-API Obtaining SQL Values …
MK_BNP BinaryR() const
C++: MK_BNP sq3val.BinaryR() → C-API Obtaining SQL Values …
MkBufferC * BUF() const
C++: MkBufferC* val.BUF() → C-API Obtaining a MkBufferC value…
std::string StringR() const
C++: std::string sq3val.StringR() → C-API Obtaining SQL Values …
Sq3ValueC * VtabInFirst()
C++: Sq3ValueC* pVal.VtabInFirst() → C-API Find all elements on the right-hand side of an IN co...
Sq3ValueC * VtabInNext()
C++: Sq3ValueC* pVal.VtabInNext() → C-API Find all elements on the right-hand side of an IN con...
std::pair< MK_SIZE, MK_BINN > MK_BNP
namespace for the CcSq3Lite "C++"-API
Struct to represent the data of the Sq3ValueC … → C-API: libsq3lite::Sq3ValueS
Struct to represent the data of the Sq3ValueC …