![]() |
SDK
2.1.4 [async]
CloudBackend Software Development Kit - SDK API for C++
|
resultset of data retrieved. More...
#include <QueryResult.h>
Public Types | |
using | ItemsSnapshot = std::vector< Item > |
A vector of items to hold a snapshot. | |
Public Member Functions | |
Filter | filter () const |
ItemsSnapshot | getItemsSnapshot () const |
Returns a copy of a vector containing the items for this QueryResult. More... | |
std::uint64_t | itemsLoaded () const |
std::uint64_t | totalCount () const |
std::uint64_t | objectsLoaded () const |
std::uint64_t | containersLoaded () const |
bool | containsItem (ItemId itemId) const |
QueryResult (cbe::DefaultCtor) | |
Default constructor. More... | |
operator bool () const | |
Checks if the current instance is real. More... | |
Friends | |
class | CloudBackend |
class | Container |
class | QueryChain |
class | QueryChainSync |
class | ShareManager |
class | SubscribeManager |
std::ostream & | operator<< (std::ostream &os, const QueryResult &queryResult) |
CBI::ItemDelegatePtr | delegate::createCbiQueryDelegate (delegate::QueryDelegatePtr, cbe::util::Context &&) |
CBI::ItemDelegatePtr | delegate::createCbiQueryDelegate (delegate::QueryJoinDelegatePtr, cbe::util::Context &&) |
CBI::ItemDelegatePtr | delegate::createCbiJoinDelegate (delegate::JoinDelegatePtr, cbe::util::Context &&) |
resultset of data retrieved.
cbe::QueryResult::QueryResult | ( | cbe::DefaultCtor | ) |
Default constructor.
Construct a new object with the DefaultCtor
to enable the operator bool() test
std::uint64_t cbe::QueryResult::containersLoaded | ( | ) | const |
Returns number of containers
loaded in to the query result.
bool cbe::QueryResult::containsItem | ( | ItemId | itemId | ) | const |
Checks if the Item with id is in the result-set.
itemId | id number of the item asked for |
Filter cbe::QueryResult::filter | ( | ) | const |
Returns a copy of the filter used for query.
ItemsSnapshot cbe::QueryResult::getItemsSnapshot | ( | ) | const |
Returns a copy of a vector containing the items for this QueryResult.
The QueryResult will be updated when new data comes in, but the returned copy will not.
std::uint64_t cbe::QueryResult::itemsLoaded | ( | ) | const |
Number of items
loaded in current QueryResult.
std::uint64_t cbe::QueryResult::objectsLoaded | ( | ) | const |
Returns number of objects
loaded in to the query result.
|
explicit |
Checks if the current instance is real.
An "unreal" instance implies typically a failed event.
Relies on the Default
constructor
QueryResult(cbe::DefaultCtor)
true
: is real false
: unreal; got nullptr; if current instance is unbound/undefined. I.e., if it is only default constructed. std::uint64_t cbe::QueryResult::totalCount | ( | ) | const |
total number of items in the cloud matching the query result. This may be more than loaded.