MCPcopy Create free account
hub / github.com/davisking/dlib / serialize

Function serialize

dlib/serialize.h:322–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320 typename T
321 >
322 void serialize (
323 const ramdump_t<const T>& item_,
324 std::ostream& out
325 )
326 {
327 // Move the const from inside the ramdump_t template to outside so we can bind
328 // against a serialize() call that takes just a const ramdump_t<T>. Doing this
329 // saves you from needing to write multiple overloads of serialize() to handle
330 // these different const placement cases.
331 const auto temp = ramdump(const_cast<T&>(item_.item));
332 serialize(temp, out);
333 }
334
335// ----------------------------------------------------------------------------------------
336

Callers 4

serialize_floating_pointFunction · 0.70
proxy_serializeClass · 0.70
serialize_theseFunction · 0.70
serialize.hFile · 0.70

Calls 15

ramdumpFunction · 0.85
serialize_floating_pointFunction · 0.85
serialization_errorClass · 0.85
for_each_in_tupleFunction · 0.85
visitFunction · 0.85
proxy_serializeClass · 0.85
has_valueMethod · 0.80
host_to_littleMethod · 0.80
distanceFunction · 0.50
maxFunction · 0.50
indexMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected