9 #ifndef LIBPMEMOBJ_CPP_ALLOCATION_FLAG_HPP
10 #define LIBPMEMOBJ_CPP_ALLOCATION_FLAG_HPP
12 #include <libpmemobj/base.h>
72 return (value & rhs.value) != 0;
126 return (value & rhs.value) != 0;
Persistent memory namespace.
Definition: allocation_flag.hpp:15
Type of flag which can be passed to make_persistent_atomic.
Definition: allocation_flag.hpp:94
static allocation_flag_atomic class_id(uint64_t id)
Allocate the object from the allocation class with id equal to id.
Definition: allocation_flag.hpp:106
static allocation_flag_atomic none()
Do not change allocator behaviour.
Definition: allocation_flag.hpp:115
allocation_flag_atomic(uint64_t val)
Emplace constructor.
Definition: allocation_flag.hpp:98
bool is_set(const allocation_flag_atomic &rhs)
Check if flag is set.
Definition: allocation_flag.hpp:124
Type of flag which can be passed to make_persistent.
Definition: allocation_flag.hpp:31
static allocation_flag no_flush()
Skip flush on commit.
Definition: allocation_flag.hpp:52
allocation_flag(uint64_t val)
Emplace constructor.
Definition: allocation_flag.hpp:35
static allocation_flag none()
Do not change allocator behaviour.
Definition: allocation_flag.hpp:61
static allocation_flag class_id(uint64_t id)
Allocate the object from the allocation class with id equal to id.
Definition: allocation_flag.hpp:43
bool is_set(const allocation_flag &rhs)
Check if flag is set.
Definition: allocation_flag.hpp:70