LLVM  8.0.1
Public Member Functions | List of all members
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 size () const
 
MemoryBlock getMemoryBlock () const
 

Detailed Description

Owning version of MemoryBlock.

Definition at line 119 of file Memory.h.

Constructor & Destructor Documentation

◆ OwningMemoryBlock() [1/3]

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

◆ OwningMemoryBlock() [2/3]

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

Definition at line 122 of file Memory.h.

◆ OwningMemoryBlock() [3/3]

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

Definition at line 123 of file Memory.h.

References llvm::sys::MemoryBlock::MemoryBlock(), and Other.

◆ ~OwningMemoryBlock()

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

Definition at line 132 of file Memory.h.

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

Member Function Documentation

◆ base()

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

Definition at line 135 of file Memory.h.

◆ getMemoryBlock()

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

Definition at line 137 of file Memory.h.

◆ operator=()

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

Definition at line 127 of file Memory.h.

References llvm::sys::MemoryBlock::MemoryBlock(), and Other.

◆ size()

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

Definition at line 136 of file Memory.h.


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