proxygen
proxygen::StructuredHeaders::StructuredHeaderItem Class Reference

#include <StructuredHeadersConstants.h>

Public Types

enum  Type {
  Type::NONE, Type::STRING, Type::BINARYCONTENT, Type::IDENTIFIER,
  Type::DOUBLE, Type::INT64
}
 

Public Member Functions

template<typename T >
bool operator!= (const T &other) const
 
template<typename T >
bool operator== (const T &other) const
 

Public Attributes

Type tag
 
boost::variant< int64_t, double, std::stringvalue
 

Detailed Description

Definition at line 24 of file StructuredHeadersConstants.h.

Member Enumeration Documentation

Enumerator
NONE 
STRING 
BINARYCONTENT 
IDENTIFIER 
DOUBLE 
INT64 

Definition at line 26 of file StructuredHeadersConstants.h.

26  {
27  NONE,
28  STRING,
29  BINARYCONTENT,
30  IDENTIFIER,
31  DOUBLE,
32  INT64
33  };
#define STRING

Member Function Documentation

template<typename T >
bool proxygen::StructuredHeaders::StructuredHeaderItem::operator!= ( const T other) const
inline

Definition at line 36 of file StructuredHeadersConstants.h.

References operator==().

36  {
37  return !operator==(other);
38  }
template<typename T >
bool proxygen::StructuredHeaders::StructuredHeaderItem::operator== ( const T other) const
inline

Definition at line 41 of file StructuredHeadersConstants.h.

References value.

Referenced by operator!=().

41  {
42  try {
43  return boost::get<T>(value) == other;
44  } catch (boost::bad_get& ) {
45  return false;
46  }
47  }
boost::variant< int64_t, double, std::string > value

Member Data Documentation


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