Lines Matching defs:obj

45 		void operator() (ucl_object_t *obj) {
46 ucl_object_unref (obj);
103 std::unique_ptr<ucl_object_t, ucl_deleter> obj;
118 const_iterator(const Ucl &obj) {
119 it = std::shared_ptr<void>(ucl_object_iterate_new (obj.obj.get()),
139 return cur->obj.get() == other.cur->obj.get();
176 obj.reset (other);
181 obj.reset (ucl_object_ref (other));
185 obj.reset (ucl_object_ref (other.obj.get()));
189 obj.swap (other.obj);
193 obj.reset (ucl_object_typed_new (UCL_NULL));
196 obj.reset (ucl_object_typed_new (UCL_NULL));
199 obj.reset (ucl_object_typed_new (UCL_FLOAT));
200 obj->value.dv = value;
203 obj.reset (ucl_object_typed_new (UCL_INT));
204 obj->value.iv = value;
207 obj.reset (ucl_object_typed_new (UCL_BOOLEAN));
208 obj->value.iv = static_cast<int64_t>(value);
211 obj.reset (ucl_object_fromstring_common (value.data (), value.size (),
215 obj.reset (ucl_object_fromstring_common (value, 0, UCL_STRING_RAW));
228 obj.reset (ucl_object_typed_new (UCL_OBJECT));
229 auto cobj = obj.get ();
232 ucl_object_insert_key (cobj, ucl_object_ref (e.second.obj.get()),
242 obj.reset (ucl_object_typed_new (UCL_ARRAY));
243 auto cobj = obj.get ();
246 ucl_array_append (cobj, ucl_object_ref (e.obj.get()));
251 if (obj) {
252 return ucl_object_type (obj.get ());
260 if (obj->key) {
261 res.assign (obj->key, obj->keylen);
271 if (ucl_object_todouble_safe(obj.get(), &res)) {
282 if (ucl_object_toint_safe(obj.get(), &res)) {
293 if (ucl_object_toboolean_safe(obj.get(), &res)) {
304 if (ucl_object_tostring_safe(obj.get(), &res)) {
314 return Ucl (ucl_array_find_index (obj.get(), i));
323 return Ucl (ucl_object_lookup_len (obj.get(),
347 ucl_object_emit_full (obj.get(), type, &cbdata, nullptr);
371 auto obj = ucl_parser_get_object (parser);
375 return Ucl (obj);
396 obj.swap (rhs.obj);
402 return ucl_object_compare (obj.get(), rhs.obj.get ()) == 0;
406 return ucl_object_compare (obj.get(), rhs.obj.get ()) < 0;
415 if (!obj || type() == UCL_NULL) {