1 //===-- VectorIterator.h ----------------------------------------------*- C++
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef liblldb_VectorIterator_h_
12 #define liblldb_VectorIterator_h_
14 #include "lldb/lldb-forward.h"
16 #include "lldb/DataFormatters/TypeSynthetic.h"
17 #include "lldb/Target/ExecutionContext.h"
18 #include "lldb/Utility/ConstString.h"
20 namespace lldb_private {
21 namespace formatters {
22 class VectorIteratorSyntheticFrontEnd : public SyntheticChildrenFrontEnd {
24 VectorIteratorSyntheticFrontEnd(lldb::ValueObjectSP valobj_sp,
25 ConstString item_name);
27 size_t CalculateNumChildren() override;
29 lldb::ValueObjectSP GetChildAtIndex(size_t idx) override;
31 bool Update() override;
33 bool MightHaveChildren() override;
35 size_t GetIndexOfChildWithName(const ConstString &name) override;
38 ExecutionContextRef m_exe_ctx_ref;
39 ConstString m_item_name;
40 lldb::ValueObjectSP m_item_sp;
43 } // namespace formatters
44 } // namespace lldb_private
46 #endif // liblldb_CF_h_