proxygen
folly::Req Class Reference

#include <FlatCombiningExamples.h>

Public Types

enum  Type { Type::ADD, Type::FETCHADD }
 

Public Member Functions

void setType (Type type)
 
Type getType ()
 
void setVal (uint64_t val)
 
uint64_t getVal ()
 
void setRes (uint64_t res)
 
uint64_t getRes ()
 

Private Attributes

Type type_
 
uint64_t val_
 
uint64_t res_
 

Detailed Description

Definition at line 127 of file FlatCombiningExamples.h.

Member Enumeration Documentation

enum folly::Req::Type
strong
Enumerator
ADD 
FETCHADD 

Definition at line 129 of file FlatCombiningExamples.h.

129 { ADD, FETCHADD };

Member Function Documentation

uint64_t folly::Req::getRes ( )
inline

Definition at line 151 of file FlatCombiningExamples.h.

151  {
152  return res_;
153  }
Type folly::Req::getType ( )
inline

Definition at line 135 of file FlatCombiningExamples.h.

References type_.

Referenced by folly::FcCustomExample< Req, Mutex, Atom >::combinedOp().

135  {
136  return type_;
137  }
uint64_t folly::Req::getVal ( )
inline

Definition at line 143 of file FlatCombiningExamples.h.

Referenced by folly::FcCustomExample< Req, Mutex, Atom >::combinedOp().

143  {
144  return val_;
145  }
void folly::Req::setRes ( uint64_t  res)
inline

Definition at line 147 of file FlatCombiningExamples.h.

Referenced by folly::FcCustomExample< Req, Mutex, Atom >::combinedOp().

147  {
148  res_ = res;
149  }
void folly::Req::setType ( Type  type)
inline

Definition at line 131 of file FlatCombiningExamples.h.

References type, and type_.

131  {
132  type_ = type;
133  }
PskType type
void folly::Req::setVal ( uint64_t  val)
inline

Definition at line 139 of file FlatCombiningExamples.h.

References val.

139  {
140  val_ = val;
141  }
double val
Definition: String.cpp:273

Member Data Documentation

uint64_t folly::Req::res_
private

Definition at line 158 of file FlatCombiningExamples.h.

Type folly::Req::type_
private

Definition at line 156 of file FlatCombiningExamples.h.

uint64_t folly::Req::val_
private

Definition at line 157 of file FlatCombiningExamples.h.


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