NCBI C++ ToolKit
Functions | Variables
static_set.cpp File Reference
#include <ncbi_pch.hpp>
#include <util/static_set.hpp>
#include <corelib/ncbi_param.hpp>
#include <corelib/ncbi_stack.hpp>
+ Include dependency graph for static_set.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

 NCBI_PARAM_DEF_EX (bool, NCBI, STATIC_ARRAY_COPY_WARNING, false, eParam_NoThread, NCBI_STATIC_ARRAY_COPY_WARNING)
 
 NCBI_PARAM_DEF_EX (bool, NCBI, STATIC_ARRAY_UNSAFE_TYPE_WARNING, true, eParam_NoThread, NCBI_STATIC_ARRAY_UNSAFE_TYPE_WARNING)
 
 BEGIN_NAMESPACE (NStaticArray)
 
 DEFINE_CLASS_STATIC_FAST_MUTEX (IObjectConverter::sx_InitMutex)
 
void ReportUnsafeStaticType (const char *type_name, const char *file, int line)
 Log error message about non-MT-safe static type (string, pair<>) if it's configured by TParamStaticArrayUnsafeTypeWarning parameter. More...
 
void ReportIncorrectOrder (size_t curr_index, const char *file, int line)
 Log error message about wrong order of elements in array and abort. More...
 
 END_NAMESPACE (NStaticArray)
 

Variables

 BEGIN_NCBI_NAMESPACE
 
 END_NCBI_NAMESPACE
 

Function Documentation

◆ BEGIN_NAMESPACE()

BEGIN_NAMESPACE ( NStaticArray  )

◆ DEFINE_CLASS_STATIC_FAST_MUTEX()

DEFINE_CLASS_STATIC_FAST_MUTEX ( IObjectConverter::sx_InitMutex  )

◆ END_NAMESPACE()

END_NAMESPACE ( NStaticArray  )

◆ NCBI_PARAM_DEF_EX() [1/2]

NCBI_PARAM_DEF_EX ( bool  ,
NCBI  ,
STATIC_ARRAY_COPY_WARNING  ,
false  ,
eParam_NoThread  ,
NCBI_STATIC_ARRAY_COPY_WARNING   
)

◆ NCBI_PARAM_DEF_EX() [2/2]

NCBI_PARAM_DEF_EX ( bool  ,
NCBI  ,
STATIC_ARRAY_UNSAFE_TYPE_WARNING  ,
true  ,
eParam_NoThread  ,
NCBI_STATIC_ARRAY_UNSAFE_TYPE_WARNING   
)

◆ ReportIncorrectOrder()

void ReportIncorrectOrder ( size_t  curr_index,
const char *  file,
int  line 
)

◆ ReportUnsafeStaticType()

void ReportUnsafeStaticType ( const char *  type_name,
const char *  file,
int  line 
)

Log error message about non-MT-safe static type (string, pair<>) if it's configured by TParamStaticArrayUnsafeTypeWarning parameter.

Definition at line 118 of file static_set.cpp.

References eDiag_Warning, eDPF_Default, eDPF_File, eDPF_Line, eDPF_LongFilename, ErrCode, file, CNcbiDiag::GetRef(), NCBI_CURRENT_FUNCTION, NCBI_ERRCODE_X_NAME, NCBI_MAKE_MODULE, and NCBI_MODULE.

Referenced by CheckStaticType().

Variable Documentation

◆ BEGIN_NCBI_NAMESPACE

BEGIN_NCBI_NAMESPACE

Definition at line 37 of file static_set.cpp.

◆ END_NCBI_NAMESPACE

END_NCBI_NAMESPACE

Definition at line 168 of file static_set.cpp.

Modified on Sat Dec 02 09:22:33 2023 by modify_doxy.py rev. 669887