FST  openfst-1.7.5
OpenFst Library
Classes | Public Types | Public Member Functions | 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 Types

enum  { kObjectSize = object_size }
 

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 ()
 

Detailed Description

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

Definition at line 97 of file memory.h.

Member Enumeration Documentation

template<size_t object_size>
anonymous enum
Enumerator
kObjectSize 

Definition at line 99 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 106 of file memory.h.

Member Function Documentation

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

Definition at line 109 of file memory.h.

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

Definition at line 121 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 129 of file memory.h.


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