retdec
api_call_info_seq.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_LLVMIR2HLL_PATTERN_PATTERN_FINDERS_API_CALL_API_CALL_INFO_SEQ_H
8 #define RETDEC_LLVMIR2HLL_PATTERN_PATTERN_FINDERS_API_CALL_API_CALL_INFO_SEQ_H
9 
11 
12 namespace retdec {
13 namespace llvmir2hll {
14 
22 public:
24  using APICallInfos = std::vector<APICallInfo>;
25 
27  using iterator = APICallInfos::const_iterator;
28 
29 public:
31 
32  // The compiler-generated destructor, copy constructor and assignment
33  // operator are just fine, so we don't have to create our own ones.
34 
35  bool operator==(const APICallInfoSeq &other) const;
36  bool operator!=(const APICallInfoSeq &other) const;
37 
39  APICallInfos::size_type size() const;
40  bool empty() const;
41  const APICallInfo &front() const;
42  const APICallInfo &back() const;
43  iterator begin() const;
44  iterator end() const;
45 
46 private:
48 };
49 
50 } // namespace llvmir2hll
51 } // namespace retdec
52 
53 #endif
A representation of information about an API call.
A sequence of information about API calls.
Definition: api_call_info_seq.h:21
std::vector< APICallInfo > APICallInfos
List of APICallInfo.
Definition: api_call_info_seq.h:24
const APICallInfo & front() const
Returns a constant reference to the first information in the sequence.
Definition: api_call_info_seq.cpp:73
APICallInfoSeq()
Constructs an empty sequence.
Definition: api_call_info_seq.cpp:16
APICallInfos::size_type size() const
Returns the number of information in the sequence.
Definition: api_call_info_seq.cpp:55
bool empty() const
Returns true if there are no information in the sequence, false otherwise.
Definition: api_call_info_seq.cpp:63
bool operator!=(const APICallInfoSeq &other) const
Returns true if this sequence is not equal to other, false otherwise.
Definition: api_call_info_seq.cpp:29
iterator end() const
Returns an iterator past the last information.
Definition: api_call_info_seq.cpp:101
APICallInfos apiCallInfos
Definition: api_call_info_seq.h:47
bool operator==(const APICallInfoSeq &other) const
Returns true if this sequence is equal to other, false otherwise.
Definition: api_call_info_seq.cpp:21
iterator begin() const
Returns an iterator to the first information.
Definition: api_call_info_seq.cpp:94
APICallInfoSeq & add(APICallInfo info)
Adds info into the sequence.
Definition: api_call_info_seq.cpp:47
APICallInfos::const_iterator iterator
Iterator over API call information.
Definition: api_call_info_seq.h:27
const APICallInfo & back() const
Returns a constant reference to the last information in the sequence.
Definition: api_call_info_seq.cpp:85
A representation of information about an API call.
Definition: api_call_info.h:23
A library providing API for working with back-end IR.
Definition: archive_wrapper.h:19