TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
common.h File Reference
#include <assert.h>
#include <stdlib.h>
#include <cstddef>
#include <string>
#include <string.h>
#include <stdint.h>
+ Include dependency graph for common.h:

Go to the source code of this file.

Classes

struct  google::protobuf::internal::CompileAssert< bool >
 
class  google::protobuf::internal::scoped_ptr< C >
 
class  google::protobuf::internal::scoped_array< C >
 
class  google::protobuf::internal::scoped_ptr< C >
 
class  google::protobuf::internal::scoped_array< C >
 
class  google::protobuf::internal::LogMessage
 
class  google::protobuf::internal::LogFinisher
 
class  google::protobuf::LogSilencer
 
class  google::protobuf::Closure
 
class  google::protobuf::internal::FunctionClosure0
 
class  google::protobuf::internal::MethodClosure0< Class >
 
class  google::protobuf::internal::FunctionClosure1< Arg1 >
 
class  google::protobuf::internal::MethodClosure1< Class, Arg1 >
 
class  google::protobuf::internal::FunctionClosure2< Arg1, Arg2 >
 
class  google::protobuf::internal::MethodClosure2< Class, Arg1, Arg2 >
 
class  google::protobuf::internal::Mutex
 
class  google::protobuf::internal::MutexLock
 
class  google::protobuf::internal::MutexLockMaybe
 

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::internal
 

Macros

#define PROTOBUF_USE_EXCEPTIONS   0
 
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
 
#define LIBPROTOBUF_EXPORT
 
#define LIBPROTOC_EXPORT
 
#define GOOGLE_PROTOBUF_VERSION   2006001
 
#define GOOGLE_PROTOBUF_MIN_LIBRARY_VERSION   2006000
 
#define GOOGLE_PROTOBUF_MIN_PROTOC_VERSION   2006000
 
#define GOOGLE_PROTOBUF_VERIFY_VERSION
 
#define GOOGLE_LONGLONG(x)   x##LL
 
#define GOOGLE_ULONGLONG(x)   x##ULL
 
#define GOOGLE_LL_FORMAT   "ll"
 
#define GOOGLE_ATTRIBUTE_ALWAYS_INLINE
 
#define GOOGLE_ATTRIBUTE_DEPRECATED
 
#define GOOGLE_PREDICT_TRUE
 
#define GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN()
 
#define GOOGLE_SAFE_CONCURRENT_WRITES_END()
 
#define GOOGLE_ARRAYSIZE(a)
 
#define GOOGLE_COMPILE_ASSERT(expr, msg)
 
#define GOOGLE_LOG(LEVEL)
 
#define GOOGLE_LOG_IF(LEVEL, CONDITION)   !(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL)
 
#define GOOGLE_CHECK(EXPRESSION)   GOOGLE_LOG_IF(FATAL, !(EXPRESSION)) << "CHECK failed: " #EXPRESSION ": "
 
#define GOOGLE_CHECK_OK(A)   GOOGLE_CHECK(A)
 
#define GOOGLE_CHECK_EQ(A, B)   GOOGLE_CHECK((A) == (B))
 
#define GOOGLE_CHECK_NE(A, B)   GOOGLE_CHECK((A) != (B))
 
#define GOOGLE_CHECK_LT(A, B)   GOOGLE_CHECK((A) < (B))
 
#define GOOGLE_CHECK_LE(A, B)   GOOGLE_CHECK((A) <= (B))
 
#define GOOGLE_CHECK_GT(A, B)   GOOGLE_CHECK((A) > (B))
 
#define GOOGLE_CHECK_GE(A, B)   GOOGLE_CHECK((A) >= (B))
 
#define GOOGLE_CHECK_NOTNULL(A)   internal::CheckNotNull(__FILE__, __LINE__, "'" #A "' must not be NULL", (A))
 
#define GOOGLE_DLOG   GOOGLE_LOG
 
#define GOOGLE_DCHECK   GOOGLE_CHECK
 
#define GOOGLE_DCHECK_EQ   GOOGLE_CHECK_EQ
 
#define GOOGLE_DCHECK_NE   GOOGLE_CHECK_NE
 
#define GOOGLE_DCHECK_LT   GOOGLE_CHECK_LT
 
#define GOOGLE_DCHECK_LE   GOOGLE_CHECK_LE
 
#define GOOGLE_DCHECK_GT   GOOGLE_CHECK_GT
 
#define GOOGLE_DCHECK_GE   GOOGLE_CHECK_GE
 

