BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
bc::allocators::Logging_Allocator< Allocator > Struct Template Reference

#include <logging_allocator.h>

Inheritance diagram for bc::allocators::Logging_Allocator< Allocator >:
Inheritance graph
[legend]
Collaboration diagram for bc::allocators::Logging_Allocator< Allocator >:
Collaboration graph
[legend]

Classes

struct  rebind
 

Public Types

using parent_type = Allocator_Forwarder< Allocator >
 
using value_type = typename parent_type::value_type
 
using pointer = typename parent_type::pointer
 
- Public Types inherited from bc::allocators::Allocator_Forwarder< Allocator >
using traits = allocator_traits< Allocator >
 
using value_type = typename traits::value_type
 
using system_tag = typename traits::system_tag
 
using pointer = typename traits::pointer
 
using const_pointer = typename traits::const_pointer
 
using void_pointer = typename traits::void_pointer
 
using reference = value_type &
 
using const_reference = const value_type &
 
using difference_type = typename traits::difference_type
 
using size_type = typename traits::size_type
 
using is_always_equal = typename traits::is_always_equal
 
using propagate_on_container_copy_assignment = typename traits::propagate_on_container_copy_assignment
 
using propagate_on_container_move_assignment = typename traits::propagate_on_container_move_assignment
 
using propagate_on_container_swap = typename traits::propagate_on_container_swap
 

Public Member Functions

template<class U >
 Logging_Allocator (const Logging_Allocator< U > &other)
 
 Logging_Allocator ()=default
 
 Logging_Allocator (const Logging_Allocator &)=default
 
 Logging_Allocator (Logging_Allocator &&)=default
 
Logging_Allocatoroperator= (const Logging_Allocator &)=default
 
Logging_Allocatoroperator= (Logging_Allocator &&)=default
 
pointer allocate (int size)
 
void deallocate (pointer ptr, bc::size_t size)
 
- Public Member Functions inherited from bc::allocators::Allocator_Forwarder< Allocator >
template<class... Args>
 Allocator_Forwarder (Args &&... args)
 
template<class AltAllocator >
 Allocator_Forwarder (const Allocator_Forwarder< AltAllocator > &other)
 
auto select_on_container_copy_construction ()
 
pointer allocate (size_type size)
 
void deallocate (pointer ptr, size_type size)
 
template<class... Args>
void construct (pointer ptr, Args &&... args)
 
void destroy (pointer ptr)
 
template<class AltAllocator >
bool operator== (const AltAllocator &other)
 
template<class AltAllocator >
bool operator!= (const AltAllocator &other)
 

Public Attributes

std::shared_ptr< detail::log_infoinfo
 

Member Typedef Documentation

◆ parent_type

◆ pointer

template<class Allocator>
using bc::allocators::Logging_Allocator< Allocator >::pointer = typename parent_type::pointer

◆ value_type

template<class Allocator>
using bc::allocators::Logging_Allocator< Allocator >::value_type = typename parent_type::value_type

Constructor & Destructor Documentation

◆ Logging_Allocator() [1/4]

template<class Allocator>
template<class U >
bc::allocators::Logging_Allocator< Allocator >::Logging_Allocator ( const Logging_Allocator< U > &  other)
inline

◆ Logging_Allocator() [2/4]

template<class Allocator>
bc::allocators::Logging_Allocator< Allocator >::Logging_Allocator ( )
default

◆ Logging_Allocator() [3/4]

template<class Allocator>
bc::allocators::Logging_Allocator< Allocator >::Logging_Allocator ( const Logging_Allocator< Allocator > &  )
default

◆ Logging_Allocator() [4/4]

Member Function Documentation

◆ allocate()

template<class Allocator>
pointer bc::allocators::Logging_Allocator< Allocator >::allocate ( int  size)
inline

◆ deallocate()

template<class Allocator>
void bc::allocators::Logging_Allocator< Allocator >::deallocate ( pointer  ptr,
bc::size_t  size 
)
inline

◆ operator=() [1/2]

template<class Allocator>
Logging_Allocator& bc::allocators::Logging_Allocator< Allocator >::operator= ( const Logging_Allocator< Allocator > &  )
default

◆ operator=() [2/2]

template<class Allocator>
Logging_Allocator& bc::allocators::Logging_Allocator< Allocator >::operator= ( Logging_Allocator< Allocator > &&  )
default

Member Data Documentation

◆ info

template<class Allocator>
std::shared_ptr<detail::log_info> bc::allocators::Logging_Allocator< Allocator >::info
Initial value:
=
std::shared_ptr<detail::log_info>(new detail::log_info {0, 0})

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