sim_object.hh (5491:c2509c70de08) sim_object.hh (5530:bbfff6d0c42c)
1/*
2 * Copyright (c) 2001-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 const SimObjectParams *_params;
83
84 public:
85 typedef SimObjectParams Params;
86 const Params *params() const { return _params; }
87 SimObject(const Params *_params);
88 virtual ~SimObject() {}
89
1/*
2 * Copyright (c) 2001-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 const SimObjectParams *_params;
83
84 public:
85 typedef SimObjectParams Params;
86 const Params *params() const { return _params; }
87 SimObject(const Params *_params);
88 virtual ~SimObject() {}
89
90 protected:
91 // static: support for old-style constructors (call manually)
92 static Params *makeParams(const std::string &name);
93
94 public:
95
96 virtual const std::string name() const { return params()->name; }
97
98 // initialization pass of all objects.
99 // Gets invoked after construction, before unserialize.
100 virtual void init();
101 static void initAll();

--- 45 unchanged lines hidden ---
90 public:
91
92 virtual const std::string name() const { return params()->name; }
93
94 // initialization pass of all objects.
95 // Gets invoked after construction, before unserialize.
96 virtual void init();
97 static void initAll();

--- 45 unchanged lines hidden ---