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

#include <common/LinguisticCode/StdBitset.h>

Public Member Functions

 LinguisticCode () noexcept
bool toBool () const noexcept
bool operator! () const noexcept
LinguisticCode operator<< (std::size_t pos) const noexcept
LinguisticCode operator<<= (std::size_t pos) noexcept
LinguisticCode operator>> (std::size_t pos) const noexcept
LinguisticCode operator>>= (std::size_t pos) noexcept
std::string toHexString () const
std::string toOctString () const
std::string toBinString () const
LIMA_COMMON_EXPORT std::string toDecString () const
std::string toString () const
unsigned char lsb ()
LinguisticCode operator~ () const noexcept
LinguisticCode operator&= (const LinguisticCode &other) noexcept
LinguisticCode operator|= (const LinguisticCode &other) noexcept
LinguisticCode operator^= (const LinguisticCode &other) noexcept
bool operator== (const LinguisticCode &other) const noexcept
bool operator!= (const LinguisticCode &other) const noexcept

Static Public Member Functions

static LinguisticCode fromUInt (uint64_t v)
static LinguisticCode fromOctString (const std::string &str)
static LIMA_COMMON_EXPORT LinguisticCode fromDecString (const std::string &str)
static LinguisticCode fromString (const std::string &str)
static std::size_t size () noexcept
static std::ostream & encodeToBinary (std::ostream &os, const LinguisticCode &value)
static LinguisticCode decodeFromBinary (std::istream &is)
static LinguisticCode decodeFromBinary (unsigned char *&p)

Static Public Attributes

static LIMA_COMMON_EXPORT const LinguisticCode ZERO

Friends

LinguisticCode operator& (const LinguisticCode &lhs, const LinguisticCode &rhs)
LinguisticCode operator| (const LinguisticCode &lhs, const LinguisticCode &rhs)
LinguisticCode operator^ (const LinguisticCode &lhs, const LinguisticCode &rhs)
bool operator< (const LinguisticCode &lhs, const LinguisticCode &rhs)
bool operator> (const LinguisticCode &lhs, const LinguisticCode &rhs)

Detailed Description

Definition at line 26 of file StdBitset.h.

Constructor & Destructor Documentation

◆ LinguisticCode()

Lima::LinguisticCode::LinguisticCode ( )
inlinenoexcept

Definition at line 64 of file StdBitset.h.

Member Function Documentation

◆ decodeFromBinary() [1/2]

LinguisticCode Lima::LinguisticCode::decodeFromBinary ( std::istream & is)
inlinestatic

Definition at line 201 of file StdBitset.h.

◆ decodeFromBinary() [2/2]

LinguisticCode Lima::LinguisticCode::decodeFromBinary ( unsigned char *& p)
inlinestatic

Definition at line 216 of file StdBitset.h.

◆ encodeToBinary()

std::ostream & Lima::LinguisticCode::encodeToBinary ( std::ostream & os,
const LinguisticCode & value )
inlinestatic

Definition at line 177 of file StdBitset.h.

◆ fromDecString()

LIMA_COMMON_EXPORT LinguisticCode Lima::LinguisticCode::fromDecString ( const std::string & str)
static

Definition at line 54 of file StdBitset.cpp.

◆ fromOctString()

LinguisticCode Lima::LinguisticCode::fromOctString ( const std::string & str)
inlinestatic

Definition at line 74 of file StdBitset.h.

◆ fromString()

LinguisticCode Lima::LinguisticCode::fromString ( const std::string & str)
inlinestatic

Definition at line 93 of file StdBitset.h.

◆ fromUInt()

LinguisticCode Lima::LinguisticCode::fromUInt ( uint64_t v)
inlinestatic

Definition at line 69 of file StdBitset.h.

◆ lsb()

unsigned char Lima::LinguisticCode::lsb ( )
inline

Definition at line 161 of file StdBitset.h.

◆ operator!()

bool Lima::LinguisticCode::operator! ( ) const
inlinenoexcept

