clang  3.9.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::DeclGroupRef Class Reference

#include <DeclGroup.h>

Public Types

typedef Decl ** iterator
 
typedef Decl *const * const_iterator
 

Public Member Functions

 DeclGroupRef ()
 
 DeclGroupRef (Decl *d)
 
 DeclGroupRef (DeclGroup *dg)
 
bool isNull () const
 
bool isSingleDecl () const
 
bool isDeclGroup () const
 
DeclgetSingleDecl ()
 
const DeclgetSingleDecl () const
 
DeclGroupgetDeclGroup ()
 
const DeclGroupgetDeclGroup () const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
void * getAsOpaquePtr () const
 

Static Public Member Functions

static DeclGroupRef Create (ASTContext &C, Decl **Decls, unsigned NumDecls)
 
static DeclGroupRef getFromOpaquePtr (void *Ptr)
 

Detailed Description

Definition at line 54 of file DeclGroup.h.

Member Typedef Documentation

Definition at line 80 of file DeclGroup.h.

Definition at line 79 of file DeclGroup.h.

Constructor & Destructor Documentation

clang::DeclGroupRef::DeclGroupRef ( )
inline

Definition at line 65 of file DeclGroup.h.

Referenced by Create().

clang::DeclGroupRef::DeclGroupRef ( Decl d)
inlineexplicit

Definition at line 67 of file DeclGroup.h.

clang::DeclGroupRef::DeclGroupRef ( DeclGroup dg)
inlineexplicit

Definition at line 68 of file DeclGroup.h.

Member Function Documentation

iterator clang::DeclGroupRef::begin ( )
inline
const_iterator clang::DeclGroupRef::begin ( ) const
inline

Definition at line 115 of file DeclGroup.h.

References getDeclGroup(), and isSingleDecl().

static DeclGroupRef clang::DeclGroupRef::Create ( ASTContext C,
Decl **  Decls,
unsigned  NumDecls 
)
inlinestatic
iterator clang::DeclGroupRef::end ( )
inline
const_iterator clang::DeclGroupRef::end ( ) const
inline

Definition at line 121 of file DeclGroup.h.

References getDeclGroup(), isSingleDecl(), and clang::DeclGroup::size().

void* clang::DeclGroupRef::getAsOpaquePtr ( ) const
inline
DeclGroup& clang::DeclGroupRef::getDeclGroup ( )
inline

Definition at line 94 of file DeclGroup.h.

References isDeclGroup().

Referenced by begin(), end(), and getDeclGroup().

const DeclGroup& clang::DeclGroupRef::getDeclGroup ( ) const
inline

Definition at line 98 of file DeclGroup.h.

References getDeclGroup().

static DeclGroupRef clang::DeclGroupRef::getFromOpaquePtr ( void *  Ptr)
inlinestatic

Definition at line 129 of file DeclGroup.h.

References X.

Referenced by llvm::PointerLikeTypeTraits< clang::DeclGroupRef >::getFromVoidPointer().

Decl* clang::DeclGroupRef::getSingleDecl ( )
inline

Definition at line 86 of file DeclGroup.h.

References isSingleDecl().

Referenced by clang::Sema::ActOnForEachDeclStmt(), and getSingleDecl().

const Decl* clang::DeclGroupRef::getSingleDecl ( ) const
inline

Definition at line 90 of file DeclGroup.h.

References getSingleDecl().

bool clang::DeclGroupRef::isDeclGroup ( ) const
inline

Definition at line 84 of file DeclGroup.h.

Referenced by getDeclGroup().

bool clang::DeclGroupRef::isNull ( ) const
inline
bool clang::DeclGroupRef::isSingleDecl ( ) const
inline

Definition at line 83 of file DeclGroup.h.

Referenced by clang::Sema::ActOnForEachDeclStmt(), begin(), end(), and getSingleDecl().


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