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 liblldb_VectorIterator_h_
11 #define liblldb_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:
37  ExecutionContextRef m_exe_ctx_ref;
38  ConstString m_item_name;
39  lldb::ValueObjectSP m_item_sp;
40 };
41 
42 } // namespace formatters
43 } // namespace lldb_private
44 
45 #endif // liblldb_CF_h_
size_t GetIndexOfChildWithName(ConstString name) override
Definition: LibStdcpp.cpp:225
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
VectorIteratorSyntheticFrontEnd(lldb::ValueObjectSP valobj_sp, ConstString item_name)
Definition: LibStdcpp.cpp:181
Execution context objects refer to objects in the execution of the program that is being debugged...
A uniqued constant string class.
Definition: ConstString.h:38
lldb::ValueObjectSP GetChildAtIndex(size_t idx) override
Definition: LibStdcpp.cpp:217