object.hh (12988:df70e73818e4) object.hh (13127:d3318222cf09)
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);
94
93 private:
94 sc_core::sc_object *_sc_obj;
95
96 std::string _basename;
97 std::string _name;
98
99 Objects children;
100 Events events;
101 sc_core::sc_object *parent;
102
103 sc_core::sc_attr_cltn cltn;
104};
105
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);
109
106extern Objects topLevelObjects;
107extern Objects allObjects;
108
109sc_core::sc_object *findObject(
110 const char *name, const Objects &objects=topLevelObjects);
111
112} // namespace sc_gem5
113
114#endif //__SYSTEMC_CORE_OBJECT_HH__
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__