MySQL 8.0.40
Source Code Documentation
keyring_common::data::Data_extension< Extension > Class Template Referencefinal

Data wrapper to include backend specific extensions. More...

#include <data_extension.h>

Inheritance diagram for keyring_common::data::Data_extension< Extension >:
[legend]

Public Member Functions

 Data_extension (const data::Data data, const Extension ext)
 Constructor. More...
 
 Data_extension ()
 
 Data_extension (const data::Data data)
 
 Data_extension (const Extension ext)
 
 Data_extension (const Data_extension &src)
 Copy constructor. More...
 
Data_extensionoperator= (const Data_extension &src)
 Assignment operator. More...
 
const data::Data get_data () const override
 Return self. More...
 
const Extension get_extension () const
 
void set_data (const data::Data &data) override
 Set data. More...
 
void set_extension (const Extension ext)
 
- Public Member Functions inherited from keyring_common::data::Data
 Data (const Sensitive_data data, Type type)
 Constructor to create a data object. More...
 
 Data ()
 
 Data (Type type)
 
 Data (const Data &src)
 Copy constructor. More...
 
 Data (Data &&src) noexcept
 Move constructor. More...
 
Dataoperator= (const Data &src)
 
Dataoperator= (Data &&src) noexcept
 
virtual ~Data ()
 Destructor. More...
 
Sensitive_data data () const
 Get data. More...
 
Type type () const
 Get data's type. More...
 
bool valid () const
 Status of object's validity. More...
 
void set_data (const Sensitive_data &data)
 Set data. More...
 
void set_type (Type type)
 Set type. More...
 
bool operator== (const Data &other)
 Comparison. More...
 

Private Attributes

Extension ext_
 Backend specific extensions. More...
 

Additional Inherited Members

- Protected Member Functions inherited from keyring_common::data::Data
void set_validity ()
 Set validity of the data object. More...
 
- Protected Attributes inherited from keyring_common::data::Data
Sensitive_data data_
 Sensitive data. More...
 
Type type_
 Data type. More...
 
bool valid_ {false}
 Validity of Data object. More...
 

Detailed Description

template<typename Extension>
class keyring_common::data::Data_extension< Extension >

Data wrapper to include backend specific extensions.

Constructor & Destructor Documentation

◆ Data_extension() [1/5]

template<typename Extension >
keyring_common::data::Data_extension< Extension >::Data_extension ( const data::Data  data,
const Extension  ext 
)
inline

Constructor.

◆ Data_extension() [2/5]

template<typename Extension >
keyring_common::data::Data_extension< Extension >::Data_extension ( )
inline

◆ Data_extension() [3/5]

template<typename Extension >
keyring_common::data::Data_extension< Extension >::Data_extension ( const data::Data  data)
inline

◆ Data_extension() [4/5]

template<typename Extension >
keyring_common::data::Data_extension< Extension >::Data_extension ( const Extension  ext)
inline

◆ Data_extension() [5/5]

template<typename Extension >
keyring_common::data::Data_extension< Extension >::Data_extension ( const Data_extension< Extension > &  src)
inline

Copy constructor.

Member Function Documentation

◆ get_data()

template<typename Extension >
const data::Data keyring_common::data::Data_extension< Extension >::get_data ( ) const
inlineoverridevirtual

Return self.

Reimplemented from keyring_common::data::Data.

◆ get_extension()

template<typename Extension >
const Extension keyring_common::data::Data_extension< Extension >::get_extension ( ) const
inline

◆ operator=()

template<typename Extension >
Data_extension & keyring_common::data::Data_extension< Extension >::operator= ( const Data_extension< Extension > &  src)
inline

Assignment operator.

◆ set_data()

template<typename Extension >
void keyring_common::data::Data_extension< Extension >::set_data ( const data::Data src)
inlineoverridevirtual

Set data.

Reimplemented from keyring_common::data::Data.

◆ set_extension()

template<typename Extension >
void keyring_common::data::Data_extension< Extension >::set_extension ( const Extension  ext)
inline

Member Data Documentation

◆ ext_

template<typename Extension >
Extension keyring_common::data::Data_extension< Extension >::ext_
private

Backend specific extensions.


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