OLD | NEW |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * This program is free software; you can redistribute it and/or modify | 3 * This program is free software; you can redistribute it and/or modify |
4 * it under the terms of the GNU General Public License version 2 as | 4 * it under the terms of the GNU General Public License version 2 as |
5 * published by the Free Software Foundation; | 5 * published by the Free Software Foundation; |
6 * | 6 * |
7 * This program is distributed in the hope that it will be useful, | 7 * This program is distributed in the hope that it will be useful, |
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
10 * GNU General Public License for more details. | 10 * GNU General Public License for more details. |
(...skipping 26 matching lines...) Expand all Loading... |
37 /** | 37 /** |
38 * \brief This function will go through all the TypeIds and get only the attri
butes which are | 38 * \brief This function will go through all the TypeIds and get only the attri
butes which are |
39 * explicit values (not vectors or pointer or arrays) and apply StartVisitType
Id | 39 * explicit values (not vectors or pointer or arrays) and apply StartVisitType
Id |
40 * and VisitAttribute on the attributes in one TypeId. At the end of each Type
Id | 40 * and VisitAttribute on the attributes in one TypeId. At the end of each Type
Id |
41 * EndVisitTypeId is called. | 41 * EndVisitTypeId is called. |
42 */ | 42 */ |
43 void Iterate (void); | 43 void Iterate (void); |
44 private: | 44 private: |
45 /** | 45 /** |
46 * \brief Just an interface that needs to be implemented | 46 * \brief Just an interface that needs to be implemented |
| 47 * \param name the attribute name |
47 */ | 48 */ |
48 virtual void StartVisitTypeId (std::string name); | 49 virtual void StartVisitTypeId (std::string name); |
49 /** | 50 /** |
50 * \brief Just an interface that needs to be implemented | 51 * \brief Just an interface that needs to be implemented |
51 */ | 52 */ |
52 virtual void EndVisitTypeId (void); | 53 virtual void EndVisitTypeId (void); |
53 /** | 54 /** |
54 * \brief This method can be implemented, otherwise, it will call DoVisitAttri
bute | 55 * \brief This method can be implemented, otherwise, it will call DoVisitAttri
bute |
| 56 *· |
| 57 * \param tid the type id |
| 58 * \param name the attribute name |
| 59 * \param defaultValue the default attribute value |
| 60 * \param index the index |
55 */ | 61 */ |
56 virtual void VisitAttribute (TypeId tid, std::string name, std::string default
Value, uint32_t index); | 62 virtual void VisitAttribute (TypeId tid, std::string name, std::string default
Value, uint32_t index); |
57 /** | 63 /** |
58 * \brief This method is just an interface and needs to be implemented | 64 * \brief This method is just an interface and needs to be implemented |
| 65 * \param name the attribute name |
| 66 * \param defaultValue the default attribute value |
59 */ | 67 */ |
60 virtual void DoVisitAttribute (std::string name, std::string defaultValue); | 68 virtual void DoVisitAttribute (std::string name, std::string defaultValue); |
61 }; | 69 }; |
62 | 70 |
63 } // namespace ns3 | 71 } // namespace ns3 |
64 | 72 |
65 #endif /* ATTRIBUTE_DEFAULT_ITERATOR_H */ | 73 #endif /* ATTRIBUTE_DEFAULT_ITERATOR_H */ |
OLD | NEW |