FST  openfst-1.8.3
OpenFst Library
Classes | Public Member Functions | Static Public Attributes | List of all members
fst::internal::MemoryPoolImpl< object_size > Class Template Reference

#include <memory.h>

Inheritance diagram for fst::internal::MemoryPoolImpl< object_size >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::MemoryPoolImpl< object_size >:
Collaboration graph
[legend]

Classes

struct  Link
 

Public Member Functions

 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
 

Static Public Attributes

static constexpr size_t kObjectSize = object_size
 

Detailed Description

template<size_t object_size>
class fst::internal::MemoryPoolImpl< object_size >

Definition at line 113 of file memory.h.

Constructor & Destructor Documentation

template<size_t object_size>
fst::internal::MemoryPoolImpl< object_size >::MemoryPoolImpl ( size_t  pool_size)
inlineexplicit

Definition at line 122 of file memory.h.

Member Function Documentation

template<size_t object_size>
void* fst::internal::MemoryPoolImpl< object_size >::Allocate ( )
inline

Definition at line 125 of file memory.h.

template<size_t object_size>
void fst::internal::MemoryPoolImpl< object_size >::Free ( void *  ptr)
inline

Definition at line 137 of file memory.h.

template<size_t object_size>
size_t fst::internal::MemoryPoolImpl< object_size >::Size ( ) const
inlineoverridevirtual

Implements fst::MemoryPoolBase.

Definition at line 145 of file memory.h.

Member Data Documentation

template<size_t object_size>
constexpr size_t fst::internal::MemoryPoolImpl< object_size >::kObjectSize = object_size
static

Definition at line 115 of file memory.h.


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