retdec
Public Types | Public Member Functions | Private Attributes | List of all members
retdec::llvmir2hll::APICallInfoSeq Class Reference

A sequence of information about API calls. More...

#include <api_call_info_seq.h>

Collaboration diagram for retdec::llvmir2hll::APICallInfoSeq:
Collaboration graph
[legend]

Public Types

using APICallInfos = std::vector< APICallInfo >
 List of APICallInfo. More...
 
using iterator = APICallInfos::const_iterator
 Iterator over API call information. More...
 

Public Member Functions

 APICallInfoSeq ()
 Constructs an empty sequence. More...
 
bool operator== (const APICallInfoSeq &other) const
 Returns true if this sequence is equal to other, false otherwise. More...
 
bool operator!= (const APICallInfoSeq &other) const
 Returns true if this sequence is not equal to other, false otherwise. More...
 
APICallInfoSeqadd (APICallInfo info)
 Adds info into the sequence. More...
 
APICallInfos::size_type size () const
 Returns the number of information in the sequence. More...
 
bool empty () const
 Returns true if there are no information in the sequence, false otherwise. More...
 
const APICallInfofront () const
 Returns a constant reference to the first information in the sequence. More...
 
const APICallInfoback () const
 Returns a constant reference to the last information in the sequence. More...
 
iterator begin () const
 Returns an iterator to the first information. More...
 
iterator end () const
 Returns an iterator past the last information. More...
 

Private Attributes

APICallInfos apiCallInfos
 

Detailed Description

A sequence of information about API calls.

Use APICallInfoSeqParser to construct instances of this class from a text representation (i.e. from a string).

Member Typedef Documentation

◆ APICallInfos

List of APICallInfo.

◆ iterator

using retdec::llvmir2hll::APICallInfoSeq::iterator = APICallInfos::const_iterator

Iterator over API call information.

Constructor & Destructor Documentation

◆ APICallInfoSeq()

retdec::llvmir2hll::APICallInfoSeq::APICallInfoSeq ( )

Constructs an empty sequence.

Member Function Documentation

◆ add()

APICallInfoSeq & retdec::llvmir2hll::APICallInfoSeq::add ( APICallInfo  info)

Adds info into the sequence.

More precisely, it appends it after the last information (if any).

Returns
A reference to the modified sequence. This allows to chain add() calls, like this:
.add(APICallInfo("func1"))
.add(APICallInfo("func2"))
.add(APICallInfo("func3"))
APICallInfoSeq()
Constructs an empty sequence.
Definition: api_call_info_seq.cpp:16

◆ back()

const APICallInfo & retdec::llvmir2hll::APICallInfoSeq::back ( ) const

Returns a constant reference to the last information in the sequence.

Preconditions
  • there is at least one information in the sequence

◆ begin()

APICallInfoSeq::iterator retdec::llvmir2hll::APICallInfoSeq::begin ( ) const

Returns an iterator to the first information.

◆ empty()

bool retdec::llvmir2hll::APICallInfoSeq::empty ( ) const

Returns true if there are no information in the sequence, false otherwise.

◆ end()

APICallInfoSeq::iterator retdec::llvmir2hll::APICallInfoSeq::end ( ) const

Returns an iterator past the last information.

◆ front()

const APICallInfo & retdec::llvmir2hll::APICallInfoSeq::front ( ) const

Returns a constant reference to the first information in the sequence.

Preconditions
  • there is at least one information in the sequence

◆ operator!=()

bool retdec::llvmir2hll::APICallInfoSeq::operator!= ( const APICallInfoSeq other) const

Returns true if this sequence is not equal to other, false otherwise.

◆ operator==()

bool retdec::llvmir2hll::APICallInfoSeq::operator== ( const APICallInfoSeq other) const

Returns true if this sequence is equal to other, false otherwise.

◆ size()

APICallInfoSeq::APICallInfos::size_type retdec::llvmir2hll::APICallInfoSeq::size ( ) const

Returns the number of information in the sequence.

Member Data Documentation

◆ apiCallInfos

APICallInfos retdec::llvmir2hll::APICallInfoSeq::apiCallInfos
private

The documentation for this class was generated from the following files: