Public Member Functions | Private Member Functions | List of all members
grpc_core::MemoryOwner Class Referencefinal

#include <memory_quota.h>

Inheritance diagram for grpc_core::MemoryOwner:
Inheritance graph
[legend]

Public Member Functions

double InstantaneousPressure () const
 
bool is_valid () const
 
template<typename T , typename... Args>
OrphanablePtr< TMakeOrphanable (Args &&... args)
 
 MemoryOwner ()=default
 
 MemoryOwner (std::shared_ptr< GrpcMemoryAllocatorImpl > allocator)
 
absl::string_view name () const
 
template<typename F >
void PostReclaimer (ReclamationPass pass, F fn)
 
- Public Member Functions inherited from grpc_event_engine::experimental::MemoryAllocator
Reservation MakeReservation (MemoryRequest request)
 
grpc_slice MakeSlice (MemoryRequest request)
 
template<typename T , typename... Args>
std::unique_ptr< TMakeUnique (Args &&... args)
 Construct a unique_ptr immediately. More...
 
 MemoryAllocator ()
 
 MemoryAllocator (const MemoryAllocator &)=delete
 
 MemoryAllocator (MemoryAllocator &&)=default
 
 MemoryAllocator (std::shared_ptr< internal::MemoryAllocatorImpl > allocator)
 
template<typename T , typename... Args>
std::enable_if< std::has_virtual_destructor< T >::value, T * >::type New (Args &&... args)
 
MemoryAllocatoroperator= (const MemoryAllocator &)=delete
 
MemoryAllocatoroperator= (MemoryAllocator &&)=default
 
void Release (size_t n)
 Release some bytes that were previously reserved. More...
 
size_t Reserve (MemoryRequest request)
 
void Reset ()
 
 ~MemoryAllocator ()
 

Private Member Functions

GrpcMemoryAllocatorImplimpl ()
 
const GrpcMemoryAllocatorImplimpl () const
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_event_engine::experimental::MemoryAllocator
internal::MemoryAllocatorImplget_internal_impl_ptr ()
 
const internal::MemoryAllocatorImplget_internal_impl_ptr () const
 

Detailed Description

Definition at line 381 of file memory_quota.h.

Constructor & Destructor Documentation

◆ MemoryOwner() [1/2]

grpc_core::MemoryOwner::MemoryOwner ( )
default

◆ MemoryOwner() [2/2]

grpc_core::MemoryOwner::MemoryOwner ( std::shared_ptr< GrpcMemoryAllocatorImpl allocator)
inlineexplicit

Definition at line 385 of file memory_quota.h.

Member Function Documentation

◆ impl() [1/2]

GrpcMemoryAllocatorImpl* grpc_core::MemoryOwner::impl ( )
inlineprivate

Definition at line 415 of file memory_quota.h.

◆ impl() [2/2]

const GrpcMemoryAllocatorImpl* grpc_core::MemoryOwner::impl ( ) const
inlineprivate

Definition at line 411 of file memory_quota.h.

◆ InstantaneousPressure()

double grpc_core::MemoryOwner::InstantaneousPressure ( ) const
inline

Definition at line 395 of file memory_quota.h.

◆ is_valid()

bool grpc_core::MemoryOwner::is_valid ( ) const
inline

Definition at line 408 of file memory_quota.h.

◆ MakeOrphanable()

template<typename T , typename... Args>
OrphanablePtr<T> grpc_core::MemoryOwner::MakeOrphanable ( Args &&...  args)
inline

Definition at line 400 of file memory_quota.h.

◆ name()

absl::string_view grpc_core::MemoryOwner::name ( ) const
inline

Definition at line 405 of file memory_quota.h.

◆ PostReclaimer()

template<typename F >
void grpc_core::MemoryOwner::PostReclaimer ( ReclamationPass  pass,
fn 
)
inline

Definition at line 390 of file memory_quota.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:36