[core] status.requiredResourceCountIsIndeterminate ⇢ status.requiredResourceCountIsPrecise
Change the name and reverse the sense. Naming things in the positive is better than naming them in the negative.
This commit is contained in:
@@ -99,20 +99,21 @@ public:
|
||||
|
||||
/**
|
||||
* The number of resources that are known to be required for this region. See the
|
||||
* documentation for `requiredResourceCountIsIndeterminate` for an important caveat
|
||||
* documentation for `requiredResourceCountIsPrecise` for an important caveat
|
||||
* about this number.
|
||||
*/
|
||||
uint64_t requiredResourceCount = 0;
|
||||
|
||||
/**
|
||||
* This property is true during early phases of an offline download, when the total
|
||||
* required resource count is unknown and requiredResourceCount is merely a lower
|
||||
* This property is true when the value of requiredResourceCount is a precise
|
||||
* count of the number of required resources, and false when it is merely a lower
|
||||
* bound.
|
||||
*
|
||||
* Specifically, it is true before until the style and tile sources have been
|
||||
* downloaded, and false thereafter.
|
||||
* Specifically, it is false during early phases of an offline download. Once
|
||||
* style and tile sources have been downloaded, it is possible to calculate the
|
||||
* precise number of required resources, at which point it is set to true.
|
||||
*/
|
||||
bool requiredResourceCountIsIndeterminate = true;
|
||||
bool requiredResourceCountIsPrecise = false;
|
||||
|
||||
bool complete() const {
|
||||
return completedResourceCount == requiredResourceCount;
|
||||
|
||||
Reference in New Issue
Block a user