mem_object.hh (2665:a124942bacb8) | mem_object.hh (2738:5d7a31c7fa29) |
---|---|
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; --- 36 unchanged lines hidden (view full) --- 45 */ 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. */ | 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; --- 36 unchanged lines hidden (view full) --- 45 */ 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) = 0; | 53 virtual Port *getPort(const std::string &if_name, int idx = -1) = 0; |
54}; 55 56#endif //__MEM_MEM_OBJECT_HH__ | 54}; 55 56#endif //__MEM_MEM_OBJECT_HH__ |