Lines Matching refs:Value
104 class Value;
106 inline ::GType type_to_gtypeid<const Value*>() {
128 // \brief Value (and Retrieve) support using std::string as well as const char*
139 // \brief RawCast converts from a GValue to a value of a canonical type.
143 // \precondition \param x contains a value of type \param T.
209 // \brief Value is a data type for managing GValues.
211 // A Value is a polymorphic container holding at most a single value.
213 // The Value wrapper ensures proper initialization, copies, and assignment of
220 class Value : public ::GValue {
222 Value()
225 explicit Value(const ::GValue& x)
227 *this = *static_cast<const Value*>(&x);
230 explicit Value(T x)
236 Value(const Value& x)
243 ~Value() {
246 Value& operator=(const Value& x) {
257 Value& operator=(const T& x) {
278 inline const Value* RawCast<const Value*>(const ::GValue& x) {
279 return static_cast<const Value*>(&x);
282 // \brief Retrieve gets a value from a GValue.
284 // \postcondition If \param x contains a value of type \param T, then the
285 // value is copied to \param result and \true is returned. Otherwise, \param
303 inline bool Retrieve(const ::GValue& x, Value* result) {
304 *result = Value(x);
432 // returning a key value pair. However, that isn't possible with
434 // key value pair, only to retrieve the keys and values and individual elements.
437 // operator[] and count() - operator []. So retrieving a value would look like:
440 // success = Retrieve(table[key], &value);