serialize.cc (4857:dbae4a395f46) | serialize.cc (5543:3af77710f397) |
---|---|
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; --- 307 unchanged lines hidden (view full) --- 316 const std::string &name, SimObject * ¶m) 317{ 318 if (!cp->findObj(section, name, param)) { 319 fatal("Can't unserialize '%s:%s'\n", section, name); 320 } 321} 322 323 | 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; --- 307 unchanged lines hidden (view full) --- 316 const std::string &name, SimObject * ¶m) 317{ 318 if (!cp->findObj(section, name, param)) { 319 fatal("Can't unserialize '%s:%s'\n", section, name); 320 } 321} 322 323 |
324#define INSTANTIATE_PARAM_TEMPLATES(type) \ 325template void \ 326paramOut(ostream &os, const std::string &name, type const ¶m); \ 327template void \ 328paramIn(Checkpoint *cp, const std::string §ion, \ 329 const std::string &name, type & param); \ 330template void \ 331arrayParamOut(ostream &os, const std::string &name, \ 332 type const *param, int size); \ 333template void \ 334arrayParamIn(Checkpoint *cp, const std::string §ion, \ | 324#define INSTANTIATE_PARAM_TEMPLATES(type) \ 325template void \ 326paramOut(ostream &os, const std::string &name, type const ¶m); \ 327template void \ 328paramIn(Checkpoint *cp, const std::string §ion, \ 329 const std::string &name, type & param); \ 330template void \ 331arrayParamOut(ostream &os, const std::string &name, \ 332 type const *param, int size); \ 333template void \ 334arrayParamIn(Checkpoint *cp, const std::string §ion, \ |
335 const std::string &name, type *param, int size); \ | 335 const std::string &name, type *param, int size); \ |
336template void \ 337arrayParamOut(ostream &os, const std::string &name, \ 338 const std::vector<type> ¶m); \ 339template void \ 340arrayParamIn(Checkpoint *cp, const std::string §ion, \ | 336template void \ 337arrayParamOut(ostream &os, const std::string &name, \ 338 const std::vector<type> ¶m); \ 339template void \ 340arrayParamIn(Checkpoint *cp, const std::string §ion, \ |
341 const std::string &name, std::vector<type> ¶m); 342 343INSTANTIATE_PARAM_TEMPLATES(signed char) 344INSTANTIATE_PARAM_TEMPLATES(unsigned char) 345INSTANTIATE_PARAM_TEMPLATES(signed short) 346INSTANTIATE_PARAM_TEMPLATES(unsigned short) 347INSTANTIATE_PARAM_TEMPLATES(signed int) 348INSTANTIATE_PARAM_TEMPLATES(unsigned int) --- 219 unchanged lines hidden --- | 341 const std::string &name, std::vector<type> ¶m); 342 343INSTANTIATE_PARAM_TEMPLATES(signed char) 344INSTANTIATE_PARAM_TEMPLATES(unsigned char) 345INSTANTIATE_PARAM_TEMPLATES(signed short) 346INSTANTIATE_PARAM_TEMPLATES(unsigned short) 347INSTANTIATE_PARAM_TEMPLATES(signed int) 348INSTANTIATE_PARAM_TEMPLATES(unsigned int) --- 219 unchanged lines hidden --- |