Apache Mesos
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
mesos::ResourceQuantities Class Reference

#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

 ResourceQuantities ()
 
 ResourceQuantities (const google::protobuf::Map< std::string, Value::Scalar > &map)
 
 ResourceQuantities (const ResourceQuantities &that)=default
 
 ResourceQuantities (ResourceQuantities &&that)=default
 
ResourceQuantitiesoperator= (const ResourceQuantities &that)=default
 
ResourceQuantitiesoperator= (ResourceQuantities &&that)=default
 
const_iterator begin ()
 
const_iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
size_t size () const
 
bool empty () const
 
Value::Scalar get (const std::string &name) const
 
bool contains (const ResourceQuantities &quantities) const
 
bool operator== (const ResourceQuantities &quantities) const
 
bool operator!= (const ResourceQuantities &quantities) const
 
ResourceQuantitiesoperator+= (const ResourceQuantities &quantities)
 
ResourceQuantitiesoperator-= (const ResourceQuantities &quantities)
 
ResourceQuantities operator+ (const ResourceQuantities &quantities) const
 
ResourceQuantities operator- (const ResourceQuantities &quantities) const
 

Static Public Member Functions

static Try< ResourceQuantitiesfromString (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
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

mesos::ResourceQuantities::ResourceQuantities ( )
mesos::ResourceQuantities::ResourceQuantities ( const google::protobuf::Map< std::string, Value::Scalar > &  map)
explicit
mesos::ResourceQuantities::ResourceQuantities ( const ResourceQuantities that)
default
mesos::ResourceQuantities::ResourceQuantities ( ResourceQuantities &&  that)
default

Member Function Documentation

const_iterator mesos::ResourceQuantities::begin ( )
const_iterator mesos::ResourceQuantities::begin ( ) const
inline
bool mesos::ResourceQuantities::contains ( const ResourceQuantities quantities) const
bool mesos::ResourceQuantities::empty ( ) const
inline
const_iterator mesos::ResourceQuantities::end ( )
const_iterator mesos::ResourceQuantities::end ( ) const
inline
static ResourceQuantities mesos::ResourceQuantities::fromResources ( const Resources resources)
static
static ResourceQuantities mesos::ResourceQuantities::fromScalarResource ( const Resource &  resource)
static
static ResourceQuantities mesos::ResourceQuantities::fromScalarResources ( const Resources resources)
static
static Try<ResourceQuantities> mesos::ResourceQuantities::fromString ( const std::string &  text)
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)
ResourceQuantities& mesos::ResourceQuantities::operator= ( const ResourceQuantities that)
default
ResourceQuantities& mesos::ResourceQuantities::operator= ( ResourceQuantities &&  that)
default
bool mesos::ResourceQuantities::operator== ( const ResourceQuantities quantities) const
size_t mesos::ResourceQuantities::size ( ) const
inline
template<typename Key >
static ResourceQuantities mesos::ResourceQuantities::sum ( const hashmap< Key, ResourceQuantities > &  map)
inlinestatic

Friends And Related Function Documentation

friend class ResourceLimits
friend

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