Home | History | Annotate | Download | only in gdb

Lines Matching refs:DATA

48    Type code) to attach some data to another object (e.g., an
62 A module wanting to attach data to instances of some_container uses
64 the "get" and "set" methods to handle this module's data. */
91 underlying data using Deleter. This defaults to
94 template<typename DATA, typename Deleter = std::default_delete<DATA>>
106 /* Fetch the data attached to OBJ that is associated with this key.
107 If no such data has been attached, nullptr is returned. */
108 DATA *get (T *obj) const
111 return (DATA *) reg_obj->get (m_key);
114 /* Attach DATA to OBJ, associated with this key. Note that any
115 previous data is simply dropped -- if destruction is needed,
117 void set (T *obj, DATA *data) const
120 reg_obj->set (m_key, (typename std::remove_const<DATA> *) data);
124 available. It emplaces a new instance of the associated data
127 template<typename Dummy = DATA *, typename... Args>
129 std::default_delete<DATA>>::value,
133 DATA *result = new DATA (std::forward<Args> (args)...);
138 /* Clear the data attached to OBJ that is associated with this KEY.
139 Any existing data is destroyed using the deleter, and the data is
143 DATA *datum = get (obj);
157 DATA *datum = (DATA *) arg;
166 /* Clear all the data associated with this container. This is
192 called. The data associated with the container object is passed
216 /* The data stored in this instance. */