LLVM 22.0.0git
llvm::sys::OwningMemoryBlock Class Reference

Owning version of MemoryBlock. More...

#include "llvm/Support/Memory.h"

Public Member Functions

 OwningMemoryBlock ()=default
 OwningMemoryBlock (MemoryBlock M)
 OwningMemoryBlock (OwningMemoryBlock &&Other)
OwningMemoryBlockoperator= (OwningMemoryBlock &&Other)
 ~OwningMemoryBlock ()
void * base () const
size_t allocatedSize () const
 The size as it was allocated.
MemoryBlock getMemoryBlock () const
std::error_code release ()

Detailed Description

Owning version of MemoryBlock.

Definition at line 139 of file Memory.h.

Constructor & Destructor Documentation

◆ OwningMemoryBlock() [1/3]

llvm::sys::OwningMemoryBlock::OwningMemoryBlock ( )
default

Referenced by operator=(), and OwningMemoryBlock().

◆ OwningMemoryBlock() [2/3]

llvm::sys::OwningMemoryBlock::OwningMemoryBlock ( MemoryBlock M)
inlineexplicit

Definition at line 142 of file Memory.h.

References llvm::move().

◆ OwningMemoryBlock() [3/3]

llvm::sys::OwningMemoryBlock::OwningMemoryBlock ( OwningMemoryBlock && Other)
inline

Definition at line 143 of file Memory.h.

References llvm::Other, and OwningMemoryBlock().

◆ ~OwningMemoryBlock()

llvm::sys::OwningMemoryBlock::~OwningMemoryBlock ( )
inline

Definition at line 152 of file Memory.h.

References llvm::sys::Memory::releaseMappedMemory().

Member Function Documentation

◆ allocatedSize()

size_t llvm::sys::OwningMemoryBlock::allocatedSize ( ) const
inline

The size as it was allocated.

This is always greater or equal to the size that was originally requested.

Definition at line 159 of file Memory.h.

◆ base()

void * llvm::sys::OwningMemoryBlock::base ( ) const
inline

Definition at line 156 of file Memory.h.

◆ getMemoryBlock()

MemoryBlock llvm::sys::OwningMemoryBlock::getMemoryBlock ( ) const
inline

Definition at line 160 of file Memory.h.

◆ operator=()

OwningMemoryBlock & llvm::sys::OwningMemoryBlock::operator= ( OwningMemoryBlock && Other)
inline

Definition at line 147 of file Memory.h.

References llvm::Other, and OwningMemoryBlock().

◆ release()

std::error_code llvm::sys::OwningMemoryBlock::release ( )
inline

Definition at line 161 of file Memory.h.

References llvm::sys::Memory::releaseMappedMemory().


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