MCPcopy Create free account
hub / github.com/Tencent/phxqueue / as_integer

Function as_integer

phxqueue/comm/errdef.h:126–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124
125template <typename Enumeration>
126 typename std::underlying_type<Enumeration>::type as_integer(Enumeration const value) {
127 return static_cast<typename std::underlying_type<Enumeration>::type>(value);
128}
129
130#define PHX_ASSERT(left,operator,right) { if(!((left) operator (right))) { std::cerr << "ASSERT FAILED: " << #left << #operator << #right << " @ " << __FILE__ << " (" << __LINE__ << "). " << #left << "=" << (left) << "; " << #right << "=" << (right) << std::endl; abort();} }
131

Callers 15

GetLockInfoMethod · 0.85
AcquireLockMethod · 0.85
AddMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85
TaskFuncMethod · 0.85
GetMethod · 0.85
AddMethod · 0.85
GetAddrScaleMethod · 0.85
GetLockInfoMethod · 0.85
AcquireLockMethod · 0.85
InitMethod · 0.85

Calls

no outgoing calls

Tested by 15

mainFunction · 0.68
mainFunction · 0.68
TaskFuncMethod · 0.68
GetAddrScaleMethod · 0.68
ProcessMethod · 0.68
CheckTopicConfigMethod · 0.68
CheckConsumerConfigMethod · 0.68
CheckStoreConfigMethod · 0.68
CheckLockConfigMethod · 0.68
GetLockInfoMethod · 0.68
AcquireLockMethod · 0.68
TestGetAddrScaleFunction · 0.68