Bitcoin ABC 0.26.3
P2P Digital Currency
|
#include <net_permissions.h>
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. | |
Public Attributes | |
NetPermissionFlags | m_flags |
Definition at line 61 of file net_permissions.h.
|
inlinestatic |
Definition at line 69 of file net_permissions.h.
|
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 79 of file net_permissions.h.
|
inlinestatic |
Definition at line 65 of file net_permissions.h.
|
static |
Definition at line 123 of file net_permissions.cpp.
NetPermissionFlags NetPermissions::m_flags |
Definition at line 63 of file net_permissions.h.