object.hh (13127:d3318222cf09) object.hh (13179:7445c43d036b)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 76 unchanged lines hidden (view full) ---

85 return sc_obj->_gem5_object;
86 }
87
88 sc_core::sc_object *sc_obj() { return _sc_obj; }
89
90 EventsIt addChildEvent(sc_core::sc_event *e);
91 void delChildEvent(sc_core::sc_event *e);
92
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 76 unchanged lines hidden (view full) ---

85 return sc_obj->_gem5_object;
86 }
87
88 sc_core::sc_object *sc_obj() { return _sc_obj; }
89
90 EventsIt addChildEvent(sc_core::sc_event *e);
91 void delChildEvent(sc_core::sc_event *e);
92
93 void pickUniqueName(std::string &name);
93 std::string pickUniqueName(std::string name);
94
95 private:
96 sc_core::sc_object *_sc_obj;
97
98 std::string _basename;
99 std::string _name;
100
101 Objects children;
102 Events events;
103 sc_core::sc_object *parent;
104
105 sc_core::sc_attr_cltn cltn;
106};
107
94
95 private:
96 sc_core::sc_object *_sc_obj;
97
98 std::string _basename;
99 std::string _name;
100
101 Objects children;
102 Events events;
103 sc_core::sc_object *parent;
104
105 sc_core::sc_attr_cltn cltn;
106};
107
108void pickUniqueName(::sc_core::sc_object *parent, std::string &name);
108std::string pickUniqueName(::sc_core::sc_object *parent, std::string name);
109
110extern Objects topLevelObjects;
111extern Objects allObjects;
112
113sc_core::sc_object *findObject(
114 const char *name, const Objects &objects=topLevelObjects);
115
116} // namespace sc_gem5
117
118#endif //__SYSTEMC_CORE_OBJECT_HH__
109
110extern Objects topLevelObjects;
111extern Objects allObjects;
112
113sc_core::sc_object *findObject(
114 const char *name, const Objects &objects=topLevelObjects);
115
116} // namespace sc_gem5
117
118#endif //__SYSTEMC_CORE_OBJECT_HH__