18 Value at(
int _index)
const;
19 template<
typename _T_>
20 cres_qresult<_T_> at(
int _index)
const;
21 template<
typename _T_>
22 cres_qresult<QList<_T_>> values()
const;
24 bool operator==(
const ValueList& _rhs)
const;
26 Value operator[](std::size_t _index)
const;
28 const_iterator begin()
const;
29 const_iterator end()
const;
35 template<
typename _T_>
36 bool contains(
const _T_& _value)
const
41 cres_qresult<QByteArray> md5()
const;
43 static cres_qresult<ValueList> fromJsonValue(
const QJsonValue& _value,
46 static cres_qresult<ValueList> fromCborValue(
const QCborValue& _value,
48 cres_qresult<QString> printable()
const;
57 template<
typename _T_>
58 inline cres_qresult<void> checkContainsOnly()
const;
69 bool canConvertAllTo(
const Uri& _uri)
const;
70 template<
typename _T_>
71 bool canConvertAllTo()
const;
75 template<
typename _T_>
77 static cres_qresult<ValueList> fromVariants(
const QVariantList& _t);
88 QSharedDataPointer<Private> d;
91 template<
typename _T_>
92 cres_qresult<_T_> ValueList::at(
int _index)
const
94 return at(_index).template value<_T_>();
96 template<
typename _T_>
97 cres_qresult<QList<_T_>> ValueList::values()
const
100 for(
int i = 0; i < size(); ++i)
102 cres_try(_T_ value, at<_T_>(i));
105 return cres_success(list);
107 template<
typename _T_>
108 cres_qresult<void> ValueList::checkContainsOnly()
const
112 template<
typename _T_>
113 bool ValueList::canConvertAllTo()
const
117 template<
typename _T_>
121 std::transform(_t.begin(), _t.end(), std::back_inserter(l),
122 [](
const _T_& _t) ->
Value { return Value::fromValue(_t); });
129KNOWCORE_DECLARE_FULL_METATYPE(knowCore, ValueList);
Definition MetaType.h:126
Definition MetaType.h:159
cres_qresult< void > checkContainsOnly(const Uri &_uri) const
Definition ValueList.cpp:152
bool canConvertAllTo(const Uri &_uri) const
Definition ValueList.cpp:164
QVariantList toVariantList() const
Definition ValueList.cpp:187
static const ValueList fromValues(const QList< _T_ > &_t)
Definition ValueList.h:118
QVariant toVariant() const
Definition ValueList.cpp:195
bool contains(const knowCore::Value &_value) const
Definition ValueList.cpp:44
static Value fromValue(const _T_ &_value)
Definition Value.h:241