proxygen
dynamic.cpp File Reference
#include <numeric>
#include <folly/dynamic.h>
#include <folly/Format.h>
#include <folly/hash/Hash.h>
#include <folly/lang/Assume.h>
#include <folly/lang/Exception.h>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 

Macros

#define FOLLY_DYNAMIC_DEF_TYPEINFO(T)
 
#define FB_DYNAMIC_APPLY(type, apply)
 
#define FB_X(T)   return CompareOp<T>::comp(*getAddress<T>(), *o.getAddress<T>())
 
#define FB_X(T)   return *getAddress<T>() == *o.getAddress<T>();
 
#define FB_X(T)   *getAddress<T>() = *o.getAddress<T>()
 
#define FB_X(T)   new (getAddress<T>()) T(*o.getAddress<T>())
 
#define FB_X(T)   *getAddress<T>() = std::move(*o.getAddress<T>())
 
#define FB_X(T)   new (getAddress<T>()) T(std::move(*o.getAddress<T>()))
 
#define FB_X(T)   return TypeInfo<T>::name
 
#define FB_X(T)   detail::Destroy::destroy(getAddress<T>())
 

Macro Definition Documentation

#define FB_DYNAMIC_APPLY (   type,
  apply 
)
Value:
do { \
switch ((type)) { \
case NULLT: \
apply(std::nullptr_t); \
break; \
case ARRAY: \
apply(Array); \
break; \
case BOOL: \
apply(bool); \
break; \
case DOUBLE: \
apply(double); \
break; \
case INT64: \
break; \
case OBJECT: \
apply(ObjectImpl); \
break; \
case STRING: \
break; \
CHECK(0); \
abort(); \
} \
} while (0)
PskType type
#define STRING
const char * string
Definition: Conv.cpp:212
default
Definition: upload.py:394
decltype(auto) constexpr apply(F &&func, Tuple &&tuple)
Definition: ApplyTuple.h:87

Definition at line 77 of file dynamic.cpp.

Referenced by folly::dynamic::destroy(), folly::dynamic::operator<(), folly::dynamic::operator=(), folly::dynamic::operator==(), and folly::dynamic::typeName().

#define FB_X (   T)    return CompareOp<T>::comp(*getAddress<T>(), *o.getAddress<T>())
#define FB_X (   T)    return *getAddress<T>() == *o.getAddress<T>();
#define FB_X (   T)    *getAddress<T>() = *o.getAddress<T>()
#define FB_X (   T)    new (getAddress<T>()) T(*o.getAddress<T>())
#define FB_X (   T)    *getAddress<T>() = std::move(*o.getAddress<T>())
#define FB_X (   T)    new (getAddress<T>()) T(std::move(*o.getAddress<T>()))
#define FB_X (   T)    return TypeInfo<T>::name
#define FB_X (   T)    detail::Destroy::destroy(getAddress<T>())
#define FOLLY_DYNAMIC_DEF_TYPEINFO (   T)
Value:
constexpr const char* dynamic::TypeInfo<T>::name; \
PskType type
const char * name
Definition: http_parser.c:437

Definition at line 30 of file dynamic.cpp.