18#define SERVE_USE_LENGTH_PREFIX_SERIALISER(TEMPLATE, T) \
19 TEMPLATE T ServeProto::Serialise< T >::read(const StoreDirConfig & store, ServeProto::ReadConn conn) \
21 return LengthPrefixedProtoHelper<ServeProto, T >::read(store, conn); \
23 TEMPLATE void ServeProto::Serialise< T >::write(const StoreDirConfig & store, ServeProto::WriteConn conn, const T & t) \
25 LengthPrefixedProtoHelper<ServeProto, T >::write(store, conn, t); \
28SERVE_USE_LENGTH_PREFIX_SERIALISER(template<typename T>, std::vector<T>)
29SERVE_USE_LENGTH_PREFIX_SERIALISER(template<typename T>, std::set<T>)
30SERVE_USE_LENGTH_PREFIX_SERIALISER(template<typename... Ts>, std::tuple<Ts...>)
32#define SERVE_USE_LENGTH_PREFIX_SERIALISER_COMMA ,
33SERVE_USE_LENGTH_PREFIX_SERIALISER(
34 template<typename K SERVE_USE_LENGTH_PREFIX_SERIALISER_COMMA typename V>,
35 std::map<K SERVE_USE_LENGTH_PREFIX_SERIALISER_COMMA V>)
ChunkedVector< std::string, 8192 > store
Definition lexer.l:1011
T t
Definition lexer.l:154
Definition common-protocol.hh:31
Definition common-protocol.hh:44
Definition common-protocol.hh:39
Definition serve-protocol.hh:48
Definition serve-protocol-impl.hh:42
Definition serve-protocol.hh:57
Definition store-dir-config.hh:22