class AnnotationList
Defined at line 36 of file ../../third_party/crashpad/src/client/annotation_list.h
A list that contains all the currently set annotations.
An instance of this class must be registered on the
structure in order to use the annotations system. Once a list object has
been registered on the CrashpadInfo, a different instance should not
be used instead.
Public Methods
void AnnotationList ()
void AnnotationList (const AnnotationList & )
Defined at line 40 of file ../../third_party/crashpad/src/client/annotation_list.h
AnnotationList & operator= (const AnnotationList & )
Defined at line 41 of file ../../third_party/crashpad/src/client/annotation_list.h
void ~AnnotationList ()
AnnotationList * Get ()
Returns the instance of the list that has been registered on the
CrashapdInfo structure.
AnnotationList * Register ()
Returns the instance of the list, creating and registering
it if one is not already set on the CrashapdInfo structure.
void Add (Annotation * annotation)
Adds
to the global list. This method does not need
to be called by clients directly. The Annotation object will do so
automatically.
Once an annotation is added to the list, it is not removed. This is
because the AnnotationList avoids the use of locks/mutexes, in case it is
being manipulated in a compromised context. Instead, an Annotation keeps
track of when it has been cleared, which excludes it from a crash report.
This design also avoids linear scans of the list when repeatedly setting
and/or clearing the value.
Iterator begin ()
Returns an iterator to the first element of the annotation list.
ConstIterator begin ()
Defined at line 108 of file ../../third_party/crashpad/src/client/annotation_list.h
ConstIterator cbegin ()
Iterator end ()
Returns an iterator past the last element of the annotation list.
ConstIterator cend ()
ConstIterator end ()
Defined at line 113 of file ../../third_party/crashpad/src/client/annotation_list.h
Protected Methods
const Annotation * tail_pointer ()
Returns a pointer to the tail node.
Defined at line 122 of file ../../third_party/crashpad/src/client/annotation_list.h
const Annotation * head ()
Returns a pointer to the head element.
Defined at line 125 of file ../../third_party/crashpad/src/client/annotation_list.h