LLDB  mainline
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
lldb_private::BreakpointName::Permissions Class Reference

#include <BreakpointName.h>

Collaboration diagram for lldb_private::BreakpointName::Permissions:
Collaboration graph
[legend]

Public Types

enum  PermissionKinds { listPerm = 0, disablePerm = 1, deletePerm = 2, allPerms = 3 }
 

Public Member Functions

 Permissions (bool in_list, bool in_disable, bool in_delete)
 
 Permissions (const Permissions &rhs)
 
 Permissions ()
 
const Permissionsoperator= (const Permissions &rhs)
 
void Clear ()
 
void MergeInto (const Permissions &incoming)
 
bool GetAllowList () const
 
bool SetAllowList (bool value)
 
bool GetAllowDelete () const
 
bool SetAllowDelete (bool value)
 
bool GetAllowDisable () const
 
bool SetAllowDisable (bool value)
 
bool GetPermission (enum PermissionKinds permission) const
 
bool GetDescription (Stream *s, lldb::DescriptionLevel level)
 
bool IsSet (enum PermissionKinds permission) const
 
bool AnySet ()
 

Private Member Functions

bool SetPermission (enum PermissionKinds permission, bool value)
 
void MergePermission (const Permissions &incoming, enum PermissionKinds permission)
 

Private Attributes

bool m_permissions [allPerms]
 
Flags m_set_mask
 

Static Private Attributes

static const Flags::ValueType permissions_mask [allPerms+1]
 

Detailed Description

Definition at line 32 of file BreakpointName.h.

Member Enumeration Documentation

◆ PermissionKinds

Enumerator
listPerm 
disablePerm 
deletePerm 
allPerms 

Definition at line 36 of file BreakpointName.h.

Constructor & Destructor Documentation

◆ Permissions() [1/3]

lldb_private::BreakpointName::Permissions::Permissions ( bool  in_list,
bool  in_disable,
bool  in_delete 
)
inline

◆ Permissions() [2/3]

lldb_private::BreakpointName::Permissions::Permissions ( const Permissions rhs)
inline

Definition at line 47 of file BreakpointName.h.

References deletePerm, disablePerm, listPerm, m_permissions, and m_set_mask.

◆ Permissions() [3/3]

lldb_private::BreakpointName::Permissions::Permissions ( )
inline

Definition at line 55 of file BreakpointName.h.

References lldb_private::Flags::Clear(), deletePerm, disablePerm, listPerm, m_permissions, and m_set_mask.

Referenced by Clear().

Member Function Documentation

◆ AnySet()

bool lldb_private::BreakpointName::Permissions::AnySet ( )
inline

◆ Clear()

void lldb_private::BreakpointName::Permissions::Clear ( )
inline

Definition at line 74 of file BreakpointName.h.

References Permissions().

◆ GetAllowDelete()

bool lldb_private::BreakpointName::Permissions::GetAllowDelete ( ) const
inline

◆ GetAllowDisable()

bool lldb_private::BreakpointName::Permissions::GetAllowDisable ( ) const
inline

◆ GetAllowList()

bool lldb_private::BreakpointName::Permissions::GetAllowList ( ) const
inline

◆ GetDescription()

bool BreakpointName::Permissions::GetDescription ( Stream s,
lldb::DescriptionLevel  level 
)

◆ GetPermission()

bool lldb_private::BreakpointName::Permissions::GetPermission ( enum PermissionKinds  permission) const
inline

Definition at line 97 of file BreakpointName.h.

References GetDescription(), and m_permissions.

Referenced by GetAllowDelete(), GetAllowDisable(), and GetAllowList().

◆ IsSet()

bool lldb_private::BreakpointName::Permissions::IsSet ( enum PermissionKinds  permission) const
inline

Definition at line 104 of file BreakpointName.h.

References m_set_mask, permissions_mask, and lldb_private::Flags::Test().

Referenced by MergePermission().

◆ MergeInto()

void lldb_private::BreakpointName::Permissions::MergeInto ( const Permissions incoming)
inline

◆ MergePermission()

void lldb_private::BreakpointName::Permissions::MergePermission ( const Permissions incoming,
enum PermissionKinds  permission 
)
inlineprivate

Definition at line 128 of file BreakpointName.h.

References IsSet(), m_permissions, and SetPermission().

Referenced by MergeInto().

◆ operator=()

const Permissions& lldb_private::BreakpointName::Permissions::operator= ( const Permissions rhs)
inline

Definition at line 63 of file BreakpointName.h.

References deletePerm, disablePerm, listPerm, m_permissions, and m_set_mask.

◆ SetAllowDelete()

bool lldb_private::BreakpointName::Permissions::SetAllowDelete ( bool  value)
inline

Definition at line 91 of file BreakpointName.h.

References deletePerm, and SetPermission().

Referenced by lldb::SBBreakpointName::SetAllowDelete().

◆ SetAllowDisable()

bool lldb_private::BreakpointName::Permissions::SetAllowDisable ( bool  value)
inline

Definition at line 94 of file BreakpointName.h.

References disablePerm, and SetPermission().

Referenced by lldb::SBBreakpointName::SetAllowDisable().

◆ SetAllowList()

bool lldb_private::BreakpointName::Permissions::SetAllowList ( bool  value)
inline

Definition at line 88 of file BreakpointName.h.

References listPerm, and SetPermission().

Referenced by lldb::SBBreakpointName::SetAllowList().

◆ SetPermission()

bool lldb_private::BreakpointName::Permissions::SetPermission ( enum PermissionKinds  permission,
bool  value 
)
inlineprivate

Member Data Documentation

◆ m_permissions

bool lldb_private::BreakpointName::Permissions::m_permissions[allPerms]
private

◆ m_set_mask

Flags lldb_private::BreakpointName::Permissions::m_set_mask
private

Definition at line 117 of file BreakpointName.h.

Referenced by AnySet(), IsSet(), operator=(), and Permissions().

◆ permissions_mask

const Flags::ValueType BreakpointName::Permissions::permissions_mask
staticprivate
Initial value:
= {
(1u << 0),
(1u << 1),
(1u << 2),
(0x5u)
}

Definition at line 114 of file BreakpointName.h.

Referenced by AnySet(), IsSet(), and Permissions().


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