xref: /aosp_15_r20/external/marisa-trie/include/marisa/iostream.h (revision ab8db090fce404b23716c4c9194221ee27efe31c)
1*ab8db090SAndroid Build Coastguard Worker #ifndef MARISA_IOSTREAM_H_
2*ab8db090SAndroid Build Coastguard Worker #define MARISA_IOSTREAM_H_
3*ab8db090SAndroid Build Coastguard Worker 
4*ab8db090SAndroid Build Coastguard Worker #include <iosfwd>
5*ab8db090SAndroid Build Coastguard Worker 
6*ab8db090SAndroid Build Coastguard Worker namespace marisa {
7*ab8db090SAndroid Build Coastguard Worker 
8*ab8db090SAndroid Build Coastguard Worker class Trie;
9*ab8db090SAndroid Build Coastguard Worker 
10*ab8db090SAndroid Build Coastguard Worker std::istream &read(std::istream &stream, Trie *trie);
11*ab8db090SAndroid Build Coastguard Worker std::ostream &write(std::ostream &stream, const Trie &trie);
12*ab8db090SAndroid Build Coastguard Worker 
13*ab8db090SAndroid Build Coastguard Worker std::istream &operator>>(std::istream &stream, Trie &trie);
14*ab8db090SAndroid Build Coastguard Worker std::ostream &operator<<(std::ostream &stream, const Trie &trie);
15*ab8db090SAndroid Build Coastguard Worker 
16*ab8db090SAndroid Build Coastguard Worker }  // namespace marisa
17*ab8db090SAndroid Build Coastguard Worker 
18*ab8db090SAndroid Build Coastguard Worker #endif  // MARISA_IOSTREAM_H_
19