40 ctx_(shared_obj.ctx_),
41 obj_(shared_obj.obj_) {
78 ctx_(unique_obj.ctx_),
79 obj_(unique_obj.obj_) {
80 unique_obj.obj_ =
nullptr;
Definition smart_obj.hpp:22
SharedObj(grn_ctx *ctx, grn_obj *obj)
Definition smart_obj.hpp:24
void reset(grn_obj *obj)
Definition smart_obj.hpp:61
SharedObj(grn_ctx *ctx, const char *name, int name_size)
Definition smart_obj.hpp:29
SharedObj(SharedObj &&shared_obj)
Definition smart_obj.hpp:39
grn_obj * get()
Definition smart_obj.hpp:51
SharedObj(grn_ctx *ctx, grn_id id)
Definition smart_obj.hpp:34
grn_obj * release()
Definition smart_obj.hpp:55
~SharedObj()
Definition smart_obj.hpp:45
Definition smart_obj.hpp:70
void reset(grn_obj *obj)
Definition smart_obj.hpp:99
UniqueObj(UniqueObj &&unique_obj)
Definition smart_obj.hpp:77
grn_obj * release()
Definition smart_obj.hpp:93
~UniqueObj()
Definition smart_obj.hpp:83
UniqueObj(grn_ctx *ctx, grn_obj *obj)
Definition smart_obj.hpp:72
grn_obj * get()
Definition smart_obj.hpp:89
GRN_API grn_rc grn_obj_close(grn_ctx *ctx, grn_obj *obj)
Close an object.
uint32_t grn_id
Definition groonga.h:44
GRN_API grn_obj * grn_ctx_at(grn_ctx *ctx, grn_id id)
Retrieve the object corresponding to the specified ID from the context or the database that the conte...
GRN_API grn_obj * grn_ctx_get(grn_ctx *ctx, const char *name, int name_size)
Retrieve the object corresponding to the specified name from the database that the context is using.
GRN_API void grn_obj_unref(grn_ctx *ctx, grn_obj *obj)
GRN_API grn_rc grn_obj_refer(grn_ctx *ctx, grn_obj *obj)