LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::Common::PropertyCode::PropertyCodeManagerPrivate Class Reference

Public Member Functions

 PropertyCodeManagerPrivate ()=default
 
 ~PropertyCodeManagerPrivate ()=default
 
 PropertyCodeManagerPrivate (const PropertyCodeManagerPrivate &)=delete
 
PropertyCodeManagerPrivate & operator= (const PropertyCodeManagerPrivate &)=delete
 
uint8_t computeNbBitsNeeded (uint64_t nbvalues) const
 Compute the number of bit needed to encode nbvalues.
 
LinguisticCode computeMask (uint8_t startBit, uint8_t nbBits) const
 The mask of a property is an integer that show which bits are used.
 

Public Attributes

std::map< std::string, PropertyManager > m_propertyManagers
 

Friends

class PropertyCodeManager
 

Detailed Description

Definition at line 50 of file PropertyCodeManager.cpp.

Constructor & Destructor Documentation

◆ PropertyCodeManagerPrivate() [1/2]

Lima::Common::PropertyCode::PropertyCodeManagerPrivate::PropertyCodeManagerPrivate ( )
default

◆ ~PropertyCodeManagerPrivate()

Lima::Common::PropertyCode::PropertyCodeManagerPrivate::~PropertyCodeManagerPrivate ( )
default

◆ PropertyCodeManagerPrivate() [2/2]

Lima::Common::PropertyCode::PropertyCodeManagerPrivate::PropertyCodeManagerPrivate ( const PropertyCodeManagerPrivate &  )
delete

Member Function Documentation

◆ computeMask()

LinguisticCode Lima::Common::PropertyCode::PropertyCodeManagerPrivate::computeMask ( uint8_t  startBit,
uint8_t  nbBits 
) const

The mask of a property is an integer that show which bits are used.

It has all bits to 0, excepts the nbbits from start bits, which are used to code the property.

Compute a mask

Parameters
startBitfirst bit used
nbBitsnb bits to use
Returns
LinguisticCode

Definition at line 338 of file PropertyCodeManager.cpp.

◆ computeNbBitsNeeded()

uint8_t Lima::Common::PropertyCode::PropertyCodeManagerPrivate::computeNbBitsNeeded ( uint64_t  nbvalues) const

Compute the number of bit needed to encode nbvalues.

Parameters
nbvaluesnbvalues to encode
Returns
uint8_t

Definition at line 320 of file PropertyCodeManager.cpp.

◆ operator=()

PropertyCodeManagerPrivate & Lima::Common::PropertyCode::PropertyCodeManagerPrivate::operator= ( const PropertyCodeManagerPrivate &  )
delete

Friends And Related Symbol Documentation

◆ PropertyCodeManager

friend class PropertyCodeManager
friend

Definition at line 52 of file PropertyCodeManager.cpp.

Member Data Documentation

◆ m_propertyManagers

std::map<std::string, PropertyManager> Lima::Common::PropertyCode::PropertyCodeManagerPrivate::m_propertyManagers

Definition at line 59 of file PropertyCodeManager.cpp.


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