Rise
The Vieneo Province
Loading...
Searching...
No Matches
CityLogos::Assignments Class Reference

#include <CityLogoAssignments.h>

Collaboration diagram for CityLogos::Assignments:
[legend]

Public Member Functions

bool Assign (int32_t group, const char *filename, size_t capacity)
const AssignmentAsset * Find (int32_t group) const
template<class Send>
void RequestDue (uint64_t now, Send send)
AssignmentAsset * Pending (int32_t token)
void Complete (AssignmentAsset &asset, bool success)
bool Contains (const std::string &name) const
void Invalidate (const std::string &name, uint64_t now)
void Clear ()

Private Attributes

int32_t nextToken = 0
std::map< int32_t, std::shared_ptr< AssignmentAsset > > groups
std::map< std::string, std::shared_ptr< AssignmentAsset > > assets

Detailed Description

Definition at line 46 of file CityLogoAssignments.h.

Member Function Documentation

◆ Assign()

bool CityLogos::Assignments::Assign ( int32_t group,
const char * filename,
size_t capacity )
inline

Definition at line 49 of file CityLogoAssignments.h.

Here is the call graph for this function:

◆ Clear()

void CityLogos::Assignments::Clear ( )
inline

Definition at line 110 of file CityLogoAssignments.h.

◆ Complete()

void CityLogos::Assignments::Complete ( AssignmentAsset & asset,
bool success )
inline

Definition at line 93 of file CityLogoAssignments.h.

◆ Contains()

bool CityLogos::Assignments::Contains ( const std::string & name) const
inline

Definition at line 100 of file CityLogoAssignments.h.

◆ Find()

const AssignmentAsset * CityLogos::Assignments::Find ( int32_t group) const
inline

Definition at line 64 of file CityLogoAssignments.h.

Here is the caller graph for this function:

◆ Invalidate()

void CityLogos::Assignments::Invalidate ( const std::string & name,
uint64_t now )
inline

Definition at line 101 of file CityLogoAssignments.h.

◆ Pending()

AssignmentAsset * CityLogos::Assignments::Pending ( int32_t token)
inline

Definition at line 85 of file CityLogoAssignments.h.

◆ RequestDue()

template<class Send>
void CityLogos::Assignments::RequestDue ( uint64_t now,
Send send )
inline

Definition at line 70 of file CityLogoAssignments.h.

Member Data Documentation

◆ assets

std::map<std::string, std::shared_ptr<AssignmentAsset> > CityLogos::Assignments::assets
private

Definition at line 114 of file CityLogoAssignments.h.

◆ groups

std::map<int32_t, std::shared_ptr<AssignmentAsset> > CityLogos::Assignments::groups
private

Definition at line 113 of file CityLogoAssignments.h.

◆ nextToken

int32_t CityLogos::Assignments::nextToken = 0
private

Definition at line 112 of file CityLogoAssignments.h.


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