Apache Mesos
|
#include <resource_quantities.hpp>
Public Types | |
typedef boost::container::small_vector_base< std::pair< std::string, Value::Scalar > >::const_iterator | iterator |
typedef boost::container::small_vector_base< std::pair< std::string, Value::Scalar > >::const_iterator | const_iterator |
Static Public Member Functions | |
static Try< ResourceQuantities > | fromString (const std::string &text) |
static ResourceQuantities | fromScalarResources (const Resources &resources) |
static ResourceQuantities | fromScalarResource (const Resource &resource) |
static ResourceQuantities | fromResources (const Resources &resources) |
template<typename Key > | |
static ResourceQuantities | sum (const hashmap< Key, ResourceQuantities > &map) |
Friends | |
class | ResourceLimits |
typedef boost::container::small_vector_base< std::pair<std::string, Value::Scalar> >::const_iterator mesos::ResourceQuantities::const_iterator |
typedef boost::container::small_vector_base< std::pair<std::string, Value::Scalar> >::const_iterator mesos::ResourceQuantities::iterator |
mesos::ResourceQuantities::ResourceQuantities | ( | ) |
|
explicit |
|
default |
|
default |
const_iterator mesos::ResourceQuantities::begin | ( | ) |
|
inline |
bool mesos::ResourceQuantities::contains | ( | const ResourceQuantities & | quantities | ) | const |
|
inline |
const_iterator mesos::ResourceQuantities::end | ( | ) |
|
inline |
|
static |
|
static |
|
static |
|
static |
Value::Scalar mesos::ResourceQuantities::get | ( | const std::string & | name | ) | const |
bool mesos::ResourceQuantities::operator!= | ( | const ResourceQuantities & | quantities | ) | const |
ResourceQuantities mesos::ResourceQuantities::operator+ | ( | const ResourceQuantities & | quantities | ) | const |
ResourceQuantities& mesos::ResourceQuantities::operator+= | ( | const ResourceQuantities & | quantities | ) |
ResourceQuantities mesos::ResourceQuantities::operator- | ( | const ResourceQuantities & | quantities | ) | const |
ResourceQuantities& mesos::ResourceQuantities::operator-= | ( | const ResourceQuantities & | quantities | ) |
|
default |
|
default |
bool mesos::ResourceQuantities::operator== | ( | const ResourceQuantities & | quantities | ) | const |
|
inline |
|
inlinestatic |
|
friend |