inifile.hh (2665:a124942bacb8) | inifile.hh (5543:3af77710f397) |
---|---|
1/* 2 * Copyright (c) 2001-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; --- 47 unchanged lines hidden (view full) --- 56{ 57 protected: 58 59 /// 60 /// A single key/value pair. 61 /// 62 class Entry 63 { | 1/* 2 * Copyright (c) 2001-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; --- 47 unchanged lines hidden (view full) --- 56{ 57 protected: 58 59 /// 60 /// A single key/value pair. 61 /// 62 class Entry 63 { |
64 std::string value; ///< The entry value. 65 mutable bool referenced; ///< Has this entry been used? | 64 std::string value; ///< The entry value. 65 mutable bool referenced; ///< Has this entry been used? |
66 67 public: 68 /// Constructor. 69 Entry(const std::string &v) 70 : value(v), referenced(false) 71 { 72 } 73 --- 17 unchanged lines hidden (view full) --- 91 /// 92 /// A section. 93 /// 94 class Section 95 { 96 /// EntryTable type. Map of strings to Entry object pointers. 97 typedef m5::hash_map<std::string, Entry *> EntryTable; 98 | 66 67 public: 68 /// Constructor. 69 Entry(const std::string &v) 70 : value(v), referenced(false) 71 { 72 } 73 --- 17 unchanged lines hidden (view full) --- 91 /// 92 /// A section. 93 /// 94 class Section 95 { 96 /// EntryTable type. Map of strings to Entry object pointers. 97 typedef m5::hash_map<std::string, Entry *> EntryTable; 98 |
99 EntryTable table; ///< Table of entries. 100 mutable bool referenced; ///< Has this section been used? | 99 EntryTable table; ///< Table of entries. 100 mutable bool referenced; ///< Has this section been used? |
101 102 public: 103 /// Constructor. 104 Section() 105 : table(), referenced(false) 106 { 107 } 108 --- 103 unchanged lines hidden --- | 101 102 public: 103 /// Constructor. 104 Section() 105 : table(), referenced(false) 106 { 107 } 108 --- 103 unchanged lines hidden --- |