|
| ResourceUtil (const Options &options) |
|
virtual Status | VerifyValidity (const ResourceAllocation &allocation) const |
|
Status | VerifyOverrideDeviceValidity (const ResourceAllocation &base_allocation, const ResourceAllocation &override_allocation) const |
|
Status | VerifyResourceValidity (const Resource &resource) const |
|
virtual ResourceAllocation | Normalize (const ResourceAllocation &allocation) const |
|
virtual bool | IsNormalized (const ResourceAllocation &allocation) const |
|
bool | IsBound (const ResourceAllocation &allocation) const |
|
Resource | CreateBoundResource (const string &device, const string &kind, uint32 device_instance=0) const |
|
uint64_t | GetQuantity (const Resource &resource, const ResourceAllocation &allocation) const |
|
void | SetQuantity (const Resource &resource, uint64_t quantity, ResourceAllocation *allocation) const |
|
void | Add (const ResourceAllocation &to_add, ResourceAllocation *base) const |
|
bool | Subtract (const ResourceAllocation &to_subtract, ResourceAllocation *base) const |
|
void | Multiply (uint64_t multiplier, ResourceAllocation *base) const |
|
bool | Equal (const ResourceAllocation &lhs, const ResourceAllocation &rhs) const |
|
bool | ResourcesEqual (const Resource &lhs, const Resource &rhs) const |
|
bool | LessThanOrEqual (const ResourceAllocation &lhs, const ResourceAllocation &rhs) const |
|
ResourceAllocation | Overbind (const ResourceAllocation &allocation) const |
|
ResourceAllocation | Max (const ResourceAllocation &lhs, const ResourceAllocation &rhs) const |
|
ResourceAllocation | Min (const ResourceAllocation &lhs, const ResourceAllocation &rhs) const |
|
ResourceAllocation | NormalizeResourceAllocation (const ResourceAllocation &allocation) const |
|
Definition at line 34 of file resource_util.h.