Kùzu C++ API
Loading...
Searching...
No Matches
copy_constructors.h File Reference
#include <memory>
#include <unordered_map>
#include <vector>

Go to the source code of this file.

Macros

#define DELETE_COPY_CONSTRUCT(Object)
 
#define DELETE_COPY_ASSN(Object)
 
#define DELETE_MOVE_CONSTRUCT(Object)
 
#define DELETE_MOVE_ASSN(Object)
 
#define DELETE_BOTH_COPY(Object)
 
#define DELETE_BOTH_MOVE(Object)
 
#define DEFAULT_MOVE_CONSTRUCT(Object)
 
#define DEFAULT_MOVE_ASSN(Object)
 
#define DEFAULT_BOTH_MOVE(Object)
 
#define EXPLICIT_COPY_METHOD(Object)
 
#define EXPLICIT_COPY_DEFAULT_MOVE(Object)
 
#define DELETE_COPY_DEFAULT_MOVE(Object)
 
#define DELETE_COPY_AND_MOVE(Object)
 

Macro Definition Documentation

◆ DEFAULT_BOTH_MOVE

#define DEFAULT_BOTH_MOVE ( Object)
Value:
DEFAULT_MOVE_ASSN(Object)
#define DEFAULT_MOVE_CONSTRUCT(Object)
Definition copy_constructors.h:23

◆ DEFAULT_MOVE_ASSN

#define DEFAULT_MOVE_ASSN ( Object)
Value:
Object& operator=(Object&& other) = default

◆ DEFAULT_MOVE_CONSTRUCT

#define DEFAULT_MOVE_CONSTRUCT ( Object)
Value:
Object(Object&& other) = default

◆ DELETE_BOTH_COPY

#define DELETE_BOTH_COPY ( Object)
Value:
DELETE_COPY_ASSN(Object)
#define DELETE_COPY_CONSTRUCT(Object)
Definition copy_constructors.h:9

◆ DELETE_BOTH_MOVE

#define DELETE_BOTH_MOVE ( Object)
Value:
DELETE_MOVE_ASSN(Object)
#define DELETE_MOVE_CONSTRUCT(Object)
Definition copy_constructors.h:12

◆ DELETE_COPY_AND_MOVE

#define DELETE_COPY_AND_MOVE ( Object)
Value:
DELETE_BOTH_COPY(Object); \
DELETE_BOTH_MOVE(Object)
#define DELETE_BOTH_COPY(Object)
Definition copy_constructors.h:15

◆ DELETE_COPY_ASSN

#define DELETE_COPY_ASSN ( Object)
Value:
Object& operator=(const Object& other) = delete

◆ DELETE_COPY_CONSTRUCT

#define DELETE_COPY_CONSTRUCT ( Object)
Value:
Object(const Object& other) = delete

◆ DELETE_COPY_DEFAULT_MOVE

#define DELETE_COPY_DEFAULT_MOVE ( Object)
Value:
DELETE_BOTH_COPY(Object); \
DEFAULT_BOTH_MOVE(Object)

◆ DELETE_MOVE_ASSN

#define DELETE_MOVE_ASSN ( Object)
Value:
Object& operator=(Object&& other) = delete

◆ DELETE_MOVE_CONSTRUCT

#define DELETE_MOVE_CONSTRUCT ( Object)
Value:
Object(Object&& other) = delete

◆ EXPLICIT_COPY_DEFAULT_MOVE

#define EXPLICIT_COPY_DEFAULT_MOVE ( Object)
Value:
DELETE_COPY_ASSN(Object); \
DEFAULT_BOTH_MOVE(Object); \
EXPLICIT_COPY_METHOD(Object)
#define DELETE_COPY_ASSN(Object)
Definition copy_constructors.h:10

◆ EXPLICIT_COPY_METHOD

#define EXPLICIT_COPY_METHOD ( Object)
Value:
Object copy() const { \
return *this; \
}