A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Handle.cc File Reference
#include <cstddef>
#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
#include <cstring>
#include "PDBDebug.h"
#include "TypeName.h"
#include "Handle.h"
#include "RefCountedObject.h"
+ Include dependency graph for Handle.cc:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 pdb
 

Macros

#define HANDLE_CC
 
#define CHAR_PTR(c)   ((char*)c)
 
#define GET_OLD_TARGET
 
#define DEC_OLD_REF_COUNT
 

Functions

template<class ObjType , class ObjTypeTwo >
auto pdb::convert (ObjType *, ObjTypeTwo *) -> std::enable_if_t< std::is_base_of< ObjType, ObjTypeTwo >::value||(std::is_base_of< ObjType, Object >::value &&std::is_base_of< String, ObjTypeTwo >::value)||(std::is_base_of< ObjType, Object >::value &&std::is_base_of< HandleBase, ObjTypeTwo >::value), int >
 

Macro Definition Documentation

#define CHAR_PTR (   c)    ((char*)c)

Definition at line 36 of file Handle.cc.

#define DEC_OLD_REF_COUNT
Value:
if (oldTarget != nullptr) \
oldTarget->decRefCount(oldTypeInfo)

Definition at line 167 of file Handle.cc.

#define GET_OLD_TARGET
Value:
RefCountedObject<ObjType>* oldTarget = nullptr; \
if (!isNullPtr()) \
oldTarget = getTarget(); \
PDBTemplateBase oldTypeInfo = typeInfo;

Definition at line 162 of file Handle.cc.

#define HANDLE_CC

Definition at line 20 of file Handle.cc.