/usr/include/dawgdic/ranked-completer-node.h is in libdawgdic-dev 0.4.5-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #ifndef DAWGDIC_RANKED_COMPLETER_NODE_H
#define DAWGDIC_RANKED_COMPLETER_NODE_H
#include "base-types.h"
namespace dawgdic {
class RankedCompleterNode {
public:
RankedCompleterNode()
: dic_index_(0), prev_node_index_(0),
label_('\0'), is_queued_(false), has_terminal_(false) {}
void set_dic_index(BaseType dic_index) {
dic_index_ = dic_index;
}
void set_prev_node_index(BaseType prev_node_index) {
prev_node_index_ = prev_node_index;
}
void set_label(UCharType label) {
label_ = label;
}
void set_is_queued() {
is_queued_ = true;
}
void set_has_terminal(bool has_terminal) {
has_terminal_ = has_terminal;
}
BaseType dic_index() const {
return dic_index_;
}
BaseType prev_node_index() const {
return prev_node_index_;
}
UCharType label() const {
return label_;
}
bool is_queued() const {
return is_queued_;
}
bool has_terminal() const {
return has_terminal_;
}
private:
BaseType dic_index_;
BaseType prev_node_index_;
UCharType label_;
bool is_queued_;
bool has_terminal_;
// Copyable.
};
} // namespace dawgdic
#endif // DAWGDIC_RANKED_COMPLETER_NODE_H
|