knowL: Knowledge Libraries
|
Classes | |
struct | Private |
Public Types | |
using | const_iterator = QList<Value>::const_iterator |
Public Member Functions | |
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_ > | |
ReturnValue< _T_ > | at (int _index) const |
template<typename _T_ > | |
ReturnValue< 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 |
ReturnValue< QByteArray > | md5 () const |
ReturnValue< QJsonValue > | toJsonValue (const SerialisationContexts &_contexts) const |
ReturnValue< QCborValue > | toCborValue (const SerialisationContexts &_contexts) const |
ReturnValue< QString > | printable () const |
QList< Value > | values () const |
ReturnVoid | checkContainsOnly (const Uri &_uri) const |
template<typename _T_ > | |
ReturnVoid | checkContainsOnly () const |
operator Value () const | |
bool | canConvertAllTo (const Uri &_uri) const |
template<typename _T_ > | |
bool | canConvertAllTo () const |
QVariantList | toVariantList () const |
QVariant | toVariant () const |
Static Public Member Functions | |
static ReturnValue< ValueList > | fromJsonValue (const QJsonValue &_value, const DeserialisationContexts &_contexts) |
static ReturnValue< ValueList > | fromCborValue (const QCborValue &_value, const DeserialisationContexts &_contexts) |
template<typename _T_ > | |
static const ValueList | fromValues (const QList< _T_ > &_t) |
static ReturnValue< ValueList > | fromVariants (const QVariantList &_t) |
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.
ReturnVoid 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.
bool ValueList::contains | ( | const knowCore::Value & | _value | ) | const |
_value
is part of ValueList. QVariant ValueList::toVariant | ( | ) | const |
QVariantList ValueList::toVariantList | ( | ) | const |