highlighter application
1.1
HCE project utils : highlighter
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
POSMaskBitset.hpp
Go to the documentation of this file.
1
8
#ifndef _POS_MASK_BITSET_HPP
9
#define _POS_MASK_BITSET_HPP
10
11
12
#include "
BitsetBase.hpp
"
13
14
15
namespace
HCE
16
{
17
18
22
enum
POS_enum
23
{
24
POS_NOUN
= 0,
25
POS_ADJ_FULL
= 1,
26
POS_VERB
= 2,
27
POS_VBE
= 3,
28
POS_MOD
= 4,
29
POS_NUMERAL
= 5,
30
POS_CONJ
= 6,
31
POS_INTERJ
= 7,
32
POS_PREP
= 8,
33
POS_PARTICLE
= 9,
34
POS_ART
= 10,
35
POS_ADV
= 11,
36
POS_PN
= 12,
37
POS_ORDNUM
= 13,
38
POS_PRON
= 14,
39
POS_POSS
= 15,
40
//POS_PN_ADJ = 16
42
};
43
44
45
template
<
size_t
N>
46
class
POSMaskBitset
:
public
BitsetBase
<N>
47
{
48
public
:
49
POSMaskBitset<N>
() {}
50
~
POSMaskBitset<N>
() {}
51
public
:
52
inline
const
bool
isNounBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_NOUN
); }
53
inline
const
bool
isVerbBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_VERB
); }
54
inline
const
bool
isParticleBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_PARTICLE
); }
55
inline
const
bool
isInterjectionBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_INTERJ
); }
56
inline
const
bool
isPronounBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_PRON
); }
57
inline
const
bool
isPropositionBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_PREP
); }
58
inline
const
bool
isAdverbBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_ADV
); }
59
inline
const
bool
isConjunctionBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_CONJ
); }
60
inline
const
bool
isAdjectivBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_ADJ_FULL
); }
61
inline
const
bool
isNumeralBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_NUMERAL
); }
62
inline
const
bool
isVbeBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_VBE
); }
63
inline
const
bool
isModBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_MOD
); }
64
inline
const
bool
isArtBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_ART
); }
65
inline
const
bool
isPnBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_PN
); }
66
inline
const
bool
isOrdnumBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_ORDNUM
); }
67
inline
const
bool
isPossBitSet
()
const
{
return
BitsetBase<N>::_bitset
.test(
POS_POSS
); }
68
};
69
70
71
}
72
73
74
#endif
sources
utils
refine
src
POSMaskBitset.hpp
Generated on Mon Jan 13 2014 16:16:17 for highlighter application by
1.8.1.2