18 #ifndef ION_PROFILE_TIMELINE_H_
19 #define ION_PROFILE_TIMELINE_H_
23 #include "base/macros.h"
50 explicit Timeline(std::unique_ptr<TimelineNode> root)
51 : root_(std::move(root)) {}
59 : node_(node), root_(root) {}
63 return node_ == other.node_;
66 return !(*
this == other);
86 std::unique_ptr<TimelineNode> root_;
90 #endif // ION_PROFILE_TIMELINE_H_
Traverses the hierarchy in pre-order.
const_iterator end() const
Returns a const iterator to the end of the timeline.
const_iterator begin() const
Returns a const iterator over the timeline. The root node is skipped.
const TimelineNode * operator*() const
bool operator==(const const_iterator &other) const
Copyright 2016 Google Inc.
const TimelineNode * GetRoot() const
Returns a pointer to the root node.
const_iterator operator++()
Copyright 2016 Google Inc.
bool operator!=(const const_iterator &other) const
Copyright 2016 Google Inc.
Copyright 2016 Google Inc.
Timeline(std::unique_ptr< TimelineNode > root)
const_iterator(const TimelineNode *node, const TimelineNode *root)
Timeline(Timeline &&other)