Deleted Added
sdiff udiff text old ( 12988:df70e73818e4 ) new ( 13127:d3318222cf09 )
full compact
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 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
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__