65 void readHeader(std::istream& file);
66 void readBoWText(std::istream& file,
68 BoWBlocType readBoWDocumentBlock(std::istream& file,
72 bool useIndexIterator);
73 boost::shared_ptr< Lima::Common::BagOfWords::AbstractBoWElement > readBoWToken(std::istream& file);
74 void readSimpleToken(std::istream& file,
75 boost::shared_ptr< BoWToken > token);
76 void readPredicate(std::istream& file,
77 boost::shared_ptr< BoWPredicate > bowPred);
80 std::string getFileTypeString()
const;
92 BoWBinaryWriter(std::shared_ptr<const ShiftFrom> shiftFrom = std::shared_ptr<const ShiftFrom>());
95 void writeHeader(std::ostream& file,
97 void writeBoWText(std::ostream& file,
99 void writeBoWDocument(std::ostream& file,
101 void writeBoWToken(std::ostream& file,
102 const boost::shared_ptr< AbstractBoWElement > bowToken)
const;
103 void writeSimpleToken(std::ostream& file,
104 const boost::shared_ptr< BoWToken > token)
const;
105 void writePredicate(std::ostream& file,
106 const boost::shared_ptr< BoWPredicate > token)
const;
This class represents a list of elements, that are pointers on polymmorphic tokens that can be simple...