LLVM  8.0.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
llvm::ManagedStaticBase Class Reference

ManagedStaticBase - Common base class for ManagedStatic instances. More...

#include "llvm/Support/ManagedStatic.h"

Inheritance diagram for llvm::ManagedStaticBase:
Inheritance graph
[legend]
Collaboration diagram for llvm::ManagedStaticBase:
Collaboration graph
[legend]

Public Member Functions

bool isConstructed () const
 isConstructed - Return true if this object has not been created yet. More...
 
void destroy () const
 

Protected Member Functions

void RegisterManagedStatic (void *(*creator)(), void(*deleter)(void *)) const
 

Protected Attributes

std::atomic< void * > Ptr
 
void(* DeleterFn )(void *)
 
const ManagedStaticBaseNext
 

Detailed Description

ManagedStaticBase - Common base class for ManagedStatic instances.

Definition at line 37 of file ManagedStatic.h.

Member Function Documentation

◆ destroy()

void ManagedStaticBase::destroy ( ) const

Definition at line 63 of file ManagedStatic.cpp.

References assert(), DeleterFn, Next, and Ptr.

Referenced by llvm::llvm_shutdown().

◆ isConstructed()

bool llvm::ManagedStaticBase::isConstructed ( ) const
inline

isConstructed - Return true if this object has not been created yet.

Definition at line 49 of file ManagedStatic.h.

Referenced by llvm::PluginLoader::getNumPlugins(), and llvm::PluginLoader::getPlugin().

◆ RegisterManagedStatic()

void ManagedStaticBase::RegisterManagedStatic ( void *(*)()  creator,
void(*)(void *)  deleter 
) const
protected

Member Data Documentation

◆ DeleterFn

void(* llvm::ManagedStaticBase::DeleterFn) (void *)
mutableprotected

Definition at line 42 of file ManagedStatic.h.

Referenced by destroy(), and RegisterManagedStatic().

◆ Next

const ManagedStaticBase* llvm::ManagedStaticBase::Next
mutableprotected

Definition at line 43 of file ManagedStatic.h.

Referenced by destroy(), and RegisterManagedStatic().

◆ Ptr

std::atomic<void *> llvm::ManagedStaticBase::Ptr
mutableprotected

Definition at line 41 of file ManagedStatic.h.

Referenced by destroy(), and RegisterManagedStatic().


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