MySQL 8.0.30
Source Code Documentation
PT_attribute< ATTRIBUTE, BASE > Class Template Reference

Generic attribute node that can be used with different base types and corresponding parse contexts. More...

Inheritance diagram for PT_attribute< ATTRIBUTE, BASE >:
[legend]

Public Member Functions

 PT_attribute (ATTRIBUTE a, CFP cfp)
 
bool contextualize (typename BASE::context_t *pc) override
 

Private Types

using CFP = bool(*)(ATTRIBUTE, typename BASE::context_t *)
 

Private Attributes

ATTRIBUTE m_attr
 
CFP m_cfp
 

Detailed Description

template<class ATTRIBUTE, class BASE>
class PT_attribute< ATTRIBUTE, BASE >

Generic attribute node that can be used with different base types and corresponding parse contexts.

CFP (Contextualizer Function Pointer) argument implements a suitable contextualize action in the given context. Value is typically a decayed captureless lambda.

Member Typedef Documentation

◆ CFP

template<class ATTRIBUTE , class BASE >
using PT_attribute< ATTRIBUTE, BASE >::CFP = bool (*)(ATTRIBUTE, typename BASE::context_t *)
private

Constructor & Destructor Documentation

◆ PT_attribute()

template<class ATTRIBUTE , class BASE >
PT_attribute< ATTRIBUTE, BASE >::PT_attribute ( ATTRIBUTE  a,
CFP  cfp 
)
inline

Member Function Documentation

◆ contextualize()

template<class ATTRIBUTE , class BASE >
bool PT_attribute< ATTRIBUTE, BASE >::contextualize ( typename BASE::context_t *  pc)
inlineoverride

Member Data Documentation

◆ m_attr

template<class ATTRIBUTE , class BASE >
ATTRIBUTE PT_attribute< ATTRIBUTE, BASE >::m_attr
private

◆ m_cfp

template<class ATTRIBUTE , class BASE >
CFP PT_attribute< ATTRIBUTE, BASE >::m_cfp
private

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