#include <util/error_codes.hpp>
#include <corelib/ncbistd.hpp>
#include <corelib/ncbimtx.hpp>
#include <corelib/ncbi_param.hpp>
#include <utility>
#include <typeinfo>
#include <algorithm>
#include <functional>
Go to the source code of this file.
Go to the SVN repository for this file.
#define DECLARE_CLASS_STATIC_ARRAY_MAP(Type, Var) static const Type Var #define DEFINE_STATIC_ARRAY_MAP(Type, Var, Array) static const Type (Var)((Array), sizeof(Array), __FILE__, __LINE__) #define DEFINE_CLASS_STATIC_ARRAY_MAP(Type, Var, Array) const Type (Var)((Array), sizeof(Array), __FILE__, __LINE__) #define DEFINE_STATIC_ARRAY_MAP_WITH_COPY(Type, Var, Array) #define DEFINE_CLASS_STATIC_ARRAY_MAP_WITH_COPY(Type, Var, Array) typedef NCBI_PARAM_TYPE (NCBI, STATIC_ARRAY_COPY_WARNING) TParamStaticArrayCopyWarning typedef NCBI_PARAM_TYPE (NCBI, STATIC_ARRAY_UNSAFE_TYPE_WARNING) TParamStaticArrayUnsafeTypeWarning BEGIN_NAMESPACE (NStaticArray) Namespace for static array templates' implementation. More...Definition at line 891 of file static_set.hpp.
◆ DEFINE_CLASS_STATIC_ARRAY_MAP_WITH_COPY #define DEFINE_CLASS_STATIC_ARRAY_MAP_WITH_COPY ( Type, Var, Array ) Value: const Type(Var)((Array),
sizeof(Array), __FILE__, __LINE__,
\Definition at line 898 of file static_set.hpp.
◆ DEFINE_STATIC_ARRAY_MAP ◆ DEFINE_STATIC_ARRAY_MAP_WITH_COPY #define DEFINE_STATIC_ARRAY_MAP_WITH_COPY ( Type, Var, Array ) Value: static const Type(Var)((Array),
sizeof(Array), __FILE__, __LINE__,
\Definition at line 894 of file static_set.hpp.
◆ ECopyWarn Enumerator eCopyWarn_default eCopyWarn_show eCopyWarn_hideDefinition at line 182 of file static_set.hpp.
◆ BEGIN_NAMESPACE() BEGIN_NAMESPACE ( NStaticArray )Namespace for static array templates' implementation.
◆ CheckStaticType() [1/5]template<typename Type >
void CheckStaticType ( const char * file, int line ) inline ◆ CheckStaticType() [2/5]template<typename Type1 , typename Type2 >
void CheckStaticType ( const pair< Type1, Type2 > * type_ptr, const char * file, int line ) inline ◆ CheckStaticType() [3/5]template<typename Type1 , typename Type2 >
◆ CheckStaticType() [4/5] ◆ CheckStaticType() [5/5]Template for checking if the static array type is MT-safe, i.e.
doesn't have a constructor. Only few standard types are detected - std::string, and std::pair<>.
Definition at line 446 of file static_set.hpp.
Referenced by CheckStaticType().
◆ END_NAMESPACE() END_NAMESPACE ( NStaticArray ) ◆ MakeConverter() [1/4]template<typename DstType , typename SrcType >
◆ MakeConverter() [2/4]template<typename DstType1 , typename DstType2 , typename SrcType1 , typename SrcType2 >
IObjectConverter* MakeConverter ( pair< DstType1, DstType2 > * dst_ptr, pair< SrcType1, SrcType2 > * src_ptr ) inline ◆ MakeConverter() [3/4]template<typename DstType1 , typename DstType2 , typename SrcType1 , typename SrcType2 >
◆ MakeConverter() [4/4]template<typename DstType1 , typename DstType2 , typename SrcType1 , typename SrcType2 >
◆ MakePairConverter()template<typename DstType , typename SrcType >
◆ NCBI_PARAM_TYPE() [1/2] ◆ NCBI_PARAM_TYPE() [2/2] ◆ ReportIncorrectOrder() void ReportIncorrectOrder ( size_t curr_index, const char * file, int line )Log error message about wrong order of elements in array and abort.
Definition at line 142 of file static_set.cpp.
References eDiag_Fatal, 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 CStaticArraySearchBase< NStaticArray::PKeyValuePair< SStaticPair< KeyType, ValueType > >, less< KeyType > >::x_Validate().
◆ 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, NCBI_MODULE, and type_name().
Referenced by CheckStaticType().
◆ bool ◆ NCBIDefinition at line 72 of file static_set.hpp.
Referenced by CId1Reader::CId1Reader(), CId2Reader::CId2Reader(), CNcbiApplogApp::Cmd_Health(), CDir::Copy(), CUnicodeToAsciiTranslation::CUnicodeToAsciiTranslation(), CDir::GetAppTmpDir(), CNcbiApplogApp::Redirect(), CDirEntry::RemoveEntry(), CNcbiApplogApp::Run(), s_DirCreate(), CFileAPI::SetDeleteReadOnlyFiles(), CFileAPI::SetHonorUmask(), CFileAPI::SetLogging(), CObjectException::x_InitErrCode(), and CNcbiApplicationAPI::x_TryInit().
◆ NCBI_XUTIL_EXPORT ◆ STATIC_ARRAY_COPY_WARNING ◆ STATIC_ARRAY_UNSAFE_TYPE_WARNINGRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4