Apache Mesos
Namespaces | Classes | Functions
JSON Namespace Reference

Namespaces

 internal
 

Classes

struct  String
 
struct  Number
 
struct  Object
 
struct  Array
 
struct  Boolean
 
struct  True
 
struct  False
 
struct  Null
 
struct  Value
 
struct  Comparator
 
class  Proxy
 
class  BooleanWriter
 
class  NumberWriter
 
class  StringWriter
 
class  ArrayWriter
 
class  ObjectWriter
 
class  NullWriter
 
class  WriterProxy
 
struct  Protobuf
 

Functions

bool operator== (const Value &lhs, const Value &rhs)
 
bool operator!= (const Value &lhs, const Value &rhs)
 
void json (BooleanWriter *writer, const Boolean &boolean)
 
void json (StringWriter *writer, const String &string)
 
void json (NumberWriter *writer, const Number &number)
 
void json (ObjectWriter *writer, const Object &object)
 
void json (ArrayWriter *writer, const Array &array)
 
void json (NullWriter *, const Null &)
 
template<typename T , typename std::enable_if< std::is_same< T, Value >::value, int >::type = 0>
void json (WriterProxy &&writer, const T &value)
 
std::ostream & operator<< (std::ostream &stream, const Boolean &boolean)
 
std::ostream & operator<< (std::ostream &stream, const String &string)
 
std::ostream & operator<< (std::ostream &stream, const Number &number)
 
std::ostream & operator<< (std::ostream &stream, const Object &object)
 
std::ostream & operator<< (std::ostream &stream, const Array &array)
 
std::ostream & operator<< (std::ostream &stream, const Null &null)
 
Try< Valueparse (const std::string &s)
 Returns the OCI v1 descriptor, image index, image manifest and image configuration from the given string. More...
 
std::ostream & operator<< (std::ostream &stream, Proxy &&that)
 
void json (BooleanWriter *writer, bool value)
 
void json (NumberWriter *writer, short int value)
 
void json (NumberWriter *writer, int value)
 
void json (NumberWriter *writer, long int value)
 
void json (NumberWriter *writer, long long int value)
 
void json (NumberWriter *writer, unsigned short int value)
 
void json (NumberWriter *writer, unsigned int value)
 
void json (NumberWriter *writer, unsigned long int value)
 
void json (NumberWriter *writer, unsigned long long int value)
 
void json (NumberWriter *writer, float value)
 
void json (NumberWriter *writer, double value)
 
template<std::size_t N>
void json (StringWriter *writer, const char(&value)[N])
 
void json (StringWriter *writer, const std::string &value)
 
template<typename Iterable , typename std::enable_if< internal::IsSequence< Iterable >::value &&!(std::is_array< Iterable >::value &&std::rank< Iterable >::value==1 &&std::is_same< char, typename std::remove_extent< Iterable >::type >::value)&&!internal::HasMappedType< Iterable >::value, int >::type = 0>
void json (ArrayWriter *writer, const Iterable &iterable)
 
template<typename Dictionary , typename std::enable_if< internal::IsSequence< Dictionary >::value &&internal::HasMappedType< Dictionary >::value, int >::type = 0>
void json (ObjectWriter *writer, const Dictionary &dictionary)
 
void json (ObjectWriter *writer, const Protobuf &protobuf)
 
Object protobuf (const google::protobuf::Message &message)
 
template<typename T >
Array protobuf (const google::protobuf::RepeatedPtrField< T > &repeated)
 

Function Documentation

void JSON::json ( BooleanWriter *  writer,
bool  value 
)
inline
void JSON::json ( NumberWriter *  writer,
short int  value 
)
inline
void JSON::json ( NumberWriter *  writer,
int  value 
)
inline
void JSON::json ( NumberWriter *  writer,
long int  value 
)
inline
void JSON::json ( NumberWriter *  writer,
long long int  value 
)
inline
void JSON::json ( NumberWriter *  writer,
unsigned short int  value 
)
inline
void JSON::json ( NumberWriter *  writer,
unsigned int  value 
)
inline
void JSON::json ( NumberWriter *  writer,
unsigned long int  value 
)
inline
void JSON::json ( NumberWriter *  writer,
unsigned long long int  value 
)
inline
void JSON::json ( NumberWriter *  writer,
float  value 
)
inline
void JSON::json ( NumberWriter *  writer,
double  value 
)
inline
template<std::size_t N>
void JSON::json ( StringWriter *  writer,
const char(&)  value[N] 
)
void JSON::json ( StringWriter *  writer,
const std::string &  value 
)
inline
template<typename Iterable , typename std::enable_if< internal::IsSequence< Iterable >::value &&!(std::is_array< Iterable >::value &&std::rank< Iterable >::value==1 &&std::is_same< char, typename std::remove_extent< Iterable >::type >::value)&&!internal::HasMappedType< Iterable >::value, int >::type = 0>
void JSON::json ( ArrayWriter *  writer,
const Iterable &  iterable 
)
template<typename Dictionary , typename std::enable_if< internal::IsSequence< Dictionary >::value &&internal::HasMappedType< Dictionary >::value, int >::type = 0>
void JSON::json ( ObjectWriter *  writer,
const Dictionary &  dictionary 
)
void JSON::json ( BooleanWriter *  writer,
const Boolean &  boolean 
)
inline
void JSON::json ( ObjectWriter *  writer,
const Protobuf &  protobuf 
)
inline
void JSON::json ( StringWriter *  writer,
const String &  string 
)
inline
void JSON::json ( NumberWriter *  writer,
const Number &  number 
)
inline
void JSON::json ( ObjectWriter *  writer,
const Object &  object 
)
inline
void JSON::json ( ArrayWriter *  writer,
const Array &  array 
)
inline
void JSON::json ( NullWriter *  ,
const Null &   
)
inline
template<typename T , typename std::enable_if< std::is_same< T, Value >::value, int >::type = 0>
void JSON::json ( WriterProxy &&  writer,
const T &  value 
)
bool JSON::operator!= ( const Value &  lhs,
const Value &  rhs 
)
inline
std::ostream& JSON::operator<< ( std::ostream &  stream,
Proxy &&  that 
)
inline
std::ostream& JSON::operator<< ( std::ostream &  stream,
const Boolean &  boolean 
)
inline
std::ostream& JSON::operator<< ( std::ostream &  stream,
const String &  string 
)
inline
std::ostream& JSON::operator<< ( std::ostream &  stream,
const Number &  number 
)
inline
std::ostream& JSON::operator<< ( std::ostream &  stream,
const Object &  object 
)
inline
std::ostream& JSON::operator<< ( std::ostream &  stream,
const Array &  array 
)
inline
std::ostream& JSON::operator<< ( std::ostream &  stream,
const Null &  null 
)
inline
bool JSON::operator== ( const Value &  lhs,
const Value &  rhs 
)
inline
Try< Value > JSON::parse ( const std::string &  s)
inline

Returns the OCI v1 descriptor, image index, image manifest and image configuration from the given string.

Parses Roles from text in the form "role1,role2,role3".

Object JSON::protobuf ( const google::protobuf::Message &  message)
inline
template<typename T >
Array JSON::protobuf ( const google::protobuf::RepeatedPtrField< T > &  repeated)