mem_object.hh (2982:0ecdb0879b14) | mem_object.hh (4190:5069dfa3d62e) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 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; --- 37 unchanged lines hidden (view full) --- 46class MemObject : public SimObject 47{ 48 public: 49 MemObject(const std::string &name); 50 51 public: 52 /** Additional function to return the Port of a memory object. */ 53 virtual Port *getPort(const std::string &if_name, int idx = -1) = 0; | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 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; --- 37 unchanged lines hidden (view full) --- 46class MemObject : public SimObject 47{ 48 public: 49 MemObject(const std::string &name); 50 51 public: 52 /** Additional function to return the Port of a memory object. */ 53 virtual Port *getPort(const std::string &if_name, int idx = -1) = 0; |
54 55 /** Tell object that this port is about to disappear, so it should remove it 56 * from any structures that it's keeping it in. */ 57 virtual void deletePortRefs(Port *p) ; |
|
54}; 55 56#endif //__MEM_MEM_OBJECT_HH__ | 58}; 59 60#endif //__MEM_MEM_OBJECT_HH__ |