LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
deeplima::token_buffer_t< T > Struct Template Reference

#include <deeplima/token_type.h>

Inheritance diagram for deeplima::token_buffer_t< T >:

Public Types

typedef std::vector< T > Parent
 
typedef T token_t
 

Public Member Functions

 token_buffer_t ()
 
 token_buffer_t (size_t size)
 
 token_buffer_t (size_t size, const T &val)
 
bool locked () const
 
void lock ()
 
void unlock ()
 

Protected Attributes

uint32_t m_lock_count
 

Detailed Description

template<class T = impl::token_t>
struct deeplima::token_buffer_t< T >

Definition at line 57 of file token_type.h.

Member Typedef Documentation

◆ Parent

template<class T = impl::token_t>
typedef std::vector<T> deeplima::token_buffer_t< T >::Parent

Definition at line 63 of file token_type.h.

◆ token_t

template<class T = impl::token_t>
typedef T deeplima::token_buffer_t< T >::token_t

Definition at line 64 of file token_type.h.

Constructor & Destructor Documentation

◆ token_buffer_t() [1/3]

template<class T = impl::token_t>
deeplima::token_buffer_t< T >::token_buffer_t ( )
inline

Definition at line 66 of file token_type.h.

◆ token_buffer_t() [2/3]

template<class T = impl::token_t>
deeplima::token_buffer_t< T >::token_buffer_t ( size_t  size)
inline

Definition at line 69 of file token_type.h.

◆ token_buffer_t() [3/3]

template<class T = impl::token_t>
deeplima::token_buffer_t< T >::token_buffer_t ( size_t  size,
const T &  val 
)
inline

Definition at line 75 of file token_type.h.

Member Function Documentation

◆ lock()

template<class T = impl::token_t>
void deeplima::token_buffer_t< T >::lock ( )
inline

Definition at line 87 of file token_type.h.

◆ locked()

template<class T = impl::token_t>
bool deeplima::token_buffer_t< T >::locked ( ) const
inline

Definition at line 82 of file token_type.h.

◆ unlock()

template<class T = impl::token_t>
void deeplima::token_buffer_t< T >::unlock ( )
inline

Definition at line 92 of file token_type.h.

Member Data Documentation

◆ m_lock_count

template<class T = impl::token_t>
uint32_t deeplima::token_buffer_t< T >::m_lock_count
protected

Definition at line 60 of file token_type.h.


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