Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ubyte.srlz.cc
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file utility/serialization/ubyte.srlz.cc
11 /// @brief Serlialization routines for ubytes
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 #ifdef SERIALIZATION
15 
16 // Unit headers
18 
19 // Package headers
21 
22 // Cereal headers
23 #include <cereal/types/string.hpp>
24 
25 namespace ObjexxFCL {
26 
27 template < class Archive >
28 void save( Archive & arc, ubyte const & ub )
29 {
30  unsigned short b( ub );
31  arc( b );
32  // The b_ data member cannot be directly accessed
33  // EXEMPT b_
34 }
35 
36 template < class Archive >
37 void load( Archive & arc, ubyte & ir )
38 {
39  unsigned short b;
40  arc( b );
41  ir = b;
42  // The b_ data member cannot be directly accessed
43  // EXEMPT b_
44 }
45 
46 EXTERNAL_SAVE_AND_LOAD_SERIALIZABLE( ubyte );
47 
48 }
49 
50 
51 #endif
Commons serlialization routines.
Serlialization routines for ObjexxFCL::ubytes; these functions have to live in namespace ObjexxFCL...
def load
Definition: IO.py:5