Lines Matching refs:name

24  * neither the name of the copyright holders nor the names of its
100 // directory name as a global. It would be nice to change this
110 // appends a '/' if necessary. The final name is returned.
113 // Export current checkpoint directory name so other objects can
167 * When the class is instantiated, it appends a name to the active
176 ScopedCheckpointSection(CP &cp, const char *name) {
177 pushName(name);
182 ScopedCheckpointSection(CP &cp, const std::string &name) {
183 pushName(name.c_str());
197 void pushName(const char *name);
229 * section. The name of the section is appended to the current
233 * @param name Name to append to the active path
235 void serializeSection(CheckpointOut &cp, const char *name) const;
237 void serializeSection(CheckpointOut &cp, const std::string &name) const {
238 serializeSection(cp, name.c_str());
245 * name is appended to the active path to form a fully qualified
246 * section name and unserialize() is called.
249 * @param name Name to append to the active path
251 void unserializeSection(CheckpointIn &cp, const char *name);
253 void unserializeSection(CheckpointIn &cp, const std::string &name) {
254 unserializeSection(cp, name.c_str());
257 /** Get the fully-qualified name of the active section */
374 paramOut(CheckpointOut &os, const std::string &name, const T &param)
376 os << name << "=";
383 paramIn(CheckpointIn &cp, const std::string &name, T &param)
387 if (!cp.find(section, name, str) || !parseParam(str, param)) {
388 fatal("Can't unserialize '%s:%s'\n", section, name);
394 optParamIn(CheckpointIn &cp, const std::string &name,
399 if (!cp.find(section, name, str) || !parseParam(str, param)) {
401 warn("optional parameter %s:%s not present\n", section, name);
410 arrayParamOut(CheckpointOut &os, const std::string &name,
414 os << name << "=";
426 arrayParamOut(CheckpointOut &os, const std::string &name,
431 os << name << "=";
445 arrayParamOut(CheckpointOut &os, const std::string &name,
450 os << name << "=";
464 arrayParamOut(CheckpointOut &os, const std::string &name,
467 os << name << "=";
482 * @param name Name of the container.
488 arrayParamIn(CheckpointIn &cp, const std::string &name,
493 if (!cp.find(section, name, str)) {
494 fatal("Can't unserialize '%s:%s'\n", section, name);
509 section, name, tokens.size(), size);
533 arrayParamIn(CheckpointIn &cp, const std::string &name, std::vector<T> &param)
537 if (!cp.find(section, name, str)) {
538 fatal("Can't unserialize '%s:%s'\n", section, name);
575 arrayParamIn(CheckpointIn &cp, const std::string &name, std::list<T> &param)
579 if (!cp.find(section, name, str)) {
580 fatal("Can't unserialize '%s:%s'\n", section, name);
605 arrayParamIn(CheckpointIn &cp, const std::string &name, std::set<T> &param)
609 if (!cp.find(section, name, str)) {
610 fatal("Can't unserialize '%s:%s'\n", section, name);
637 objParamIn(CheckpointIn &cp, const std::string &name, SimObject * &param);
681 #define SERIALIZE_OBJPTR(objptr) paramOut(cp, #objptr, (objptr)->name())