Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Timeline::const_iterator Class Reference

Traverses the hierarchy in pre-order. More...

#include "timeline.h"

Public Member Functions

 const_iterator (const TimelineNode *node, const TimelineNode *root)
 
const TimelineNodeoperator* () const
 
const_iterator operator++ ()
 Copyright 2016 Google Inc. More...
 
bool operator== (const const_iterator &other) const
 
bool operator!= (const const_iterator &other) const
 

Detailed Description

Traverses the hierarchy in pre-order.

Events are visited in increasing begin-timestamp order.

Definition at line 56 of file timeline.h.

Constructor & Destructor Documentation

Timeline::const_iterator::const_iterator ( const TimelineNode node,
const TimelineNode root 
)
inline

Definition at line 58 of file timeline.h.

Member Function Documentation

bool Timeline::const_iterator::operator!= ( const const_iterator other) const
inline

Definition at line 65 of file timeline.h.

const TimelineNode* Timeline::const_iterator::operator* ( ) const
inline

Definition at line 60 of file timeline.h.

Timeline::const_iterator Timeline::const_iterator::operator++ ( )

Copyright 2016 Google Inc.

All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.Pre-order traversal with back-tracking. We don't use a stack here to keep the iterator light-weight and fast to copy, because some STL algorithms assume this.

Definition at line 26 of file timeline.cc.

References CHECK, TimelineNode::GetChildren(), and TimelineNode::GetParent().

bool Timeline::const_iterator::operator== ( const const_iterator other) const
inline

Definition at line 62 of file timeline.h.


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