WPILibC++ 2024.3.2
wpi::MallocAllocator Class Reference

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/AllocatorBase.h>

Inheritance diagram for wpi::MallocAllocator:
wpi::AllocatorBase< MallocAllocator > wpi::detail::AllocatorHolder< MallocAllocator > wpi::StringMap< void * > wpi::StringMap< std::unique_ptr< frc::MechanismRoot2d > > wpi::StringMap< std::unique_ptr< frc::MechanismObject2d > > wpi::StringMap< T > wpi::StringMap< nt::Value > wpi::StringMap< frc::ShuffleboardLayout * > wpi::StringMap< std::chrono::nanoseconds > wpi::StringMap< MotorEntries > wpi::StringMap< NT_Entry > wpi::StringMap< std::string_view > wpi::StringMap< ProtoFile > wpi::StringMap< std::unique_ptr< google::protobuf::Message > > wpi::StringMap< size_t > wpi::StringMap< std::unique_ptr< wpi::StructDescriptor > > wpi::StringMap< EntryInfo > wpi::StringMap< ValueTy, AllocatorTy >

Public Member Functions

void Reset ()
 
LLVM_ATTRIBUTE_RETURNS_NONNULL void * Allocate (size_t Size, size_t Alignment)
 
void Deallocate (const void *Ptr, size_t Size, size_t Alignment)
 
void PrintStats () const
 
- Public Member Functions inherited from wpi::AllocatorBase< MallocAllocator >
void * Allocate (size_t Size, size_t Alignment)
 Allocate Size bytes of Alignment aligned memory. More...
 
T * Allocate (size_t Num=1)
 Allocate space for a sequence of objects without constructing them. More...
 
void Deallocate (const void *Ptr, size_t Size, size_t Alignment)
 Deallocate Ptr to Size bytes of memory allocated by this allocator. More...
 
std::enable_if_t<!std::is_same_v< std::remove_cv_t< T >, void >, void > Deallocate (T *Ptr, size_t Num=1)
 Deallocate space for a sequence of objects without constructing them. More...
 

Member Function Documentation

◆ Allocate()

LLVM_ATTRIBUTE_RETURNS_NONNULL void * wpi::MallocAllocator::Allocate ( size_t  Size,
size_t  Alignment 
)
inline

◆ Deallocate()

void wpi::MallocAllocator::Deallocate ( const void *  Ptr,
size_t  Size,
size_t  Alignment 
)
inline

◆ PrintStats()

void wpi::MallocAllocator::PrintStats ( ) const
inline

◆ Reset()

void wpi::MallocAllocator::Reset ( )
inline

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