LLVM API Documentation

llvm::AnnotationManager Struct Reference

#include <Annotation.h>

List of all members.

Public Types

typedef Annotation *(*) Factory (AnnotationID, const Annotable *, void *)

Static Public Member Functions

static AnnotationID getID (const std::string &Name)
static const std::string & getName (AnnotationID ID)
static AnnotationID getID (const std::string &Name, Factory Fact, void *Data=0)
static void registerAnnotationFactory (AnnotationID ID, Factory Func, void *ExtraData=0)
static AnnotationcreateAnnotation (AnnotationID ID, const Annotable *Obj)


Detailed Description

Definition at line 167 of file Annotation.h.


Member Typedef Documentation

typedef Annotation*(*) llvm::AnnotationManager::Factory(AnnotationID, const Annotable *, void *)

Definition at line 168 of file Annotation.h.


Member Function Documentation

AnnotationID AnnotationManager::getID ( const std::string &  Name  )  [static]

Definition at line 55 of file Annotation.cpp.

References getIDMap(), and IDCounter.

Referenced by getID().

const std::string & AnnotationManager::getName ( AnnotationID  ID  )  [static]

Definition at line 76 of file Annotation.cpp.

References getIDMap().

AnnotationID AnnotationManager::getID ( const std::string &  Name,
Factory  Fact,
void *  Data = 0 
) [static]

Definition at line 66 of file Annotation.cpp.

References getID(), and registerAnnotationFactory().

void AnnotationManager::registerAnnotationFactory ( AnnotationID  ID,
Factory  Func,
void *  ExtraData = 0 
) [static]

Definition at line 88 of file Annotation.cpp.

References eraseFromFactMap(), and getFactMap().

Referenced by getID().

Annotation * AnnotationManager::createAnnotation ( AnnotationID  ID,
const Annotable Obj 
) [static]

Definition at line 99 of file Annotation.cpp.

References getFactMap().

Referenced by llvm::Annotable::getOrCreateAnnotation().


The documentation for this struct was generated from the following files: