hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::PermissionSet< Perm > Class Template Reference

#include "permissions.hpp"

Inheritance diagram for shared_model::interface::PermissionSet< Perm >:
Inheritance graph
Collaboration diagram for shared_model::interface::PermissionSet< Perm >:
Collaboration graph

Public Member Functions

 PermissionSet ()
 
 PermissionSet (std::initializer_list< Perm > list)
 
 PermissionSet (const std::string &bitstring)
 
std::string toBitstring () const
 
PermissionSetreset ()
 
PermissionSetset ()
 
PermissionSetset (Perm p)
 
PermissionSetunset (Perm p)
 
bool test (Perm p) const
 
bool none () const
 
bool isSubsetOf (const PermissionSet< Perm > &r) const
 
bool operator== (const PermissionSet< Perm > &r) const
 
bool operator!= (const PermissionSet< Perm > &r) const
 
PermissionSet< Perm > & operator&= (const PermissionSet< Perm > &r)
 
PermissionSet< Perm > & operator|= (const PermissionSet< Perm > &r)
 
PermissionSet< Perm > & operator^= (const PermissionSet< Perm > &r)
 
void iterate (std::function< void(Perm)> f) const
 

Static Public Member Functions

static size_t size ()
 

Constructor & Destructor Documentation

template<typename Perm >
PermissionSet::PermissionSet ( )
template<typename Perm >
PermissionSet::PermissionSet ( std::initializer_list< Perm >  list)
template<typename Perm >
PermissionSet::PermissionSet ( const std::string bitstring)
explicit

Member Function Documentation

template<typename Perm >
bool PermissionSet::isSubsetOf ( const PermissionSet< Perm > &  r) const
template<typename Perm >
void PermissionSet::iterate ( std::function< void(Perm)>  f) const

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Perm >
bool PermissionSet::none ( ) const
template<typename Perm >
bool PermissionSet::operator!= ( const PermissionSet< Perm > &  r) const
template<typename Perm >
PermissionSet< Perm > & PermissionSet::operator&= ( const PermissionSet< Perm > &  r)
template<typename Perm >
bool PermissionSet::operator== ( const PermissionSet< Perm > &  r) const
template<typename Perm >
PermissionSet< Perm > & PermissionSet::operator^= ( const PermissionSet< Perm > &  r)
template<typename Perm >
PermissionSet< Perm > & PermissionSet::operator|= ( const PermissionSet< Perm > &  r)
template<typename Perm >
PermissionSet< Perm > & PermissionSet::reset ( )
template<typename Perm >
PermissionSet< Perm > & PermissionSet::set ( )

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Perm >
PermissionSet< Perm > & PermissionSet::set ( Perm  p)

Here is the call graph for this function:

template<typename Perm >
size_t PermissionSet::size ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Perm >
bool PermissionSet::test ( Perm  p) const

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Perm >
std::string PermissionSet::toBitstring ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Perm >
PermissionSet< Perm > & PermissionSet::unset ( Perm  p)

Here is the call graph for this function:


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