C++  1.4.6
CloudBackend Software Development Kit - SDK API for C++
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
CBE::GroupQuery Class Reference
Collaboration diagram for CBE::GroupQuery:
Collaboration graph
[legend]

Public Member Functions

virtual CBE::GroupFilter filter () const
 
virtual std::vector< CBE::GroupPtr > getGroupsSnapshot ()
 
virtual uint64_t GroupsLoaded ()
 
virtual uint64_t totalCount ()
 
bool containsGroup (uint64_t groupId)
 

Protected Member Functions

void initGroups ()
 

Protected Attributes

std::vector< CBE::GroupPtr > groups
 
uint64_t _totalCount
 
std::vector< std::pair< uint64_t, uint64_t > > _loadedPages
 

Friends

class GroupManager
 
class CloudBackend
 

Member Function Documentation

◆ filter()

virtual CBE::GroupFilter CBE::GroupQuery::filter ( ) const
virtual

Returns a copy of the filter used for query.

◆ getGroupsSnapshot()

virtual std::vector<CBE::GroupPtr> CBE::GroupQuery::getGroupsSnapshot ( )
virtual

Returns a copy of a vector containing the groups for the queryResult.
The queryResult will update when new data comes in but the copy will not. If iterating make sure to create a variable for a local copy.

Returns
vector<CBE::GroupPtr> contains the groups matching the query.

◆ containsGroup()

bool CBE::GroupQuery::containsGroup ( uint64_t  groupId)

Returns if the group with groupId was loaded in the query.

◆ initGroups()

void CBE::GroupQuery::initGroups ( )
protected

Resizes the groups vector to fit the total count of groups.

Member Data Documentation

◆ groups

std::vector<CBE::GroupPtr> CBE::GroupQuery::groups
protected

Vector with all Groups loaded from the query.


The documentation for this class was generated from the following file: