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 |
Public Member Functions | |
ResourceLimits () | |
ResourceLimits (const google::protobuf::Map< std::string, Value::Scalar > &map) | |
ResourceLimits (const ResourceLimits &that)=default | |
ResourceLimits (ResourceLimits &&that)=default | |
ResourceLimits & | operator= (const ResourceLimits &that)=default |
ResourceLimits & | operator= (ResourceLimits &&that)=default |
const_iterator | begin () |
const_iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
size_t | size () const |
bool | empty () const |
Option< Value::Scalar > | get (const std::string &name) const |
bool | contains (const ResourceLimits &right) const |
bool | operator== (const ResourceLimits &limits) const |
bool | operator!= (const ResourceLimits &limits) const |
bool | contains (const ResourceQuantities &quantities) const |
ResourceLimits & | operator-= (const ResourceQuantities &quantities) |
ResourceLimits | operator- (const ResourceQuantities &quantities) const |
Static Public Member Functions | |
static Try< ResourceLimits > | fromString (const std::string &text) |
typedef boost::container::small_vector_base< std::pair<std::string, Value::Scalar> >::const_iterator mesos::ResourceLimits::const_iterator |
typedef boost::container::small_vector_base< std::pair<std::string, Value::Scalar> >::const_iterator mesos::ResourceLimits::iterator |
mesos::ResourceLimits::ResourceLimits | ( | ) |
|
explicit |
|
default |
|
default |
const_iterator mesos::ResourceLimits::begin | ( | ) |
|
inline |
bool mesos::ResourceLimits::contains | ( | const ResourceLimits & | right | ) | const |
bool mesos::ResourceLimits::contains | ( | const ResourceQuantities & | quantities | ) | const |
|
inline |
const_iterator mesos::ResourceLimits::end | ( | ) |
|
inline |
|
static |
Option<Value::Scalar> mesos::ResourceLimits::get | ( | const std::string & | name | ) | const |
bool mesos::ResourceLimits::operator!= | ( | const ResourceLimits & | limits | ) | const |
ResourceLimits mesos::ResourceLimits::operator- | ( | const ResourceQuantities & | quantities | ) | const |
ResourceLimits& mesos::ResourceLimits::operator-= | ( | const ResourceQuantities & | quantities | ) |
|
default |
|
default |
bool mesos::ResourceLimits::operator== | ( | const ResourceLimits & | limits | ) | const |
|
inline |