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

#include <ProcessInfo.h>

Collaboration diagram for lldb_private::ProcessInstanceInfoMatch:
Collaboration graph
[legend]

Public Member Functions

 ProcessInstanceInfoMatch ()
 
 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. More...
 
bool NameMatches (const char *process_name) const
 Return true iff the process name in this object matches process_name. More...
 
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. More...
 
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. More...
 
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 163 of file ProcessInfo.h.

Constructor & Destructor Documentation

◆ ProcessInstanceInfoMatch() [1/2]

lldb_private::ProcessInstanceInfoMatch::ProcessInstanceInfoMatch ( )
inline

Definition at line 165 of file ProcessInfo.h.

◆ ProcessInstanceInfoMatch() [2/2]

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

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 245 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
inline

◆ GetNameMatchType()

NameMatch lldb_private::ProcessInstanceInfoMatch::GetNameMatchType ( ) const
inline

◆ GetProcessInfo() [1/2]

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

◆ GetProcessInfo() [2/2]

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

Definition at line 177 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 251 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 261 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)
inline

◆ SetNameMatchType()

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

◆ 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
protected

Definition at line 211 of file ProcessInfo.h.

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

◆ m_match_info

ProcessInstanceInfo lldb_private::ProcessInstanceInfoMatch::m_match_info
protected

◆ m_name_match_type

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

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