MySQL 8.4.2
Source Code Documentation
Restrictions Class Reference

Container of all restrictions for a given user. More...

#include <partial_revokes.h>

Public Member Functions

 Restrictions ()
 Constructor for Restrictions. More...
 
 Restrictions (const Restrictions &)=default
 
 Restrictions (Restrictions &&)
 Move constructor for Restrictions. More...
 
Restrictionsoperator= (const Restrictions &)
 Assignment operator for Restrictions. More...
 
Restrictionsoperator= (Restrictions &&)
 Assignment operator for Restrictions. More...
 
bool has_more_db_restrictions (const Restrictions &, Access_bitmask)
 
 ~Restrictions ()
 Destructor. More...
 
const DB_restrictionsdb () const
 Get database restrictions. More...
 
void set_db (const DB_restrictions &db_restrictions)
 Set given database restrictions. More...
 
void clear_db ()
 Clear database restrictions. More...
 
bool is_empty () const
 Return if restrictions are empty or not. More...
 

Private Attributes

DB_restrictions m_db_restrictions
 Database restrictions. More...
 

Detailed Description

Container of all restrictions for a given user.

Each object created in the MEM_ROOT has to be destroyed manually. It will be the client's responsibility that create the objects.

Constructor & Destructor Documentation

◆ Restrictions() [1/3]

Restrictions::Restrictions ( )
explicit

Constructor for Restrictions.

◆ Restrictions() [2/3]

Restrictions::Restrictions ( const Restrictions )
default

◆ Restrictions() [3/3]

Restrictions::Restrictions ( Restrictions &&  restrictions)

Move constructor for Restrictions.

◆ ~Restrictions()

Restrictions::~Restrictions ( )

Destructor.

Member Function Documentation

◆ clear_db()

void Restrictions::clear_db ( )

Clear database restrictions.

◆ db()

const DB_restrictions & Restrictions::db ( ) const

Get database restrictions.

◆ has_more_db_restrictions()

bool Restrictions::has_more_db_restrictions ( const Restrictions other,
Access_bitmask  access 
)

◆ is_empty()

bool Restrictions::is_empty ( ) const

Return if restrictions are empty or not.

◆ operator=() [1/2]

Restrictions & Restrictions::operator= ( const Restrictions restrictions)

Assignment operator for Restrictions.

◆ operator=() [2/2]

Restrictions & Restrictions::operator= ( Restrictions &&  restrictions)

Assignment operator for Restrictions.

◆ set_db()

void Restrictions::set_db ( const DB_restrictions db_restrictions)

Set given database restrictions.

Member Data Documentation

◆ m_db_restrictions

DB_restrictions Restrictions::m_db_restrictions
private

Database restrictions.


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