LLDB  mainline
VectorIterator.h
Go to the documentation of this file.
1 //===-- VectorIterator.h ----------------------------------------------*- C++
2 //-*-===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLDB_DATAFORMATTERS_VECTORITERATOR_H
11 #define LLDB_DATAFORMATTERS_VECTORITERATOR_H
12 
13 #include "lldb/lldb-forward.h"
14 
18 
19 namespace lldb_private {
20 namespace formatters {
22 public:
23  VectorIteratorSyntheticFrontEnd(lldb::ValueObjectSP valobj_sp,
24  ConstString item_name);
25 
26  size_t CalculateNumChildren() override;
27 
28  lldb::ValueObjectSP GetChildAtIndex(size_t idx) override;
29 
30  bool Update() override;
31 
32  bool MightHaveChildren() override;
33 
34  size_t GetIndexOfChildWithName(ConstString name) override;
35 
36 private:
39  lldb::ValueObjectSP m_item_sp;
40 };
41 
42 } // namespace formatters
43 } // namespace lldb_private
44 
45 #endif // LLDB_DATAFORMATTERS_VECTORITERATOR_H
lldb_private::formatters::VectorIteratorSyntheticFrontEnd::CalculateNumChildren
size_t CalculateNumChildren() override
Definition: LibStdcpp.cpp:214
lldb_private::formatters::VectorIteratorSyntheticFrontEnd::m_item_name
ConstString m_item_name
Definition: VectorIterator.h:38
lldb_private::formatters::VectorIteratorSyntheticFrontEnd::GetIndexOfChildWithName
size_t GetIndexOfChildWithName(ConstString name) override
Definition: LibStdcpp.cpp:225
lldb_private::SyntheticChildrenFrontEnd
Definition: TypeSynthetic.h:27
lldb_private::formatters::VectorIteratorSyntheticFrontEnd
Definition: VectorIterator.h:21
lldb_private::formatters::VectorIteratorSyntheticFrontEnd::m_exe_ctx_ref
ExecutionContextRef m_exe_ctx_ref
Definition: VectorIterator.h:37
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::formatters::VectorIteratorSyntheticFrontEnd::m_item_sp
lldb::ValueObjectSP m_item_sp
Definition: VectorIterator.h:39
lldb_private::formatters::VectorIteratorSyntheticFrontEnd::GetChildAtIndex
lldb::ValueObjectSP GetChildAtIndex(size_t idx) override
Definition: LibStdcpp.cpp:217
TypeSynthetic.h
lldb_private::formatters::VectorIteratorSyntheticFrontEnd::Update
bool Update() override
Definition: LibStdcpp.cpp:189
lldb-forward.h
lldb_private::formatters::VectorIteratorSyntheticFrontEnd::MightHaveChildren
bool MightHaveChildren() override
Definition: LibStdcpp.cpp:223
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
ConstString.h
lldb_private::formatters::VectorIteratorSyntheticFrontEnd::VectorIteratorSyntheticFrontEnd
VectorIteratorSyntheticFrontEnd(lldb::ValueObjectSP valobj_sp, ConstString item_name)
Definition: LibStdcpp.cpp:181
lldb_private::ExecutionContextRef
Execution context objects refer to objects in the execution of the program that is being debugged.
Definition: ExecutionContext.h:72
ExecutionContext.h