sim_object.hh (10913:38dbdeea7f1f) sim_object.hh (11067:5379f099e488)
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

226 /**
227 * Find the SimObject with the given name and return a pointer to
228 * it. Primarily used for interactive debugging. Argument is
229 * char* rather than std::string to make it callable from gdb.
230 */
231 static SimObject *find(const char *name);
232};
233
1/*
2 * Copyright (c) 2015 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

226 /**
227 * Find the SimObject with the given name and return a pointer to
228 * it. Primarily used for interactive debugging. Argument is
229 * char* rather than std::string to make it callable from gdb.
230 */
231 static SimObject *find(const char *name);
232};
233
234/**
235 * Base class to wrap object resolving functionality.
236 *
237 * This can be provided to the serialization framework to allow it to
238 * map object names onto C++ objects.
239 */
240class SimObjectResolver
241{
242 public:
243 virtual ~SimObjectResolver() { }
244
245 // Find a SimObject given a full path name
246 virtual SimObject *resolveSimObject(const std::string &name) = 0;
247};
248
234#ifdef DEBUG
235void debugObjectBreak(const char *objs);
236#endif
237
238#endif // __SIM_OBJECT_HH__
249#ifdef DEBUG
250void debugObjectBreak(const char *objs);
251#endif
252
253#endif // __SIM_OBJECT_HH__