clang  3.7.0
Public Types | Public Member Functions | Protected Member Functions | Friends | List of all members
clang::OMPVarListClause< T > Class Template Reference

This represents clauses with the list of variables like 'private', 'firstprivate', 'copyin', 'shared', or 'reduction' clauses in the '#pragma omp ...' directives. More...

#include <OpenMPClause.h>

Inheritance diagram for clang::OMPVarListClause< T >:
[legend]
Collaboration diagram for clang::OMPVarListClause< T >:
[legend]

Public Types

typedef MutableArrayRef< Expr * >
::iterator 
varlist_iterator
 
typedef ArrayRef< const Expr * >
::iterator 
varlist_const_iterator
 
typedef llvm::iterator_range
< varlist_iterator
varlist_range
 
typedef llvm::iterator_range
< varlist_const_iterator
varlist_const_range
 

Public Member Functions

unsigned varlist_size () const
 
bool varlist_empty () const
 
varlist_range varlists ()
 
varlist_const_range varlists () const
 
varlist_iterator varlist_begin ()
 
varlist_iterator varlist_end ()
 
varlist_const_iterator varlist_begin () const
 
varlist_const_iterator varlist_end () const
 
void setLParenLoc (SourceLocation Loc)
 Sets the location of '('. More...
 
SourceLocation getLParenLoc () const
 Returns the location of '('. More...
 
ArrayRef< const Expr * > getVarRefs () const
 Fetches list of all variables in the clause. More...
 
- Public Member Functions inherited from clang::OMPClause
SourceLocation getLocStart () const
 Returns the starting location of the clause. More...
 
SourceLocation getLocEnd () const
 Returns the ending location of the clause. More...
 
void setLocStart (SourceLocation Loc)
 Sets the starting location of the clause. More...
 
void setLocEnd (SourceLocation Loc)
 Sets the ending location of the clause. More...
 
OpenMPClauseKind getClauseKind () const
 Returns kind of OpenMP clause (private, shared, reduction, etc.). More...
 
bool isImplicit () const
 
StmtRange children ()
 
ConstStmtRange children () const
 

Protected Member Functions

MutableArrayRef< Expr * > getVarRefs ()
 Fetches list of variables associated with this clause. More...
 
void setVarRefs (ArrayRef< Expr * > VL)
 Sets the list of variables for this clause. More...
 
 OMPVarListClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation LParenLoc, SourceLocation EndLoc, unsigned N)
 Build a clause with N variables. More...
 
- Protected Member Functions inherited from clang::OMPClause
 OMPClause (OpenMPClauseKind K, SourceLocation StartLoc, SourceLocation EndLoc)
 

Friends

class OMPClauseReader
 

Additional Inherited Members

- Static Public Member Functions inherited from clang::OMPClause
static bool classof (const OMPClause *)
 

Detailed Description

template<class T>
class clang::OMPVarListClause< T >

This represents clauses with the list of variables like 'private', 'firstprivate', 'copyin', 'shared', or 'reduction' clauses in the '#pragma omp ...' directives.

Definition at line 70 of file OpenMPClause.h.

Member Typedef Documentation

template<class T>
typedef ArrayRef<const Expr *>::iterator clang::OMPVarListClause< T >::varlist_const_iterator

Definition at line 112 of file OpenMPClause.h.

template<class T>
typedef llvm::iterator_range<varlist_const_iterator> clang::OMPVarListClause< T >::varlist_const_range

Definition at line 114 of file OpenMPClause.h.

template<class T>
typedef MutableArrayRef<Expr *>::iterator clang::OMPVarListClause< T >::varlist_iterator

Definition at line 111 of file OpenMPClause.h.

template<class T>
typedef llvm::iterator_range<varlist_iterator> clang::OMPVarListClause< T >::varlist_range

Definition at line 113 of file OpenMPClause.h.

Constructor & Destructor Documentation

template<class T>
clang::OMPVarListClause< T >::OMPVarListClause ( OpenMPClauseKind  K,
SourceLocation  StartLoc,
SourceLocation  LParenLoc,
SourceLocation  EndLoc,
unsigned  N 
)
inlineprotected

Build a clause with N variables.

Parameters
KKind of the clause.
StartLocStarting location of the clause (the clause keyword).
LParenLocLocation of '('.
EndLocEnding location of the clause.
NNumber of the variables in the clause.

Definition at line 106 of file OpenMPClause.h.

Member Function Documentation

template<class T>
SourceLocation clang::OMPVarListClause< T >::getLParenLoc ( ) const
inline

Returns the location of '('.

Definition at line 134 of file OpenMPClause.h.

template<class T>
MutableArrayRef<Expr *> clang::OMPVarListClause< T >::getVarRefs ( )
inlineprotected

Fetches list of variables associated with this clause.

Definition at line 79 of file OpenMPClause.h.

Referenced by clang::OMPVarListClause< OMPLinearClause >::varlist_begin(), and clang::OMPVarListClause< OMPLinearClause >::varlist_end().

template<class T>
ArrayRef<const Expr *> clang::OMPVarListClause< T >::getVarRefs ( ) const
inline

Fetches list of all variables in the clause.

Definition at line 137 of file OpenMPClause.h.

template<class T>
void clang::OMPVarListClause< T >::setLParenLoc ( SourceLocation  Loc)
inline

Sets the location of '('.

Definition at line 132 of file OpenMPClause.h.

template<class T>
void clang::OMPVarListClause< T >::setVarRefs ( ArrayRef< Expr * >  VL)
inlineprotected
template<class T>
varlist_iterator clang::OMPVarListClause< T >::varlist_begin ( )
inline
template<class T>
varlist_const_iterator clang::OMPVarListClause< T >::varlist_begin ( ) const
inline

Definition at line 128 of file OpenMPClause.h.

template<class T>
bool clang::OMPVarListClause< T >::varlist_empty ( ) const
inline

Definition at line 117 of file OpenMPClause.h.

template<class T>
varlist_iterator clang::OMPVarListClause< T >::varlist_end ( )
inline
template<class T>
varlist_const_iterator clang::OMPVarListClause< T >::varlist_end ( ) const
inline

Definition at line 129 of file OpenMPClause.h.

template<class T>
unsigned clang::OMPVarListClause< T >::varlist_size ( ) const
inline

Definition at line 116 of file OpenMPClause.h.

template<class T>
varlist_range clang::OMPVarListClause< T >::varlists ( )
inline

Definition at line 119 of file OpenMPClause.h.

Referenced by FinishOpenMPLinearClause().

template<class T>
varlist_const_range clang::OMPVarListClause< T >::varlists ( ) const
inline

Definition at line 122 of file OpenMPClause.h.

Friends And Related Function Documentation

template<class T>
friend class OMPClauseReader
friend

Definition at line 71 of file OpenMPClause.h.


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