LLDB mainline
Public Member Functions | Private Attributes | List of all members
lldb_private::UserID::IDMatches Class Reference

Unary predicate function object that can search for a matching user ID. More...

#include <UserID.h>

Public Member Functions

 IDMatches (lldb::user_id_t uid)
 Construct with the user ID to look for.
 
bool operator() (const UserID &rhs) const
 Unary predicate function object callback.
 

Private Attributes

const lldb::user_id_t m_uid
 The user ID we are looking for.
 

Detailed Description

Unary predicate function object that can search for a matching user ID.

Function object that can be used on any class that inherits from UserID:

iterator pos;
pos = std::find_if (coll.begin(), coll.end(), UserID::IDMatches(blockID));
Unary predicate function object that can search for a matching user ID.
Definition: UserID.h:62

Definition at line 62 of file UserID.h.

Constructor & Destructor Documentation

◆ IDMatches()

lldb_private::UserID::IDMatches::IDMatches ( lldb::user_id_t  uid)
inline

Construct with the user ID to look for.

Definition at line 65 of file UserID.h.

Member Function Documentation

◆ operator()()

bool lldb_private::UserID::IDMatches::operator() ( const UserID rhs) const
inline

Unary predicate function object callback.

Definition at line 68 of file UserID.h.

References lldb_private::UserID::GetID(), and m_uid.

Member Data Documentation

◆ m_uid

const lldb::user_id_t lldb_private::UserID::IDMatches::m_uid
private

The user ID we are looking for.

Definition at line 72 of file UserID.h.

Referenced by operator()().


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