equal
deleted
inserted
replaced
95 * \param separator the separator inserted between each TraceContextElement typename. |
95 * \param separator the separator inserted between each TraceContextElement typename. |
96 * |
96 * |
97 * Print the typename of each TraceContextElement stored in this TraceContext. |
97 * Print the typename of each TraceContextElement stored in this TraceContext. |
98 */ |
98 */ |
99 void PrintAvailable (std::ostream &os, std::string separator) const; |
99 void PrintAvailable (std::ostream &os, std::string separator) const; |
|
100 class Iterator |
|
101 { |
|
102 public: |
|
103 Iterator &operator ++ (void); |
|
104 Iterator operator ++ (int); |
|
105 const std::string &operator * (void) const; |
|
106 const std::string *operator -> (void) const; |
|
107 bool operator == (const Iterator &o); |
|
108 bool operator != (const Iterator &o); |
|
109 private: |
|
110 friend class TraceContext; |
|
111 Iterator (uint8_t *buffer); |
|
112 Iterator (uint8_t *buffer, uint16_t index); |
|
113 void ReadOne (void); |
|
114 uint8_t *m_buffer; |
|
115 uint16_t m_current; |
|
116 std::string m_name; |
|
117 }; |
|
118 Iterator AvailableBegin (void) const; |
|
119 Iterator AvailableEnd (void) const; |
100 /** |
120 /** |
101 * \param o another trace context |
121 * \param o another trace context |
102 * \returns true if the input trace context contains exactly the same set of |
122 * \returns true if the input trace context contains exactly the same set of |
103 * TraceContextElement instances, false otherwise. |
123 * TraceContextElement instances, false otherwise. |
104 * |
124 * |