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>

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

Definition at line 109 of file BreakpointName.h.

References allPerms, lldb_private::Flags::AnySet(), m_set_mask, and permissions_mask.

Referenced by GetDescription().

◆ 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

◆ 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 GetDescription(), and 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

◆ SetAllowDisable()

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

◆ SetAllowList()

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

◆ 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=(), Permissions(), and SetPermission().

◆ 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(), Permissions(), and SetPermission().


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