|
|
| 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 |
| |
|
| 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 |
| |
|
THMapAllocator & | operator= (const THMapAllocator &)=delete |
| |
|
| THMapAllocator (THMapAllocator &&)=delete |
| |
|
THMapAllocator & | operator= (THMapAllocator &&)=delete |
| |
|
const char * | filename () const |
| |
|
int | fd () const |
| |
|
ptrdiff_t | size () const |
| |
|
|
static THRefcountedMapAllocator * | fromDataPtr (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 THMapAllocator * | fromDataPtr (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) |
| |
|
|
void | checkFlags () |
| |
|
void | initializeAlloc () |
| |
|
|
bool | closed_ = false |
| |
|
std::string | filename_ |
| |
|
int | flags_ = 0 |
| |
|
ptrdiff_t | size_ |
| |
|
int | fd_ = -1 |
| |
|
void * | base_ptr_ = nullptr |
| |
Definition at line 78 of file THAllocator.h.
The documentation for this class was generated from the following files: