Skip to content

NameQualificationContext

Synopsis

Declared in <src/backend/unparser/languageIndependenceSupport/name_qualification_support.h>

class NameQualificationContext;

Member Functions

Name Description
NameQualificationContext
NameQualificationContext() = default; [constructor]
Extend the records of base, which this context never modifies.
operator=
NameQualificationContext& operator=(NameQualificationContext const& other) = delete; [deleted]
Copy assignment operator
clear
void clear();
Remove the records this context added; a base is unaffected.
contains
bool contains( SgNode const* node, SgStatement const* useSiteStatement) const;
containsName
bool containsName( SgNode const* node, SgStatement const* useSiteStatement) const;
containsPointerMemberBase
bool containsPointerMemberBase( SgNode const* node, SgStatement const* useSiteStatement) const;
containsType
bool containsType( SgNode const* node, SgStatement const* useSiteStatement) const;
lookup
NameQualificationResult lookup( SgNode const* node, SgStatement const* useSiteStatement) const;
lookupName
NameQualificationResult lookupName( SgNode const* node, SgStatement const* useSiteStatement) const;
lookupPointerMemberBase
NameQualificationResult lookupPointerMemberBase( SgNode const* node, SgStatement const* useSiteStatement) const;
lookupType
NameQualificationResult lookupType( SgNode const* node, SgStatement const* useSiteStatement) const;
record
void record( SgNode const* node, SgStatement const* useSiteStatement, NameQualificationResult const& result);
recordName
void recordName( SgNode const* node, SgStatement const* useSiteStatement, NameQualificationResult const& result);
recordPointerMemberBase
void recordPointerMemberBase( SgNode const* node, SgStatement const* useSiteStatement, NameQualificationResult const& result);
recordType
void recordType( SgNode const* node, SgStatement const* useSiteStatement, NameQualificationResult const& result);
requireSameRecords
void requireSameRecords(NameQualificationContext const& expected) const;
Abort unless this context holds exactly the records of expected.

Private Type Aliases

Name
Channel
ChannelMember
Key

Private Member Functions

Name
find
NameQualificationResult const* find( ChannelMember channel, Key const& key) const;
forEachRecord
template<typename Visit> void forEachRecord( ChannelMember channel, Visit&& visit) const;
lookupChannel
NameQualificationResult lookupChannel( ChannelMember channel, char const* channelName, SgNode const* node, SgStatement const* useSiteStatement) const;
recordChannel
void recordChannel( ChannelMember channel, char const* channelName, SgNode const* node, SgStatement const* useSiteStatement, NameQualificationResult const& result);
requireSameChannel
void requireSameChannel( ChannelMember channel, char const* channelName, NameQualificationContext const& expected) const;

Private Data Members

Name
base
nameChannelQualifications
pointerMemberBaseQualifications
qualifications
typeChannelQualifications

Created with MrDocs