FST  openfst-1.8.3
OpenFst Library
Public Member Functions | List of all members
fst::MemoryPool< T > Class Template Reference

#include <memory.h>

Inheritance diagram for fst::MemoryPool< T >:
Inheritance graph
[legend]
Collaboration diagram for fst::MemoryPool< T >:
Collaboration graph
[legend]

Public Member Functions

 MemoryPool (size_t pool_size=kAllocSize)
 
- Public Member Functions inherited from fst::internal::MemoryPoolImpl< sizeof(T)>
 MemoryPoolImpl (size_t pool_size)
 
void * Allocate ()
 
void Free (void *ptr)
 
size_t Size () const override
 
- Public Member Functions inherited from fst::MemoryPoolBase
virtual ~MemoryPoolBase ()=default
 

Additional Inherited Members

- Static Public Attributes inherited from fst::internal::MemoryPoolImpl< sizeof(T)>
static constexpr size_t kObjectSize
 

Detailed Description

template<typename T>
class fst::MemoryPool< T >

Definition at line 164 of file memory.h.

Constructor & Destructor Documentation

template<typename T>
fst::MemoryPool< T >::MemoryPool ( size_t  pool_size = kAllocSize)
inlineexplicit

Definition at line 167 of file memory.h.


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