cbdata.h
Go to the documentation of this file.
239#define cbdataReferenceValidDone(var, ptr) cbdataInternalReferenceDoneValid((void **)&(var), (ptr))
261 if (!CBDATA_##type) CBDATA_##type = cbdataInternalAddType(CBDATA_##type, #type, sizeof(type)); \
328#define CBDATA_NAMESPACED_CLASS_INIT(namespace, type) cbdata_type namespace::type::CBDATA_##type = CBDATA_UNKNOWN
352#define cbdataReferenceDone(var) do {if (var) {cbdataInternalUnlock(var); var = nullptr;}} while(0)
388 CallbackData &operator =(CallbackData &&other) { cbdataReferenceDone(data_); data_ = other.data_; other.data_ = nullptr; return *this; }
391 void *validDone() { void *result; return cbdataReferenceValidDone(data_, &result) ? result : nullptr; }
int cbdataInternalReferenceDoneValid(void **p, void **tp)
Definition: cbdata.cc:282
cbdata_type cbdataInternalAddType(cbdata_type type, const char *label, int size)
Definition: cbdata.cc:117
Definition: cbdata.h:276
virtual void finalizedInCbdataChild()=0
hack: ensure CBDATA_CHILD() after a toCbdata()-defining CBDATA_INTERMEDIATE()
virtual void * toCbdata()=0
Definition: cbdata.h:361