Bitcoin ABC  0.29.2
P2P Digital Currency
Static Public Member Functions | Public Attributes | List of all members
NetPermissions Class Reference

#include <net_permissions.h>

Inheritance diagram for NetPermissions:
[legend]

Static Public Member Functions

static std::vector< std::string > ToStrings (NetPermissionFlags flags)
 
static bool HasFlag (NetPermissionFlags flags, NetPermissionFlags f)
 
static void AddFlag (NetPermissionFlags &flags, NetPermissionFlags f)
 
static void ClearFlag (NetPermissionFlags &flags, NetPermissionFlags f)
 ClearFlag is only called with f == NetPermissionFlags::Implicit. More...
 

Public Attributes

NetPermissionFlags m_flags
 

Detailed Description

Definition at line 55 of file net_permissions.h.

Member Function Documentation

◆ AddFlag()

static void NetPermissions::AddFlag ( NetPermissionFlags flags,
NetPermissionFlags  f 
)
inlinestatic

Definition at line 63 of file net_permissions.h.

Here is the caller graph for this function:

◆ ClearFlag()

static void NetPermissions::ClearFlag ( NetPermissionFlags flags,
NetPermissionFlags  f 
)
inlinestatic

ClearFlag is only called with f == NetPermissionFlags::Implicit.

If that should change in the future, be aware that ClearFlag should not be called with a subflag of a multiflag, e.g. NetPermissionFlags::Relayor NetPermissionFlags::Download, as that would leave flags in an invalid state corresponding to none of the existing flags.

Definition at line 73 of file net_permissions.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HasFlag()

static bool NetPermissions::HasFlag ( NetPermissionFlags  flags,
NetPermissionFlags  f 
)
inlinestatic

Definition at line 59 of file net_permissions.h.

Here is the caller graph for this function:

◆ ToStrings()

std::vector< std::string > NetPermissions::ToStrings ( NetPermissionFlags  flags)
static

Definition at line 98 of file net_permissions.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_flags

NetPermissionFlags NetPermissions::m_flags

Definition at line 57 of file net_permissions.h.


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