Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Static Public Member Functions | Protected Member Functions
THRefcountedMapAllocator Class Reference
Inheritance diagram for THRefcountedMapAllocator:
THRefcountedMapAllocatorArgCheck THMapAllocator

Public Member Functions

 THRefcountedMapAllocator (const char *filename, int flags, size_t size)
 
 THRefcountedMapAllocator (WithFd, const char *filename, int fd, int flags, size_t size)
 
void * data () const override
 
void incref ()
 
int decref ()
 
void close () override
 
- Public Member Functions inherited from THMapAllocator
 THMapAllocator (const char *filename, int flags, size_t size)
 
 THMapAllocator (WithFd, const char *filename, int fd, int flags, size_t size)
 
 THMapAllocator (const THMapAllocator &)=delete
 
THMapAllocatoroperator= (const THMapAllocator &)=delete
 
 THMapAllocator (THMapAllocator &&)=delete
 
THMapAllocatoroperator= (THMapAllocator &&)=delete
 
const char * filename () const
 
int fd () const
 
ptrdiff_t size () const
 

Static Public Member Functions

static THRefcountedMapAllocatorfromDataPtr (const at::DataPtr &)
 
static at::DataPtr makeDataPtr (const char *filename, int flags, size_t size, size_t *actual_size_out)
 
static at::DataPtr makeDataPtr (WithFd, const char *filename, int fd, int flags, size_t size, size_t *actual_size_out)
 
- Static Public Member Functions inherited from THMapAllocator
static THMapAllocatorfromDataPtr (const at::DataPtr &)
 
static at::DataPtr makeDataPtr (const char *filename, int flags, size_t size, size_t *actual_size_out)
 
static at::DataPtr makeDataPtr (WithFd, const char *filename, int fd, int flags, size_t size, size_t *actual_size_out)
 

Protected Member Functions

void checkFlags ()
 
void initializeAlloc ()
 

Additional Inherited Members

- Protected Attributes inherited from THMapAllocator
bool closed_ = false
 
std::string filename_
 
int flags_ = 0
 
ptrdiff_t size_
 
int fd_ = -1
 
void * base_ptr_ = nullptr
 

Detailed Description

Definition at line 78 of file THAllocator.h.


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