Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
timelinesearch.h File Reference
Include dependency graph for timelinesearch.h:

Go to the source code of this file.

Classes

class  TimelineSearch
 Search all nodes in a timeline that match a predicate. More...
 
class  TimelineSearch::const_iterator
 

Typedefs

typedef std::function< bool(const
TimelineNode *)> 
Predicate
 Copyright 2016 Google Inc. More...
 

Functions

 predicate_ ([node_type, begin, end](const TimelineNode *node){return node->GetType()==node_type &&node->GetBegin() >=begin &&node->GetEnd()<=end;})
 
 predicate_ ([thread_id](const TimelineNode *node){if(node->GetType()!=TimelineNode::Type::kThread) return false;const TimelineThread *thread=static_cast< const TimelineThread * >(node);return thread->GetThreadId()==thread_id;})
 

Typedef Documentation

typedef std::function<bool(const TimelineNode*)> Predicate

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.

Definition at line 29 of file timelinesearch.h.

Function Documentation

predicate_ ( [node_type, begin, end] (const TimelineNode *node){return node->GetType()==node_type &&node->GetBegin() >=begin &&node->GetEnd()<=end;}  )

Definition at line 122 of file timelinesearch.h.

predicate_ ( [thread_id] (const TimelineNode *node){if(node->GetType()!=TimelineNode::Type::kThread) return false;const TimelineThread *thread=static_cast< const TimelineThread * >(node);return thread->GetThreadId()==thread_id;}  )

Definition at line 140 of file timelinesearch.h.

References TimelineThread::GetThreadId(), and TimelineNode::kThread.