gem5 v24.0.0.0
|
Base for peer classes of SimObjectParams derived classes with parameter modifying member functions. More...
#include <cxx_config.hh>
Classes | |
struct | AddToConfigDir |
Public Types | |
typedef uint32_t | FlagsType |
Flags passable to setParam... to smooth over any parsing difference between different config files. | |
typedef gem5::Flags< FlagsType > | Flags |
Public Member Functions | |
virtual void | setName (const std::string &name_) |
Example flag. | |
virtual const std::string & | getName () |
Get full path name string. | |
virtual bool | setSimObject (const std::string &name, SimObject *simObject) |
Set a SimObject valued parameter with a reference to the given SimObject. | |
virtual bool | setSimObjectVector (const std::string &name, const std::vector< SimObject * > &simObjects) |
As setSimObjectVector but set a whole vector of references. | |
virtual bool | setParam (const std::string &name, const std::string &value, const Flags flags) |
Set a parameter with a value parsed from the given string. | |
virtual bool | setParamVector (const std::string &name, const std::vector< std::string > &values, const Flags flags) |
As setParamVector but for parameters given as vectors pre-separated into elements. | |
virtual bool | setPortConnectionCount (const std::string &name, unsigned int count) |
Set the number of connections expected for the named port. | |
virtual SimObject * | simObjectCreate () |
Create the associated SimObject. | |
CxxConfigParams () | |
virtual | ~CxxConfigParams () |
Static Private Attributes | |
static const std::string | invalidName = "<invalid>" |
Base for peer classes of SimObjectParams derived classes with parameter modifying member functions.
C++ configuration will offer objects of these classes to SimObjects as params rather than SimObjectParams objects
Definition at line 129 of file cxx_config.hh.
Definition at line 150 of file cxx_config.hh.
typedef uint32_t gem5::CxxConfigParams::FlagsType |
Flags passable to setParam... to smooth over any parsing difference between different config files.
Definition at line 149 of file cxx_config.hh.
|
inline |
Definition at line 197 of file cxx_config.hh.
|
inlinevirtual |
Definition at line 199 of file cxx_config.hh.
|
inlinevirtual |
Get full path name string.
Definition at line 160 of file cxx_config.hh.
References invalidName.
Referenced by gem5::CxxConfigManager::deleteObjects().
|
inlinevirtual |
Example flag.
Set future object's full path name
Definition at line 157 of file cxx_config.hh.
Referenced by gem5::CxxConfigManager::findObjectParams().
|
inlinevirtual |
Set a parameter with a value parsed from the given string.
The parsing regime matches the format of .ini config files. Returns false if the parameter name is not valid or the string cannot be parsed as the type of the parameter
Definition at line 178 of file cxx_config.hh.
Referenced by gem5::CxxConfigManager::findObjectParams(), and gem5::CxxConfigManager::setParam().
|
inlinevirtual |
As setParamVector but for parameters given as vectors pre-separated into elements.
Definition at line 184 of file cxx_config.hh.
Referenced by gem5::CxxConfigManager::findObjectParams(), and gem5::CxxConfigManager::setParamVector().
|
inlinevirtual |
Set the number of connections expected for the named port.
Returns false if the port name is not valid
Definition at line 190 of file cxx_config.hh.
Referenced by gem5::CxxConfigManager::findObjectParams().
|
inlinevirtual |
Set a SimObject valued parameter with a reference to the given SimObject.
This will return false if the parameter name is not valid or the object is of the wrong type
Definition at line 165 of file cxx_config.hh.
Referenced by gem5::CxxConfigManager::findObject(), and gem5::CxxConfigManager::findObjectParams().
|
inlinevirtual |
As setSimObjectVector but set a whole vector of references.
Definition at line 170 of file cxx_config.hh.
Referenced by gem5::CxxConfigManager::findObject(), and gem5::CxxConfigManager::findObjectParams().
|
inlinevirtual |
Create the associated SimObject.
Definition at line 195 of file cxx_config.hh.
Referenced by gem5::CxxConfigManager::findObject().
|
staticprivate |
Definition at line 132 of file cxx_config.hh.
Referenced by getName().