clang 23.0.0git
OMPClauseMappableExprCommon::MappableComponent Class Reference

Class that represents a component of a mappable expression. E.g. for an expression S.a, the first component is a declaration reference expression associated with 'S' and the second is a member expression associated with the field declaration 'a'. If the expression is an array subscript it may not have any associated declaration. In that case the associated declaration is set to nullptr. More...

#include "clang/AST/OpenMPClause.h"

Public Member Functions

 MappableComponent ()=default
 MappableComponent (Expr *AssociatedExpression, ValueDecl *AssociatedDeclaration, bool IsNonContiguous)
Expr * getAssociatedExpression () const
bool isNonContiguous () const
ValueDecl * getAssociatedDeclaration () const
bool operator== (const MappableComponent &Other) const

Detailed Description

Class that represents a component of a mappable expression. E.g. for an expression S.a, the first component is a declaration reference expression associated with 'S' and the second is a member expression associated with the field declaration 'a'. If the expression is an array subscript it may not have any associated declaration. In that case the associated declaration is set to nullptr.

Definition at line 5883 of file OpenMPClause.h.

Constructor & Destructor Documentation

◆ MappableComponent() [1/2]

OMPClauseMappableExprCommon::MappableComponent::MappableComponent ( )
explicitdefault

Referenced by operator==().

◆ MappableComponent() [2/2]

OMPClauseMappableExprCommon::MappableComponent::MappableComponent ( Expr * AssociatedExpression,
ValueDecl * AssociatedDeclaration,
bool IsNonContiguous )
inlineexplicit

Definition at line 5895 of file OpenMPClause.h.

References getCanonicalDecl().

Member Function Documentation

◆ getAssociatedDeclaration()

ValueDecl * OMPClauseMappableExprCommon::MappableComponent::getAssociatedDeclaration ( ) const
inline

Definition at line 5913 of file OpenMPClause.h.

Referenced by OMPClauseMappableExprCommon::hash_value.

◆ getAssociatedExpression()

Expr * OMPClauseMappableExprCommon::MappableComponent::getAssociatedExpression ( ) const
inline

Definition at line 5905 of file OpenMPClause.h.

Referenced by OMPClauseMappableExprCommon::hash_value.

◆ isNonContiguous()

bool OMPClauseMappableExprCommon::MappableComponent::isNonContiguous ( ) const
inline

Definition at line 5909 of file OpenMPClause.h.

Referenced by OMPClauseMappableExprCommon::hash_value.

◆ operator==()

bool OMPClauseMappableExprCommon::MappableComponent::operator== ( const MappableComponent & Other) const
inline

Definition at line 5917 of file OpenMPClause.h.

References MappableComponent().


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