class OMPDeclareMapperDecl

Declaration

class OMPDeclareMapperDecl : public OMPDeclarativeDirective,
                             public DeclContext { /* full declaration omitted */ };

Description

This represents '#pragma omp declare mapper ...' directive. Map clauses are allowed to use with this directive. The following example declares a user defined mapper for the type 'struct vec'. This example instructs the fields 'len' and 'data' should be mapped when mapping instances of 'struct vec'.

Declared at: clang/include/clang/AST/DeclOpenMP.h:286

Inherits from: OMPDeclarativeDirective, DeclContext

Member Variables

private clang::Expr* MapperVarRef = nullptr
Mapper variable, which is 'v' in the example above
private clang::DeclarationName VarName
Name of the mapper variable
private clang::LazyDeclPtr PrevDeclInScope

Inherited from DeclContext:

protected
protected FirstDecl = nullptr
protected LastDecl = nullptr

Method Overview

  • public static clang::OMPDeclareMapperDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation L, clang::DeclarationName Name, clang::QualType T, clang::DeclarationName VarName, ArrayRef<clang::OMPClause *> Clauses, clang::OMPDeclareMapperDecl * PrevDeclInScope)
  • public static clang::OMPDeclareMapperDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID, unsigned int N)
  • private OMPDeclareMapperDecl(clang::DeclContext * DC, clang::SourceLocation L, clang::DeclarationName Name, clang::QualType Ty, clang::DeclarationName VarName, clang::OMPDeclareMapperDecl * PrevDeclInScope)
  • private void anchor()
  • public static clang::OMPDeclareMapperDecl * castFromDeclContext(const clang::DeclContext * DC)
  • public static clang::DeclContext * castToDeclContext(const clang::OMPDeclareMapperDecl * D)
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public clang::OMPDeclareMapperDecl::clauselist_iterator clauselist_begin()
  • public clang::OMPDeclareMapperDecl::clauselist_const_iterator clauselist_begin() const
  • public bool clauselist_empty() const
  • public clang::OMPDeclareMapperDecl::clauselist_iterator clauselist_end()
  • public clang::OMPDeclareMapperDecl::clauselist_const_iterator clauselist_end() const
  • public unsigned int clauselist_size() const
  • public clang::OMPDeclareMapperDecl::clauselist_range clauselists()
  • public clang::OMPDeclareMapperDecl::clauselist_const_range clauselists() const
  • public const clang::Expr * getMapperVarRef() const
  • public clang::Expr * getMapperVarRef()
  • public clang::OMPDeclareMapperDecl * getPrevDeclInScope()
  • public const clang::OMPDeclareMapperDecl * getPrevDeclInScope() const
  • public clang::DeclarationName getVarName()
  • public void setMapperVarRef(clang::Expr * MapperVarRefE)
  • private void setPrevDeclInScope(clang::OMPDeclareMapperDecl * Prev)

Inherited from DeclContext:

Methods

static clang::OMPDeclareMapperDecl* Create(
    clang::ASTContext& C,
    clang::DeclContext* DC,
    clang::SourceLocation L,
    clang::DeclarationName Name,
    clang::QualType T,
    clang::DeclarationName VarName,
    ArrayRef<clang::OMPClause*> Clauses,
    clang::OMPDeclareMapperDecl* PrevDeclInScope)

Description

Creates declare mapper node.

Declared at: clang/include/clang/AST/DeclOpenMP.h:315

Parameters

clang::ASTContext& C
clang::DeclContext* DC
clang::SourceLocation L
clang::DeclarationName Name
clang::QualType T
clang::DeclarationName VarName
ArrayRef<clang::OMPClause*> Clauses
clang::OMPDeclareMapperDecl* PrevDeclInScope

static clang::OMPDeclareMapperDecl*
CreateDeserialized(clang::ASTContext& C,
                   unsigned int ID,
                   unsigned int N)

Description

Creates deserialized declare mapper node.

Declared at: clang/include/clang/AST/DeclOpenMP.h:321

