1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 29 unchanged lines hidden (view full) --- 38class DataBlock; 39 40class AbstractEntry 41{ 42 public: 43 AbstractEntry(); 44 virtual ~AbstractEntry() = 0; 45 |
46 // Get/Set permission of the entry 47 AccessPermission getPermission() const; 48 void changePermission(AccessPermission new_perm); 49 |
50 // The methods below are those called by ruby runtime, add when it 51 // is absolutely necessary and should all be virtual function. 52 virtual DataBlock& getDataBlk() = 0; 53 54 virtual void print(std::ostream& out) const = 0; |
55 56 AccessPermission m_Permission; // Access permission for this 57 // block, required by CacheMemory |
58}; 59 60inline std::ostream& 61operator<<(std::ostream& out, const AbstractEntry& obj) 62{ 63 obj.print(out); 64 out << std::flush; 65 return out; 66} 67 68#endif // __MEM_RUBY_SLICC_INTERFACE_ABSTRACTENTRY_HH__ 69 |