NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CTLibContextRegistry Class Reference

Search Toolkit Book for CTLibContextRegistry

+ Collaboration diagram for CTLibContextRegistry:

Public Member Functions

void Add (CTLibContext *ctx)
 
void Remove (CTLibContext *ctx)
 
void ClearAll (void)
 
bool ExitProcessIsPatched (void) const
 

Static Public Member Functions

static CTLibContextRegistryInstance (void)
 
static void StaticClearAll (void)
 

Private Member Functions

 CTLibContextRegistry (void)
 
 ~CTLibContextRegistry (void) throw ()
 

Private Attributes

CMutex m_Mutex
 
vector< CTLibContext * > m_Registry
 
bool m_ExitProcessPatched
 

Friends

class CSafeStatic_Allocator< CTLibContextRegistry >
 

Detailed Description

Definition at line 101 of file context.cpp.

Constructor & Destructor Documentation

◆ CTLibContextRegistry()

CTLibContextRegistry::CTLibContextRegistry ( void  )
private

◆ ~CTLibContextRegistry()

CTLibContextRegistry::~CTLibContextRegistry ( void  )
throw (
)
private

Definition at line 145 of file context.cpp.

References NCBI_CATCH_ALL_X, and NCBI_CURRENT_FUNCTION.

Member Function Documentation

◆ Add()

void CTLibContextRegistry::Add ( CTLibContext ctx)

Definition at line 162 of file context.cpp.

References ctx, m_Mutex, and m_Registry.

Referenced by CTLibContext::x_AddToRegistry().

◆ ClearAll()

void CTLibContextRegistry::ClearAll ( void  )

Definition at line 191 of file context.cpp.

References m_Mutex, m_Registry, and s_CTLCtxLock.

Referenced by StaticClearAll().

◆ ExitProcessIsPatched()

bool CTLibContextRegistry::ExitProcessIsPatched ( void  ) const
inline

Definition at line 111 of file context.cpp.

Referenced by CTLibContext::x_SafeToFinalize().

◆ Instance()

CTLibContextRegistry & CTLibContextRegistry::Instance ( void  )
static

Definition at line 154 of file context.cpp.

References CSafeStatic< T, Callbacks >::Get().

Referenced by CTLibContext::CTLibContext(), and StaticClearAll().

◆ Remove()

void CTLibContextRegistry::Remove ( CTLibContext ctx)

Definition at line 175 of file context.cpp.

References ctx, m_Mutex, m_Registry, and NULL.

Referenced by CTLibContext::x_RemoveFromRegistry().

◆ StaticClearAll()

void CTLibContextRegistry::StaticClearAll ( void  )
static

Definition at line 206 of file context.cpp.

References ClearAll(), and Instance().

Referenced by CTLibContextRegistry().

Friends And Related Function Documentation

◆ CSafeStatic_Allocator< CTLibContextRegistry >

Definition at line 122 of file context.cpp.

Member Data Documentation

◆ m_ExitProcessPatched

bool CTLibContextRegistry::m_ExitProcessPatched
private

Definition at line 122 of file context.cpp.

Referenced by CTLibContextRegistry().

◆ m_Mutex

CMutex CTLibContextRegistry::m_Mutex
mutableprivate

Definition at line 120 of file context.cpp.

Referenced by Add(), ClearAll(), and Remove().

◆ m_Registry

vector<CTLibContext*> CTLibContextRegistry::m_Registry
private

Definition at line 121 of file context.cpp.

Referenced by Add(), ClearAll(), and Remove().


The documentation for this class was generated from the following file:
Modified on Fri Sep 20 14:58:31 2024 by modify_doxy.py rev. 669887