PMDK C++ bindings  1.13.0-git107.g7e59f08f
This is the C++ bindings documentation for PMDK's libpmemobj.
pmem::obj::allocation_flag_atomic Struct Reference

Type of flag which can be passed to make_persistent_atomic. More...

#include <libpmemobj++/allocation_flag.hpp>

Public Member Functions

 allocation_flag_atomic (uint64_t val)
 Emplace constructor.
 
bool is_set (const allocation_flag_atomic &rhs)
 Check if flag is set.
 
allocation_flag_atomic operator| (const allocation_flag_atomic &rhs)
 

Static Public Member Functions

static allocation_flag_atomic class_id (uint64_t id)
 Allocate the object from the allocation class with id equal to id.
 
static allocation_flag_atomic none ()
 Do not change allocator behaviour.
 

Public Attributes

uint64_t value
 

Detailed Description

Type of flag which can be passed to make_persistent_atomic.

Allowed flags are:

  • allocation_flag_atomic::class_id(id) - allocate the object from the allocation class with id equal to id.
  • allocation_flag_atomic::none() - do not change allocator behaviour.

Flags can be combined with each other using operator|()


The documentation for this struct was generated from the following file: