1d0
<
30,31c29,30
< #ifndef AbstractEntry_H
< #define AbstractEntry_H
---
> #ifndef __MEM_RUBY_SLICC_INTERFACE_ABSTRACTENTRY_HH__
> #define __MEM_RUBY_SLICC_INTERFACE_ABSTRACTENTRY_HH__
33d31
< #include "mem/ruby/common/Global.hh"
34a33
> #include "mem/ruby/common/Global.hh"
39,42c38,42
< class AbstractEntry {
< public:
< // Constructors
< AbstractEntry();
---
> class AbstractEntry
> {
> public:
> AbstractEntry();
> virtual ~AbstractEntry() = 0;
44,45c44,46
< // Destructor, prevent it from instantiation
< virtual ~AbstractEntry() = 0;
---
> // The methods below are those called by ruby runtime, add when it
> // is absolutely necessary and should all be virtual function.
> virtual DataBlock& getDataBlk() = 0;
47,55c48
< // Public Methods
<
< // The methods below are those called by ruby runtime, add when it is
< // absolutely necessary and should all be virtual function.
< virtual DataBlock& getDataBlk() = 0;
<
<
< virtual void print(ostream& out) const = 0;
<
---
> virtual void print(ostream& out) const = 0;
58,65c51,52
< // Output operator declaration
< ostream& operator<<(ostream& out, const AbstractEntry& obj);
<
< // ******************* Definitions *******************
<
< // Output operator definition
< extern inline
< ostream& operator<<(ostream& out, const AbstractEntry& obj)
---
> inline ostream&
> operator<<(ostream& out, const AbstractEntry& obj)
67,69c54,56
< obj.print(out);
< out << flush;
< return out;
---
> obj.print(out);
> out << flush;
> return out;
72c59
< #endif //AbstractEntry_H
---
> #endif // __MEM_RUBY_SLICC_INTERFACE_ABSTRACTENTRY_HH__