AbstractController.hh (7055:4e24742201d7) | AbstractController.hh (8257:7226aebb77b4) |
---|---|
1/* 2 * Copyright (c) 2009 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; --- 33 unchanged lines hidden (view full) --- 42class MessageBuffer; 43class Network; 44 45class AbstractController : public SimObject, public Consumer 46{ 47 public: 48 typedef RubyControllerParams Params; 49 AbstractController(const Params *p) : SimObject(p) {} | 1/* 2 * Copyright (c) 2009 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; --- 33 unchanged lines hidden (view full) --- 42class MessageBuffer; 43class Network; 44 45class AbstractController : public SimObject, public Consumer 46{ 47 public: 48 typedef RubyControllerParams Params; 49 AbstractController(const Params *p) : SimObject(p) {} |
50 const Params *params() const { return (const Params *)_params; } |
|
50 51 // returns the number of controllers created of the specific subtype 52 // virtual int getNumberOfControllers() const = 0; 53 virtual MessageBuffer* getMandatoryQueue() const = 0; 54 virtual const int & getVersion() const = 0; 55 virtual const std::string toString() const = 0; // returns text version of 56 // controller type 57 virtual const std::string getName() const = 0; // return instance name --- 14 unchanged lines hidden --- | 51 52 // returns the number of controllers created of the specific subtype 53 // virtual int getNumberOfControllers() const = 0; 54 virtual MessageBuffer* getMandatoryQueue() const = 0; 55 virtual const int & getVersion() const = 0; 56 virtual const std::string toString() const = 0; // returns text version of 57 // controller type 58 virtual const std::string getName() const = 0; // return instance name --- 14 unchanged lines hidden --- |