omega_h
Reliable mesh adaptation
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Omega_h::SharedAlloc Struct Reference

Public Types

enum  : std::uintptr_t {
  FREE_BIT1 = 0x1 , FREE_BIT2 = 0x2 , FREE_BIT3 = 0x4 , FREE_MASK = 0x7 ,
  IN_PARALLEL = FREE_BIT1 , IS_IDENTITY = FREE_BIT2
}
 

Public Member Functions

 SharedAlloc (std::size_t size_in, std::string const &name_in)
 
 SharedAlloc (std::size_t size_in, std::string &&name_in)
 
 SharedAlloc (std::size_t size_in)
 
OMEGA_H_INLINE void copy (SharedAlloc const &other) noexcept
 
OMEGA_H_INLINE SharedAlloc (SharedAlloc const &other)
 
OMEGA_H_INLINE void move (SharedAlloc &&other) noexcept
 
OMEGA_H_INLINE SharedAlloc (SharedAlloc &&other)
 
OMEGA_H_INLINE SharedAllocoperator= (SharedAlloc const &other)
 
OMEGA_H_INLINE SharedAllocoperator= (SharedAlloc &&other)
 
OMEGA_H_INLINE void clear ()
 
OMEGA_H_INLINE std::size_t size () const noexcept
 
OMEGA_H_INLINE int maybe_identity_index (int i) const noexcept
 
OMEGA_H_INLINE void * data () const noexcept
 

Static Public Member Functions

static SharedAlloc identity (std::size_t size_in)
 

Public Attributes

Allocalloc
 
void * direct_ptr
 

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