Lines Matching refs:name

25 # neither the name of the copyright holders nor the names of its
66 # variable, the 'name' param)...
87 # same name. The Python inheritance tree mirrors the M5 C++ tree
130 def createCxxConfigDirectoryEntryFile(code, name, simobj, is_header):
131 entry_class = 'CxxConfigDirectoryEntry_%s' % name
132 param_class = '%sCxxConfigParams' % name
134 code('#include "params/%s.hh"' % name)
150 ' public ${name}Params')
173 code('#include "cxx_config/${name}.hh"')
188 (param.name, param.name, cxx_bool(is_vector),
196 (port.name, port.name, cxx_bool(is_vector),
203 code('bool ${member_prefix}setSimObject(const std::string &name,')
217 code('} else if (name == "${{param.name}}") {')
219 code('this->${{param.name}} = '
221 code('if (simObject && !this->${{param.name}})')
234 'const std::string &name,')
248 code('} else if (name == "${{param.name}}") {')
250 code('this->${{param.name}}.clear();')
260 code(' this->${{param.name}}.push_back(object);')
279 code('this->name = name_;')
285 code('{ return this->name; }')
288 code('bool ${member_prefix}setParam(const std::string &name,')
302 code('} else if (name == "${{param.name}}") {')
305 'value', 'this->%s' % param.name, 'ret =')
317 'const std::string &name,')
332 code('} else if (name == "${{param.name}}") {')
334 code('${{param.name}}.clear();')
343 code(' this->${{param.name}}.push_back(elem);')
357 'const std::string &name,')
368 code('else if (name == "${{port.name}}")')
369 code(' this->port_${{port.name}}_connection_count = count;')
424 def __new__(mcls, name, bases, dict):
425 assert name not in allClasses, "SimObject %s already present" % name
457 cls = super(MetaSimObject, mcls).__new__(mcls, name, bases, cls_dict)
459 allClasses[name] = cls
463 def __init__(cls, name, bases, dict):
466 super(MetaSimObject, cls).__init__(name, bases, dict)
521 warn("No header file specified for SimObject: %s", name)
555 def _new_param(cls, name, pdesc):
557 assert(not hasattr(pdesc, 'name'))
558 pdesc.name = name
559 cls._params[name] = pdesc
561 cls._set_param(name, pdesc.default, pdesc)
563 def _set_param(cls, name, value, param):
564 assert(param.name == name)
570 (e, cls.__name__, name, value)
573 cls._values[name] = value
577 cls._add_cls_child(name, value)
582 cls._hr_values[name] = hr_value
584 def _add_cls_child(cls, name, child):
590 child.set_parent(cls, name)
592 cls._children[name] = child
594 def _new_port(cls, name, port):
596 assert(not hasattr(port, 'name'))
597 port.name = name
598 cls._ports[name] = port
737 PyBindProperty("port_%s_connection_count" % port.name)
839 # And the class name is the last part.
840 self.name = class_path[-1]
867 code('class ${{self.name}};')
923 std::string name;
957 name = func.__name__
959 cxx_name = kwargs.get("cxx_name", name)
979 return getattr(ccobj, name)(*args, **kwargs)
986 f.__pybind = PyBindMethod(name, cxx_name=cxx_name, args=args,
1017 def __setattr__(self, name, value):
1019 self.__dict__[name] = value
1103 PyBindProperty("name"),
1348 def set_parent(self, parent, name):
1350 self._name = name
1366 # clear out child with given name. This code is not likely to be exercised.
1368 def clear_child(self, name):
1369 child = self._children[name]
1371 del self._children[name]
1374 def add_child(self, name, child):
1377 warn("add_child('%s'): child '%s' already has parent", name,
1379 if name in self._children:
1384 self.clear_child(name)
1385 child.set_parent(self, name)
1387 self._children[name] = child
1547 # Add the name and path of this object to be able to link to
1549 d.name = self.get_name()
1559 # Use the name of the attribute (and not get_name()) as
1579 cc_params.name = str(self)
1640 # it based on the key (name) to ensure the order is the same
1642 for (name, child) in sorted(self._children.items()):
1661 # Sort the ports based on their attribute name to ensure the
1703 def resolveSimObject(name):
1704 obj = instanceDict[name]