hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
RWords.hpp
Go to the documentation of this file.
1 #ifndef RWORDS_HPP
2 #define RWORDS_HPP
3 
4 
8 #include <vector>
9 
13 #include "Defs.hpp"
14 #include "POSMaskBitset.hpp"
16 
17 
18 namespace HCE
19 {
20  class RWords
21  {
22  private:
23  std::string _normWord;
24  unsigned long long _crc64;
25  //POSMaskBitset<POS_NUM> _posMask;
26  unsigned short _posMask;
27  MorphChangeGradBitset<MCG_NUM> _morphChangeGrad;
28  public:
29  RWords() : _normWord(), _crc64(), _posMask(), _morphChangeGrad() {}
30  /*virtual*/ ~RWords() throw() {}
31  public:
32  void setNormWord ( const std::string &normWord) { _normWord = normWord; }
33  void setCrc64 ( const unsigned long long & crc64) { _crc64 = crc64; }
34  void setPosMask ( const unsigned short & posMask) { _posMask = posMask; }
35  //void setPosMask ( const unsigned short & posMask) { _posMask.setMask( posMask ); }
36  void setMorphChangeGradMask ( const unsigned short & morphChangeGrad ) { _morphChangeGrad.setMask( morphChangeGrad ); }
37  public:
38  const std::string & getNormWord () const { return _normWord; }
39  const unsigned long long getCrc64 () const { return _crc64; }
40  const unsigned short getPosMask() const { return _posMask; }
41  //const unsigned short getPosMask() const { return _posMask.getMask(); }
42  const unsigned short getMorphChangeGradMask () const { return _morphChangeGrad.getMask(); }
43  };
44 }
45 
46 #endif