|
using | const_iterator = QList<Value>::const_iterator |
|
|
| ValueList (const QList< Value > &_value) |
|
| ValueList (const ValueList &_list) |
|
ValueList | operator= (const ValueList &_list) |
|
int | size () const |
|
Value | at (int _index) const |
|
template<typename _T_ > |
cres_qresult< _T_ > | at (int _index) const |
|
template<typename _T_ > |
cres_qresult< QList< _T_ > > | values () const |
|
bool | operator== (const ValueList &_rhs) const |
|
bool | operator== (const QList< Value > &_rhs) const |
|
Value | operator[] (std::size_t _index) const |
|
const_iterator | begin () const |
|
const_iterator | end () const |
|
bool | contains (const knowCore::Value &_value) const |
|
template<typename _T_ > |
bool | contains (const _T_ &_value) const |
|
cres_qresult< QByteArray > | md5 () const |
|
cres_qresult< QJsonValue > | toJsonValue (const SerialisationContexts &_contexts) const |
|
cres_qresult< QCborValue > | toCborValue (const SerialisationContexts &_contexts) const |
|
cres_qresult< QString > | printable () const |
|
QList< Value > | values () const |
|
cres_qresult< void > | checkContainsOnly (const Uri &_uri) const |
|
template<typename _T_ > |
cres_qresult< void > | checkContainsOnly () const |
|
| operator Value () const |
|
bool | canConvertAllTo (const Uri &_uri) const |
|
template<typename _T_ > |
bool | canConvertAllTo () const |
|
QVariantList | toVariantList () const |
|
QVariant | toVariant () const |
|
◆ canConvertAllTo()
bool ValueList::canConvertAllTo |
( |
const Uri & | _uri | ) |
const |
Check that the list only contains value that can be casted to type _uri. It returns success if that is true. It returns a failure with an error message in case a value has a different type in the list.
◆ checkContainsOnly()
cres_qresult< void > ValueList::checkContainsOnly |
( |
const Uri & | _uri | ) |
const |
Check that the list only contains value of type _uri. It returns success if that is true. It returns a failure with an error message in case a value has a different type in the list.
◆ contains()
◆ fromValues()
template<typename _T_ >
const ValueList knowCore::ValueList::fromValues |
( |
const QList< _T_ > & | _t | ) |
|
|
inlinestatic |
Create a list from a QList. _T_
needs to be registered in knowCore MetaType.
◆ operator Value()
knowCore::ValueList::operator Value |
( |
| ) |
const |
|
inline |
Allow direct casting to Value.
◆ toVariant()
QVariant ValueList::toVariant |
( |
| ) |
const |
◆ toVariantList()
QVariantList ValueList::toVariantList |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- knowl/src/knowCore/ValueList.h
- knowl/src/knowCore/ValueList.cpp