Cuda battery library
Loading...
Searching...
No Matches
battery::statistics_allocator< Allocator, InternalAllocator > Class Template Reference

#include <allocator.hpp>

Public Types

using this_type = statistics_allocator<Allocator, InternalAllocator>
 

Public Member Functions

CUDA NI statistics_allocator (const statistics_allocator &other)
 
CUDA NI statistics_allocator (const Allocator &allocator=Allocator(), const InternalAllocator &internal_allocator=InternalAllocator())
 
CUDA NI ~statistics_allocator ()
 
CUDA NI void * allocate (size_t bytes)
 
CUDA NI void deallocate (void *ptr)
 
CUDA size_t num_allocations () const
 
CUDA size_t num_deallocations () const
 
CUDA size_t total_bytes_allocated () const
 
CUDA bool operator== (const this_type &rhs) const
 

Member Typedef Documentation

◆ this_type

template<class Allocator , class InternalAllocator = Allocator>
using battery::statistics_allocator< Allocator, InternalAllocator >::this_type = statistics_allocator<Allocator, InternalAllocator>

Constructor & Destructor Documentation

◆ statistics_allocator() [1/2]

template<class Allocator , class InternalAllocator = Allocator>
CUDA NI battery::statistics_allocator< Allocator, InternalAllocator >::statistics_allocator ( const statistics_allocator< Allocator, InternalAllocator > & other)
inline

◆ statistics_allocator() [2/2]

template<class Allocator , class InternalAllocator = Allocator>
CUDA NI battery::statistics_allocator< Allocator, InternalAllocator >::statistics_allocator ( const Allocator & allocator = Allocator(),
const InternalAllocator & internal_allocator = InternalAllocator() )
inline

◆ ~statistics_allocator()

template<class Allocator , class InternalAllocator = Allocator>
CUDA NI battery::statistics_allocator< Allocator, InternalAllocator >::~statistics_allocator ( )
inline

Member Function Documentation

◆ allocate()

template<class Allocator , class InternalAllocator = Allocator>
CUDA NI void * battery::statistics_allocator< Allocator, InternalAllocator >::allocate ( size_t bytes)
inline

◆ deallocate()

template<class Allocator , class InternalAllocator = Allocator>
CUDA NI void battery::statistics_allocator< Allocator, InternalAllocator >::deallocate ( void * ptr)
inline

◆ num_allocations()

template<class Allocator , class InternalAllocator = Allocator>
CUDA size_t battery::statistics_allocator< Allocator, InternalAllocator >::num_allocations ( ) const
inline

◆ num_deallocations()

template<class Allocator , class InternalAllocator = Allocator>
CUDA size_t battery::statistics_allocator< Allocator, InternalAllocator >::num_deallocations ( ) const
inline

◆ total_bytes_allocated()

template<class Allocator , class InternalAllocator = Allocator>
CUDA size_t battery::statistics_allocator< Allocator, InternalAllocator >::total_bytes_allocated ( ) const
inline

◆ operator==()

template<class Allocator , class InternalAllocator = Allocator>
CUDA bool battery::statistics_allocator< Allocator, InternalAllocator >::operator== ( const this_type & rhs) const
inline

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