LLVM 22.0.0git
llvm::cas::ondisk::ObjectHandle Class Reference

Handle for a loaded node object. More...

#include "llvm/CAS/OnDiskGraphDB.h"

Public Member Functions

 ObjectHandle (uint64_t Opaque)
uint64_t getOpaqueData () const

Static Public Member Functions

static ObjectHandle fromFileOffset (FileOffset Offset)
static ObjectHandle fromMemory (uintptr_t Ptr)

Friends

bool operator== (const ObjectHandle &LHS, const ObjectHandle &RHS)
bool operator!= (const ObjectHandle &LHS, const ObjectHandle &RHS)

Detailed Description

Handle for a loaded node object.

Definition at line 198 of file OnDiskGraphDB.h.

Constructor & Destructor Documentation

◆ ObjectHandle()

llvm::cas::ondisk::ObjectHandle::ObjectHandle ( uint64_t Opaque)
inlineexplicit

Definition at line 200 of file OnDiskGraphDB.h.

Referenced by fromFileOffset(), fromMemory(), operator!=, and operator==.

Member Function Documentation

◆ fromFileOffset()

ObjectHandle ObjectHandle::fromFileOffset ( FileOffset Offset)
static

Definition at line 462 of file OnDiskGraphDB.cpp.

References assert(), ObjectHandle(), and llvm::Offset.

Referenced by llvm::cas::ondisk::OnDiskGraphDB::load().

◆ fromMemory()

ObjectHandle ObjectHandle::fromMemory ( uintptr_t Ptr)
static

Definition at line 468 of file OnDiskGraphDB.cpp.

References assert(), ObjectHandle(), and Ptr.

Referenced by llvm::cas::ondisk::OnDiskGraphDB::load().

◆ getOpaqueData()

uint64_t llvm::cas::ondisk::ObjectHandle::getOpaqueData ( ) const
inline

Definition at line 201 of file OnDiskGraphDB.h.

◆ operator!=

bool operator!= ( const ObjectHandle & LHS,
const ObjectHandle & RHS )
friend

Definition at line 209 of file OnDiskGraphDB.h.

References LHS, ObjectHandle(), and RHS.

◆ operator==

bool operator== ( const ObjectHandle & LHS,
const ObjectHandle & RHS )
friend

Definition at line 206 of file OnDiskGraphDB.h.

References LHS, ObjectHandle(), and RHS.


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