PDI 0.5.1

Data exchange made easy

PDI::Ref_base Class Reference

A common base for all references, whatever their access privileges in order to ensure they share the same Data_content and can access each others. More...

Inheritance diagram for PDI::Ref_base:
Inheritance graph

Classes

struct  Referenced
 Manipulate and grant access to a buffer depending on the remaining right access (read/write). More...
 

Public Member Functions

const Datatypetype () const noexcept
 accesses the type of the referenced raw data More...
 
size_t hash () const noexcept
 

Protected Member Functions

 Ref_base () noexcept
 Constructs a null reference. More...
 
 Ref_base (const Ref_base &)=delete
 
 Ref_base (Ref_base &&)=delete
 
Ref_baseoperator= (const Ref_base &)=delete
 
Ref_baseoperator= (Ref_base &&)=delete
 

Static Protected Member Functions

static Referencedget_content (const Ref_base &other) noexcept
 Function to access the content from a reference with different access right. More...
 
static Ref do_copy (Ref_r ref)
 

Protected Attributes

Referencedm_content
 Pointer on the data content, can be null if the ref is null. More...
 

Detailed Description

A common base for all references, whatever their access privileges in order to ensure they share the same Data_content and can access each others.

Constructor & Destructor Documentation

◆ Ref_base() [1/3]

PDI::Ref_base::Ref_base ( )
inlineprotectednoexcept

Constructs a null reference.

◆ Ref_base() [2/3]

PDI::Ref_base::Ref_base ( const Ref_base )
protecteddelete

◆ Ref_base() [3/3]

PDI::Ref_base::Ref_base ( Ref_base &&  )
protecteddelete

Member Function Documentation

◆ get_content()

static Referenced* PDI::Ref_base::get_content ( const Ref_base other)
inlinestaticprotectednoexcept

Function to access the content from a reference with different access right.

◆ do_copy()

static Ref PDI::Ref_base::do_copy ( Ref_r  ref)
staticprotected

◆ operator=() [1/2]

Ref_base& PDI::Ref_base::operator= ( const Ref_base )
protecteddelete

◆ operator=() [2/2]

Ref_base& PDI::Ref_base::operator= ( Ref_base &&  )
protecteddelete

◆ type()

const Datatype& PDI::Ref_base::type ( ) const
noexcept

accesses the type of the referenced raw data

◆ hash()

size_t PDI::Ref_base::hash ( ) const
inlinenoexcept

Member Data Documentation

◆ m_content

Referenced* PDI::Ref_base::m_content
mutableprotected

Pointer on the data content, can be null if the ref is null.


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