serialize.cc (7491:e8ff1fb26dbc) | serialize.cc (7494:249f174e6f37) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 73 unchanged lines hidden (view full) --- 82// - floating-point types 83// - bool 84// - string 85// 86 87// Treat 8-bit ints (chars) as ints on output, not as chars 88template <> 89void | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 73 unchanged lines hidden (view full) --- 82// - floating-point types 83// - bool 84// - string 85// 86 87// Treat 8-bit ints (chars) as ints on output, not as chars 88template <> 89void |
90showParam(ostream &os, const char &value) 91{ 92 os << (int)value; 93} 94 95 96template <> 97void |
|
90showParam(ostream &os, const signed char &value) 91{ 92 os << (int)value; 93} 94 95 96template <> 97void --- 247 unchanged lines hidden (view full) --- 345 const string &name, type *param, unsigned size); \ 346template void \ 347arrayParamOut(ostream &os, const string &name, \ 348 const vector<type> ¶m); \ 349template void \ 350arrayParamIn(Checkpoint *cp, const string §ion, \ 351 const string &name, vector<type> ¶m); 352 | 98showParam(ostream &os, const signed char &value) 99{ 100 os << (int)value; 101} 102 103 104template <> 105void --- 247 unchanged lines hidden (view full) --- 353 const string &name, type *param, unsigned size); \ 354template void \ 355arrayParamOut(ostream &os, const string &name, \ 356 const vector<type> ¶m); \ 357template void \ 358arrayParamIn(Checkpoint *cp, const string §ion, \ 359 const string &name, vector<type> ¶m); 360 |
361INSTANTIATE_PARAM_TEMPLATES(char) |
|
353INSTANTIATE_PARAM_TEMPLATES(signed char) 354INSTANTIATE_PARAM_TEMPLATES(unsigned char) 355INSTANTIATE_PARAM_TEMPLATES(signed short) 356INSTANTIATE_PARAM_TEMPLATES(unsigned short) 357INSTANTIATE_PARAM_TEMPLATES(signed int) 358INSTANTIATE_PARAM_TEMPLATES(unsigned int) 359INSTANTIATE_PARAM_TEMPLATES(signed long) 360INSTANTIATE_PARAM_TEMPLATES(unsigned long) --- 229 unchanged lines hidden --- | 362INSTANTIATE_PARAM_TEMPLATES(signed char) 363INSTANTIATE_PARAM_TEMPLATES(unsigned char) 364INSTANTIATE_PARAM_TEMPLATES(signed short) 365INSTANTIATE_PARAM_TEMPLATES(unsigned short) 366INSTANTIATE_PARAM_TEMPLATES(signed int) 367INSTANTIATE_PARAM_TEMPLATES(unsigned int) 368INSTANTIATE_PARAM_TEMPLATES(signed long) 369INSTANTIATE_PARAM_TEMPLATES(unsigned long) --- 229 unchanged lines hidden --- |