proxygen
some_ns::UserDefinedType Struct Reference

Public Member Functions

 UserDefinedType (folly::StringPiece value)
 
bool operator== (const UserDefinedType &other) const
 

Public Attributes

int value_
 

Detailed Description

Definition at line 50 of file SettingsTest.cpp.

Constructor & Destructor Documentation

some_ns::UserDefinedType::UserDefinedType ( folly::StringPiece  value)
inlineexplicit

Definition at line 51 of file SettingsTest.cpp.

References value_.

51  {
52  if (value == "a") {
53  value_ = 0;
54  } else if (value == "b") {
55  value_ = 100;
56  } else {
57  throw std::runtime_error("Invalid value passed to UserDefinedType ctor");
58  }
59  }

Member Function Documentation

bool some_ns::UserDefinedType::operator== ( const UserDefinedType other) const
inline

Definition at line 61 of file SettingsTest.cpp.

References value_.

61  {
62  return value_ == other.value_;
63  }

Member Data Documentation

int some_ns::UserDefinedType::value_

Definition at line 65 of file SettingsTest.cpp.

Referenced by operator==(), TEST(), some_ns::toAppend(), and UserDefinedType().


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