LLDB mainline
Public Member Functions | Protected Attributes | List of all members
lldb_private::ProcessInstanceInfoMatch Class Reference

#include <ProcessInfo.h>

Public Member Functions

 ProcessInstanceInfoMatch ()=default
 ProcessInstanceInfoMatch (const char *process_name, NameMatch process_name_match_type)
ProcessInstanceInfoGetProcessInfo ()
const ProcessInstanceInfoGetProcessInfo () const
bool GetMatchAllUsers () const
void SetMatchAllUsers (bool b)
NameMatch GetNameMatchType () const
void SetNameMatchType (NameMatch name_match_type)
bool ArchitectureMatches (const ArchSpec &arch_spec) const
 Return true iff the architecture in this object matches arch_spec.
bool NameMatches (const char *process_name) const
 Return true iff the process name in this object matches process_name.
bool ProcessIDsMatch (const ProcessInstanceInfo &proc_info) const
 Return true iff the process ID and parent process IDs in this object match the ones in proc_info.
bool UserIDsMatch (const ProcessInstanceInfo &proc_info) const
 Return true iff the (both effective and real) user and group IDs in this object match the ones in proc_info.
bool Matches (const ProcessInstanceInfo &proc_info) const
bool MatchAllProcesses () const
void Clear ()

Protected Attributes

ProcessInstanceInfo m_match_info
NameMatch m_name_match_type = NameMatch::Ignore
bool m_match_all_users = false

Detailed Description

Definition at line 297 of file ProcessInfo.h.

Constructor & Destructor Documentation

◆ ProcessInstanceInfoMatch() [1/2]

lldb_private::ProcessInstanceInfoMatch::ProcessInstanceInfoMatch ( )

◆ ProcessInstanceInfoMatch() [2/2]

lldb_private::ProcessInstanceInfoMatch::ProcessInstanceInfoMatch ( const char *  process_name,
NameMatch  process_name_match_type 

Member Function Documentation

◆ ArchitectureMatches()

bool ProcessInstanceInfoMatch::ArchitectureMatches ( const ArchSpec arch_spec) const

Return true iff the architecture in this object matches arch_spec.

Definition at line 253 of file ProcessInfo.cpp.

References lldb_private::ProcessInfo::GetArchitecture(), lldb_private::ArchSpec::IsCompatibleMatch(), lldb_private::ArchSpec::IsValid(), and m_match_info.

Referenced by Matches().

◆ Clear()

void ProcessInstanceInfoMatch::Clear ( )

◆ GetMatchAllUsers()

bool lldb_private::ProcessInstanceInfoMatch::GetMatchAllUsers ( ) const

◆ GetNameMatchType()

NameMatch lldb_private::ProcessInstanceInfoMatch::GetNameMatchType ( ) const

◆ GetProcessInfo() [1/2]

ProcessInstanceInfo & lldb_private::ProcessInstanceInfoMatch::GetProcessInfo ( )

◆ GetProcessInfo() [2/2]

const ProcessInstanceInfo & lldb_private::ProcessInstanceInfoMatch::GetProcessInfo ( ) const

Definition at line 310 of file ProcessInfo.h.

References m_match_info.

◆ MatchAllProcesses()

bool ProcessInstanceInfoMatch::MatchAllProcesses ( ) const

◆ Matches()

bool ProcessInstanceInfoMatch::Matches ( const ProcessInstanceInfo proc_info) const

◆ NameMatches()

bool ProcessInstanceInfoMatch::NameMatches ( const char *  process_name) const

Return true iff the process name in this object matches process_name.

Definition at line 259 of file ProcessInfo.cpp.

References lldb_private::ProcessInfo::GetName(), lldb_private::Ignore, m_match_info, m_name_match_type, and lldb_private::NameMatches().

Referenced by Matches().

◆ ProcessIDsMatch()

bool ProcessInstanceInfoMatch::ProcessIDsMatch ( const ProcessInstanceInfo proc_info) const

Return true iff the process ID and parent process IDs in this object match the ones in proc_info.

Definition at line 269 of file ProcessInfo.cpp.

References lldb_private::ProcessInstanceInfo::GetParentProcessID(), lldb_private::ProcessInfo::GetProcessID(), m_match_info, lldb_private::ProcessInstanceInfo::ParentProcessIDIsValid(), and lldb_private::ProcessInfo::ProcessIDIsValid().

Referenced by Matches().

◆ SetMatchAllUsers()

void lldb_private::ProcessInstanceInfoMatch::SetMatchAllUsers ( bool  b)

◆ SetNameMatchType()

void lldb_private::ProcessInstanceInfoMatch::SetNameMatchType ( NameMatch  name_match_type)

◆ UserIDsMatch()

bool ProcessInstanceInfoMatch::UserIDsMatch ( const ProcessInstanceInfo proc_info) const

Member Data Documentation

◆ m_match_all_users

bool lldb_private::ProcessInstanceInfoMatch::m_match_all_users = false

Definition at line 344 of file ProcessInfo.h.

Referenced by Clear(), GetMatchAllUsers(), MatchAllProcesses(), and SetMatchAllUsers().

◆ m_match_info

ProcessInstanceInfo lldb_private::ProcessInstanceInfoMatch::m_match_info

◆ m_name_match_type

NameMatch lldb_private::ProcessInstanceInfoMatch::m_name_match_type = NameMatch::Ignore

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