00001 #include "Value.hpp" 00002 00003 namespace aitools { 00004 namespace invertedindex { 00005 00006 int 00007 Value::tmp_int(0); 00008 00009 void 00010 Value::wrap(const ByteBuffer& buffer) 00011 { 00012 wrap(buffer.data(), buffer.size()); 00013 } 00014 00015 } // namespace invertedindex 00016 } // namespace aitools 00017 00018 namespace std { 00019 00020 istream& 00021 operator>>(istream& is, aitools::invertedindex::Value& value) 00022 { 00023 if (is) value.parse(is); 00024 return is; 00025 } 00026 00027 ostream& 00028 operator<<(ostream& os, const aitools::invertedindex::Value& value) 00029 { 00030 if (os) value.print(os); 00031 return os; 00032 } 00033 00034 } // namespace std