Deleted Added
sdiff udiff text old ( 12950:af1f0b5e8dfb ) new ( 12955:9c8bf6a5f2e3 )
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

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

39namespace sc_gem5
40{
41
42class Object;
43
44typedef std::vector<sc_core::sc_object *> Objects;
45typedef std::vector<sc_core::sc_event *> Events;
46typedef Objects::iterator ObjectsIt;
47
48class Object
49{
50 public:
51 Object(sc_core::sc_object *sc_obj);
52 Object(sc_core::sc_object *sc_obj, const char *);
53 Object(sc_core::sc_object *sc_obj, const Object &);
54 Object &operator = (const Object &);
55
56 virtual ~Object();
57
58 /*
59 * sc_object methods.
60 */
61 const char *name() const;

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

73 sc_core::sc_attr_base *remove_attribute(const std::string &);
74 void remove_all_attributes();
75 int num_attributes() const;
76 sc_core::sc_attr_cltn &attr_cltn();
77 const sc_core::sc_attr_cltn &attr_cltn() const;
78
79 sc_core::sc_simcontext *simcontext() const;
80
81 private:
82 sc_core::sc_object *sc_obj;
83
84 std::string _basename;
85 std::string _name;
86
87 Objects children;
88 Events events;
89 sc_core::sc_object *parent;
90 ObjectsIt parentIt;

--- 13 unchanged lines hidden ---