Parameters

clang::ASTContext& C
unsigned int ID
unsigned int N

OMPDeclareMapperDecl(
    clang::DeclContext* DC,
    clang::SourceLocation L,
    clang::DeclarationName Name,
    clang::QualType Ty,
    clang::DeclarationName VarName,
    clang::OMPDeclareMapperDecl* PrevDeclInScope)

Declared at: clang/include/clang/AST/DeclOpenMP.h:302

Parameters

clang::DeclContext* DC
clang::SourceLocation L
clang::DeclarationName Name
clang::QualType Ty
clang::DeclarationName VarName
clang::OMPDeclareMapperDecl* PrevDeclInScope

void anchor()

Declared at: clang/include/clang/AST/DeclOpenMP.h:300

static clang::OMPDeclareMapperDecl*
castFromDeclContext(const clang::DeclContext* DC)

Declared at: clang/include/clang/AST/DeclOpenMP.h:371

Parameters

const clang::DeclContext* DC

static clang::DeclContext* castToDeclContext(
    const clang::OMPDeclareMapperDecl* D)

Declared at: clang/include/clang/AST/DeclOpenMP.h:368

Parameters

const clang::OMPDeclareMapperDecl* D

static bool classof(const clang::Decl* D)

Declared at: clang/include/clang/AST/DeclOpenMP.h:366

Parameters

const clang::Decl* D

static bool classofKind(clang::Decl::Kind K)

Declared at: clang/include/clang/AST/DeclOpenMP.h:367

Parameters

clang::Decl::Kind K

clang::OMPDeclareMapperDecl::clauselist_iterator
clauselist_begin()

Declared at: clang/include/clang/AST/DeclOpenMP.h:339

clang::OMPDeclareMapperDecl::
    clauselist_const_iterator
    clauselist_begin() const

Declared at: clang/include/clang/AST/DeclOpenMP.h:341

bool clauselist_empty() const

Declared at: clang/include/clang/AST/DeclOpenMP.h:331

clang::OMPDeclareMapperDecl::clauselist_iterator
clauselist_end()

Declared at: clang/include/clang/AST/DeclOpenMP.h:340

clang::OMPDeclareMapperDecl::
    clauselist_const_iterator
    clauselist_end() const

Declared at: clang/include/clang/AST/DeclOpenMP.h:344

unsigned int clauselist_size() const

Declared at: clang/include/clang/AST/DeclOpenMP.h:330

clang::OMPDeclareMapperDecl::clauselist_range
clauselists()

Declared at: clang/include/clang/AST/DeclOpenMP.h:333

clang::OMPDeclareMapperDecl::
    clauselist_const_range
    clauselists() const

Declared at: clang/include/clang/AST/DeclOpenMP.h:336

const clang::Expr* getMapperVarRef() const

Declared at: clang/include/clang/AST/DeclOpenMP.h:350

clang::Expr* getMapperVarRef()

Description

Get the variable declared in the mapper

Declared at: clang/include/clang/AST/DeclOpenMP.h:349

clang::OMPDeclareMapperDecl* getPrevDeclInScope()

Description

Get reference to previous declare mapper construct in the same scope with the same name.

Declared at: clang/include/clang/AST/DeclOpenMP.h:363

const clang::OMPDeclareMapperDecl*
getPrevDeclInScope() const

Declared at: clang/include/clang/AST/DeclOpenMP.h:364

clang::DeclarationName getVarName()

Description

Get the name of the variable declared in the mapper

Declared at: clang/include/clang/AST/DeclOpenMP.h:359

void setMapperVarRef(clang::Expr* MapperVarRefE)

Description

Set the variable declared in the mapper

Declared at: clang/include/clang/AST/DeclOpenMP.h:354

Parameters

clang::Expr* MapperVarRefE

void setPrevDeclInScope(
    clang::OMPDeclareMapperDecl* Prev)

Declared at: clang/include/clang/AST/DeclOpenMP.h:309

Parameters

clang::OMPDeclareMapperDecl* Prev