Typedefs

typedef unsigned int google::protobuf::uint
 
typedef int8_t google::protobuf::int8
 
typedef int16_t google::protobuf::int16
 
typedef int32_t google::protobuf::int32
 
typedef int64_t google::protobuf::int64
 
typedef uint8_t google::protobuf::uint8
 
typedef uint16_t google::protobuf::uint16
 
typedef uint32_t google::protobuf::uint32
 
typedef uint64_t google::protobuf::uint64
 
typedef void google::protobuf::LogHandler (LogLevel level, const char *filename, int line, const std::string &message)
 
typedef MutexLock google::protobuf::internal::ReaderMutexLock
 
typedef MutexLock google::protobuf::internal::WriterMutexLock
 

Enumerations

enum  google::protobuf::LogLevel {
  google::protobuf::LOGLEVEL_INFO, google::protobuf::LOGLEVEL_WARNING, google::protobuf::LOGLEVEL_ERROR, google::protobuf::LOGLEVEL_FATAL,
  google::protobuf::LOGLEVEL_DFATAL = LOGLEVEL_FATAL
}
 

Functions

void LIBPROTOBUF_EXPORT google::protobuf::internal::VerifyVersion (int headerVersion, int minLibraryVersion, const char *filename)
 
std::string LIBPROTOBUF_EXPORT google::protobuf::internal::VersionString (int version)
 
template<typename To , typename From >
To google::protobuf::internal::implicit_cast (From const &f)
 
template<typename To , typename From >
To google::protobuf::internal::down_cast (From *f)
 
template<typename T >
T * google::protobuf::internal::CheckNotNull (const char *, int, const char *name, T *val)
 
LIBPROTOBUF_EXPORT LogHandler * google::protobuf::SetLogHandler (LogHandler *new_func)
 
Closure * google::protobuf::NewCallback (void(*function)())
 
Closure * google::protobuf::NewPermanentCallback (void(*function)())
 
template<typename Class >
Closure * google::protobuf::NewCallback (Class *object, void(Class::*method)())
 
template<typename Class >
Closure * google::protobuf::NewPermanentCallback (Class *object, void(Class::*method)())
 
template<typename Arg1 >
Closure * google::protobuf::NewCallback (void(*function)(Arg1), Arg1 arg1)
 
template<typename Arg1 >
Closure * google::protobuf::NewPermanentCallback (void(*function)(Arg1), Arg1 arg1)
 
template<typename Class , typename Arg1 >
Closure * google::protobuf::NewCallback (Class *object, void(Class::*method)(Arg1), Arg1 arg1)
 
template<typename Class , typename Arg1 >
Closure * google::protobuf::NewPermanentCallback (Class *object, void(Class::*method)(Arg1), Arg1 arg1)
 
template<typename Arg1 , typename Arg2 >
Closure * google::protobuf::NewCallback (void(*function)(Arg1, Arg2), Arg1 arg1, Arg2 arg2)
 
template<typename Arg1 , typename Arg2 >
Closure * google::protobuf::NewPermanentCallback (void(*function)(Arg1, Arg2), Arg1 arg1, Arg2 arg2)
 
template<typename Class , typename Arg1 , typename Arg2 >
Closure * google::protobuf::NewCallback (Class *object, void(Class::*method)(Arg1, Arg2), Arg1 arg1, Arg2 arg2)
 
template<typename Class , typename Arg1 , typename Arg2 >
Closure * google::protobuf::NewPermanentCallback (Class *object, void(Class::*method)(Arg1, Arg2), Arg1 arg1, Arg2 arg2)
 
void LIBPROTOBUF_EXPORT google::protobuf::DoNothing ()
 
LIBPROTOBUF_EXPORT bool google::protobuf::internal::IsStructurallyValidUTF8 (const char *buf, int len)
 
LIBPROTOBUF_EXPORT uint32 google::protobuf::ghtonl (uint32 x)
 
LIBPROTOBUF_EXPORT void google::protobuf::ShutdownProtobufLibrary ()
 
LIBPROTOBUF_EXPORT void google::protobuf::internal::OnShutdown (void(*func)())
 

Variables

static const int google::protobuf::internal::kMinHeaderVersionForLibrary = 2006000
 
static const int google::protobuf::internal::kMinHeaderVersionForProtoc = 2006000
 
static const int32 google::protobuf::kint32max = 0x7FFFFFFF
 
static const int32 google::protobuf::kint32min = -kint32max - 1
 
