LLVM  14.0.0git
IPDBDataStream.h
Go to the documentation of this file.
1 //===- IPDBDataStream.h - base interface for child enumerator ---*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_PDB_IPDBDATASTREAM_H
10 #define LLVM_DEBUGINFO_PDB_IPDBDATASTREAM_H
11 
12 #include "llvm/ADT/Optional.h"
13 #include "llvm/ADT/SmallVector.h"
14 #include <cstdint>
15 #include <string>
16 
17 namespace llvm {
18 namespace pdb {
19 
20 /// IPDBDataStream defines an interface used to represent a stream consisting
21 /// of a name and a series of records whose formats depend on the particular
22 /// stream type.
24 public:
26 
27  virtual ~IPDBDataStream();
28 
29  virtual uint32_t getRecordCount() const = 0;
30  virtual std::string getName() const = 0;
32  virtual bool getNext(RecordType &Record) = 0;
33  virtual void reset() = 0;
34 };
35 
36 } // end namespace pdb
37 } // end namespace llvm
38 
39 #endif // LLVM_DEBUGINFO_PDB_IPDBDATASTREAM_H
llvm::pdb::IPDBDataStream::getRecordCount
virtual uint32_t getRecordCount() const =0
llvm::pdb::IPDBDataStream
IPDBDataStream defines an interface used to represent a stream consisting of a name and a series of r...
Definition: IPDBDataStream.h:23
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
Optional.h
llvm::SmallVector< uint8_t, 32 >
llvm::Optional
Definition: APInt.h:33
llvm::pdb::IPDBDataStream::getNext
virtual bool getNext(RecordType &Record)=0
Index
uint32_t Index
Definition: ELFObjHandler.cpp:84
llvm::Record
Definition: Record.h:1472
uint32_t
llvm::pdb::IPDBDataStream::~IPDBDataStream
virtual ~IPDBDataStream()
llvm::pdb::IPDBDataStream::getItemAtIndex
virtual Optional< RecordType > getItemAtIndex(uint32_t Index) const =0
SmallVector.h
llvm::pdb::IPDBDataStream::reset
virtual void reset()=0
llvm::pdb::IPDBDataStream::getName
virtual std::string getName() const =0