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

Function serialize

dlib/graph_utils/sample_pair.h:136–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134// ----------------------------------------------------------------------------------------
135
136 inline void serialize (
137 const sample_pair& item,
138 std::ostream& out
139 )
140 {
141 try
142 {
143 serialize(item.index1(),out);
144 serialize(item.index2(),out);
145 serialize(item.distance(),out);
146 }
147 catch (serialization_error& e)
148 {
149 throw serialization_error(e.info + "\n while serializing object of type sample_pair");
150 }
151 }
152
153 inline void deserialize (
154 sample_pair& item,

Callers

nothing calls this directly

Calls 2

serialization_errorClass · 0.85
distanceMethod · 0.45

Tested by

no test coverage detected