static const int64 google::protobuf::kint64max = GOOGLE_LONGLONG(0x7FFFFFFFFFFFFFFF)
 
static const int64 google::protobuf::kint64min = -kint64max - 1
 
static const uint32 google::protobuf::kuint32max = 0xFFFFFFFFu
 
static const uint64 google::protobuf::kuint64max = GOOGLE_ULONGLONG(0xFFFFFFFFFFFFFFFF)
 

Macro Definition Documentation

#define GOOGLE_ARRAYSIZE (   a)
Value:
((sizeof(a) / sizeof(*(a))) / \
static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))
#define GOOGLE_ATTRIBUTE_ALWAYS_INLINE
#define GOOGLE_ATTRIBUTE_DEPRECATED
#define GOOGLE_CHECK (   EXPRESSION)    GOOGLE_LOG_IF(FATAL, !(EXPRESSION)) << "CHECK failed: " #EXPRESSION ": "
#define GOOGLE_CHECK_EQ (   A,
 
)    GOOGLE_CHECK((A) == (B))
#define GOOGLE_CHECK_GE (   A,
 
)    GOOGLE_CHECK((A) >= (B))
#define GOOGLE_CHECK_GT (   A,
 
)    GOOGLE_CHECK((A) > (B))
#define GOOGLE_CHECK_LE (   A,
 
)    GOOGLE_CHECK((A) <= (B))
#define GOOGLE_CHECK_LT (   A,
 
)    GOOGLE_CHECK((A) < (B))
#define GOOGLE_CHECK_NE (   A,
 
)    GOOGLE_CHECK((A) != (B))
#define GOOGLE_CHECK_NOTNULL (   A)    internal::CheckNotNull(__FILE__, __LINE__, "'" #A "' must not be NULL", (A))
#define GOOGLE_CHECK_OK (   A)    GOOGLE_CHECK(A)
#define GOOGLE_COMPILE_ASSERT (   expr,
  msg 
)
Value:
typedef ::google::protobuf::internal::CompileAssert<(bool(expr))> \
msg[bool(expr) ? 1 : -1]
#define bool
Definition: CascPort.h:16
#define GOOGLE_DCHECK   GOOGLE_CHECK
#define GOOGLE_DCHECK_EQ   GOOGLE_CHECK_EQ
#define GOOGLE_DCHECK_GE   GOOGLE_CHECK_GE
#define GOOGLE_DCHECK_GT   GOOGLE_CHECK_GT
#define GOOGLE_DCHECK_LE   GOOGLE_CHECK_LE
#define GOOGLE_DCHECK_LT   GOOGLE_CHECK_LT
#define GOOGLE_DCHECK_NE   GOOGLE_CHECK_NE
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (   TypeName)
Value:
TypeName(const TypeName&); \
void operator=(const TypeName&)
Vector2int16 & operator=(const Any &a)
#define GOOGLE_DLOG   GOOGLE_LOG
#define GOOGLE_LL_FORMAT   "ll"
#define GOOGLE_LOG (   LEVEL)
Value:
::google::protobuf::internal::LogMessage( \
::google::protobuf::LOGLEVEL_##LEVEL, __FILE__, __LINE__)
#define GOOGLE_LOG_IF (   LEVEL,
  CONDITION 
)    !(CONDITION) ? (void)0 : GOOGLE_LOG(LEVEL)
#define GOOGLE_LONGLONG (   x)    x##LL
#define GOOGLE_PREDICT_TRUE
#define GOOGLE_PROTOBUF_MIN_LIBRARY_VERSION   2006000
#define GOOGLE_PROTOBUF_MIN_PROTOC_VERSION   2006000
#define GOOGLE_PROTOBUF_VERIFY_VERSION
Value:
__FILE__)
#define GOOGLE_PROTOBUF_VERSION
Definition: common.h:116
void LIBPROTOBUF_EXPORT VerifyVersion(int headerVersion, int minLibraryVersion, const char *filename)
#define GOOGLE_PROTOBUF_MIN_LIBRARY_VERSION
Definition: common.h:120
#define GOOGLE_PROTOBUF_VERSION   2006001
#define GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN ( )
#define GOOGLE_SAFE_CONCURRENT_WRITES_END ( )
#define GOOGLE_ULONGLONG (   x)    x##ULL
#define LIBPROTOBUF_EXPORT
#define LIBPROTOC_EXPORT
#define PROTOBUF_USE_EXCEPTIONS   0