proxygen
proxygen::TraceEvent::Iterator Class Reference

#include <TraceEvent.h>

Public Member Functions

 Iterator (const TraceEvent &event)
 
 ~Iterator ()
 
void next ()
 
bool isValid () const
 
TraceFieldType getKey () const
 
template<typename T >
T getValueAs () const
 
const std::type_info & type () const
 

Private Attributes

const TraceEventevent_
 
MetaDataMap::const_iterator itr_
 

Detailed Description

Definition at line 101 of file TraceEvent.h.

Constructor & Destructor Documentation

proxygen::TraceEvent::Iterator::Iterator ( const TraceEvent event)
inlineexplicit

Definition at line 103 of file TraceEvent.h.

103  :
104  event_(event),
105  itr_(event.metaData_.begin()) {
106  }
const TraceEvent & event_
Definition: TraceEvent.h:132
MetaDataMap::const_iterator itr_
Definition: TraceEvent.h:133
proxygen::TraceEvent::Iterator::~Iterator ( )
inline

Definition at line 108 of file TraceEvent.h.

108 {}

Member Function Documentation

TraceFieldType proxygen::TraceEvent::Iterator::getKey ( ) const
inline

Definition at line 118 of file TraceEvent.h.

118  {
119  return itr_->first;
120  }
MetaDataMap::const_iterator itr_
Definition: TraceEvent.h:133
template<typename T >
T proxygen::TraceEvent::Iterator::getValueAs ( ) const
inline

Definition at line 123 of file TraceEvent.h.

References T.

123  {
124  return itr_->second.getValueAs<T>();
125  }
#define T(v)
Definition: http_parser.c:233
MetaDataMap::const_iterator itr_
Definition: TraceEvent.h:133
bool proxygen::TraceEvent::Iterator::isValid ( ) const
inline

Definition at line 114 of file TraceEvent.h.

114  {
115  return itr_ != event_.metaData_.end();
116  }
MetaDataMap metaData_
Definition: TraceEvent.h:276
const TraceEvent & event_
Definition: TraceEvent.h:132
MetaDataMap::const_iterator itr_
Definition: TraceEvent.h:133
void proxygen::TraceEvent::Iterator::next ( )
inline

Definition at line 110 of file TraceEvent.h.

110  {
111  ++itr_;
112  }
MetaDataMap::const_iterator itr_
Definition: TraceEvent.h:133
const std::type_info& proxygen::TraceEvent::Iterator::type ( ) const
inline

Definition at line 127 of file TraceEvent.h.

127  {
128  return itr_->second.type();
129  }
MetaDataMap::const_iterator itr_
Definition: TraceEvent.h:133

Member Data Documentation

const TraceEvent& proxygen::TraceEvent::Iterator::event_
private

Definition at line 132 of file TraceEvent.h.

MetaDataMap::const_iterator proxygen::TraceEvent::Iterator::itr_
private

Definition at line 133 of file TraceEvent.h.


The documentation for this class was generated from the following file: