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

Function serialize

dlib/geometry/drectangle.h:221–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219// ----------------------------------------------------------------------------------------
220
221 inline void serialize (
222 const drectangle& item,
223 std::ostream& out
224 )
225 {
226 try
227 {
228 serialize(item.left(),out);
229 serialize(item.top(),out);
230 serialize(item.right(),out);
231 serialize(item.bottom(),out);
232 }
233 catch (serialization_error& e)
234 {
235 throw serialization_error(e.info + "\n while serializing an object of type drectangle");
236 }
237 }
238
239 inline void deserialize (
240 drectangle& item,

Callers

nothing calls this directly

Calls 5

serialization_errorClass · 0.85
leftMethod · 0.45
topMethod · 0.45
rightMethod · 0.45
bottomMethod · 0.45

Tested by

no test coverage detected