MySQL  8.0.19
Source Code Documentation
Restrictions Class Reference

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

#include <partial_revokes.h>

Public Member Functions

 Restrictions (MEM_ROOT *mem_root)
 Constructor for Restrictions. More...
 
 Restrictions (const Restrictions &)
 Copy constructor for Restrictions. More...
 
 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 &, ulong)
 
 ~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 ( MEM_ROOT mem_root)
explicit

Constructor for Restrictions.

Parameters
[in]mem_rootMEM_ROOT to be used to store restrictions

◆ Restrictions() [2/3]

Restrictions::Restrictions ( const Restrictions restrictions)

Copy constructor for Restrictions.

Parameters
[in]restrictionsRestrictions to be copied

◆ Restrictions() [3/3]

Restrictions::Restrictions ( Restrictions &&  restrictions)

Move constructor for Restrictions.

Parameters
[in]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,
ulong  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: