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

#include <memory.h>

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

Public Member Functions

 MemoryArenaImpl (size_t block_size=kAllocSize)
 
void * Allocate (size_t size)
 
size_t Size () const override
 
- Public Member Functions inherited from fst::MemoryArenaBase
virtual ~MemoryArenaBase ()=default
 

Static Public Attributes

static constexpr size_t kObjectSize = object_size
 

Detailed Description

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

Definition at line 55 of file memory.h.

Constructor & Destructor Documentation

template<size_t object_size>
fst::internal::MemoryArenaImpl< object_size >::MemoryArenaImpl ( size_t  block_size = kAllocSize)
inlineexplicit

Definition at line 59 of file memory.h.

Member Function Documentation

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

Definition at line 65 of file memory.h.

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

Implements fst::MemoryArenaBase.

Definition at line 85 of file memory.h.

Member Data Documentation

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

Definition at line 57 of file memory.h.


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