Definition at line 108 of file StdBitset.h.

◆ operator!=()

bool Lima::LinguisticCode::operator!= ( const LinguisticCode & other) const
inlinenoexcept

Definition at line 261 of file StdBitset.h.

◆ operator&=()

LinguisticCode Lima::LinguisticCode::operator&= ( const LinguisticCode & other)
inlinenoexcept

Definition at line 238 of file StdBitset.h.

◆ operator<<()

LinguisticCode Lima::LinguisticCode::operator<< ( std::size_t pos) const
inlinenoexcept

Definition at line 113 of file StdBitset.h.

◆ operator<<=()

LinguisticCode Lima::LinguisticCode::operator<<= ( std::size_t pos)
inlinenoexcept

Definition at line 120 of file StdBitset.h.

◆ operator==()

bool Lima::LinguisticCode::operator== ( const LinguisticCode & other) const
inlinenoexcept

Definition at line 256 of file StdBitset.h.

◆ operator>>()

LinguisticCode Lima::LinguisticCode::operator>> ( std::size_t pos) const
inlinenoexcept

Definition at line 126 of file StdBitset.h.

◆ operator>>=()

LinguisticCode Lima::LinguisticCode::operator>>= ( std::size_t pos)
inlinenoexcept

Definition at line 133 of file StdBitset.h.

◆ operator^=()

LinguisticCode Lima::LinguisticCode::operator^= ( const LinguisticCode & other)
inlinenoexcept

Definition at line 250 of file StdBitset.h.

◆ operator|=()

LinguisticCode Lima::LinguisticCode::operator|= ( const LinguisticCode & other)
inlinenoexcept

Definition at line 244 of file StdBitset.h.

◆ operator~()

LinguisticCode Lima::LinguisticCode::operator~ ( ) const
inlinenoexcept

Definition at line 231 of file StdBitset.h.

◆ size()

std::size_t Lima::LinguisticCode::size ( )
inlinestaticnoexcept

Definition at line 98 of file StdBitset.h.

◆ toBinString()

std::string Lima::LinguisticCode::toBinString ( ) const
inline

Definition at line 149 of file StdBitset.h.

◆ toBool()

bool Lima::LinguisticCode::toBool ( ) const
inlinenoexcept

Definition at line 103 of file StdBitset.h.

◆ toDecString()

LIMA_COMMON_EXPORT std::string Lima::LinguisticCode::toDecString ( ) const

Definition at line 15 of file StdBitset.cpp.

◆ toHexString()

std::string Lima::LinguisticCode::toHexString ( ) const
inline

Definition at line 139 of file StdBitset.h.

◆ toOctString()

std::string Lima::LinguisticCode::toOctString ( ) const
inline

Definition at line 144 of file StdBitset.h.

◆ toString()

std::string Lima::LinguisticCode::toString ( ) const
inline

Definition at line 156 of file StdBitset.h.

◆ operator&

LinguisticCode operator& ( const LinguisticCode & lhs,
const LinguisticCode & rhs )
friend

Definition at line 275 of file StdBitset.h.

◆ operator<

bool operator< ( const LinguisticCode & lhs,
const LinguisticCode & rhs )
friend

Definition at line 293 of file StdBitset.h.

◆ operator>

bool operator> ( const LinguisticCode & lhs,
const LinguisticCode & rhs )
friend

Definition at line 298 of file StdBitset.h.

◆ operator^

LinguisticCode operator^ ( const LinguisticCode & lhs,
const LinguisticCode & rhs )
friend

Definition at line 287 of file StdBitset.h.

◆ operator|

LinguisticCode operator| ( const LinguisticCode & lhs,
const LinguisticCode & rhs )
friend

Definition at line 281 of file StdBitset.h.

Member Data Documentation

◆ ZERO

LIMA_COMMON_EXPORT const LinguisticCode Lima::LinguisticCode::ZERO
static

Definition at line 272 of file StdBitset.h.


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