Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/ncbimisc_8hpp.html below:
NCBI C++ ToolKit: include/corelib/ncbimisc.hpp File Reference
#define nullptr NULL #define NCBI_ESWITCH_DEFINED #define NCBI_EOWNERSHIP_DEFINED NCBI_ESWITCH_DEFINED. More...
#define DECLARE_SAFE_BOOL_METHOD(Expr) Support for safe bool operators. More...
#define DECLARE_OPERATOR_BOOL(Expr) DECLARE_SAFE_BOOL_METHOD(Expr) Declaration of safe bool operator from boolean expression. More...
#define DECLARE_OPERATOR_BOOL_PTR(Ptr) DECLARE_OPERATOR_BOOL((Ptr) != 0) Declaration of safe bool operator from pointer expression. More...
#define DECLARE_OPERATOR_BOOL_REF(Ref) DECLARE_OPERATOR_BOOL((Ref).NotNull()) Declaration of safe bool operator from CRef<>/CConstRef<> expression. More...
#define OVERRIDE_OPERATOR_BOOL(TAncestorClass, NewBoolExpr) Override the DECLARE_OPERATOR_BOOL, etc. More...
#define ITERATE_CONST(Cont) NCBI_NS_NCBI::s_ITERATE_ConstRef(Cont) #define ITERATE_BEGIN(Cont, Begin) #define ITERATE_VAR(Type) Type #define ITERATE(Type, Var, Cont) ITERATE macro to sequence through container elements. More...
#define NON_CONST_ITERATE(Type, Var, Cont) Non constant version of ITERATE macro. More...
#define REVERSE_ITERATE(Type, Var, Cont) ITERATE macro to reverse sequence through container elements. More...
#define NON_CONST_REVERSE_ITERATE(Type, Var, Cont) Non constant version of REVERSE_ITERATE macro. More...
#define ERASE_ITERATE(Type, Var, Cont) Non-constant version with ability to erase current element, if container permits. More...
#define VECTOR_ERASE(Var, Cont) (NCBI_NAME2(Var,_next) = (Cont).erase(Var)) Use this macro inside body of ERASE_ITERATE cycle to erase from vector-like container. More...
#define ITERATE_BOTH_BOOL_VALUES(BoolVar) for( bool BoolVar##BOTH_BOOL_VALUES_DONE##__LINE__ = false, BoolVar = false; ! BoolVar##BOTH_BOOL_VALUES_DONE##__LINE__ ; BoolVar##BOTH_BOOL_VALUES_DONE##__LINE__ = BoolVar, BoolVar = true ) The body of the loop will be run with Var equal to false and then true. More...
#define ITERATE_0_IDX(idx, up_to) for( TSeqPos idx = 0; idx < up_to; ++idx ) idx loops from 0 (inclusive) to up_to (exclusive) More...
#define ITERATE_SIMPLE(num_iters) ITERATE_0_IDX( _dummy_idx_94768308_##__LINE__, num_iters ) Just repeat the body of the loop num_iters times. More...
#define NCBI_INT8_GI Type for sequence GI. More...
#define STRICT_ID_TO(TId, TInt, id) (static_cast<TInt>((id).Get())) Macros to convert TGi to other types (int, unsigned etc.). More...
#define STRICT_ID_FROM(TIdType, TIntType, id) (TIdType(static_cast<TIdType::TId>(id))) #define STRICT_ID_CONST(type, id) (type(static_cast<type::TId>(ncbi::CConstIdChecker<type::TId, id>::value))) #define STRICT_ID_ZERO(type) STRICT_ID_CONST(type, 0) #define STRICT_ID_INVALID(type) STRICT_ID_CONST(type, -1) #define GI_TO(T, gi) STRICT_ID_TO(ncbi::TGi, T, gi) #define GI_FROM(T, value) STRICT_ID_FROM(ncbi::TGi, T, value) #define GI_CONST(gi) STRICT_ID_CONST(ncbi::TGi, gi) #define ZERO_GI STRICT_ID_ZERO(ncbi::TGi) #define INVALID_GI STRICT_ID_INVALID(ncbi::TGi) #define ENTREZ_ID_TO(T, entrez_id) (static_cast<T>(entrez_id)) #define ENTREZ_ID_FROM(T, value) (static_cast<ncbi::TEntrezId>(value)) #define ENTREZ_ID_CONST(id) id #define ZERO_ENTREZ_ID ENTREZ_ID_CONST(0) #define INVALID_ENTREZ_ID ENTREZ_ID_CONST(-1) #define TAX_ID_TO(T, tax_id) (static_cast<T>(tax_id)) #define TAX_ID_FROM(T, value) (static_cast<ncbi::TTaxId>(value)) #define TAX_ID_CONST(id) id #define ZERO_TAX_ID TAX_ID_CONST(0) #define INVALID_TAX_ID TAX_ID_CONST(-1) #define INT_ID_TO(T, id) (static_cast<T>(id)) Convert gi-compatible int to/from other types. More...
#define INT_ID_FROM(T, value) (static_cast<ncbi::TIntId>(value)) #define NCBI_DEPRECATED_CTOR(decl) decl NCBI_DEPRECATED Macro used to mark a constructor as deprecated. More...
#define NCBI_DEPRECATED_CLASS NCBI_DEPRECATED_CTOR(class) Macro used to mark a class as deprecated. More...
#define DECLARE_SAFE_FLAGS_TYPE(E, T) typedef NCBI_NS_NCBI::CSafeFlags<E> T Macro DECLARE_SAFE_FLAGS_TYPE defines a typedef for safe-flags. More...
#define DECLARE_SAFE_FLAGS(E) Macro DECLARE_SAFE_FLAGS marks a enum as safe-flags enum. More...
#define NCBI_EXPORT_FUNC_DECLARE(lib, func) #define NCBI_EXPORT_FUNC_DEFINE(lib, func) NCBI_XNCBI_EXPORT void g_ThrowOnNull (void) template<class TValue , class TNullToValue = SThrowOnNull<TValue>> bool operator== (const CNullable< TValue, TNullToValue > &l, const CNullable< TValue, TNullToValue > &r) template<class TValue , class TNullToValue = SThrowOnNull<TValue>> bool operator!= (const CNullable< TValue, TNullToValue > &l, const CNullable< TValue, TNullToValue > &r) char * strdup (const char *str) Supply string duplicate function, if one is not defined. More...
template<typename Type > const Type & s_ITERATE_ConstRef (const Type &obj) template<typename Type > bool s_ITERATE_SameObject (const Type &obj1, const Type &obj2) template<class TKey , class TStorage > CNcbiOstream & operator<< (CNcbiOstream &out, const CStrictId< TKey, TStorage > &id) template<class TKey , class TStorage > CNcbiIstream & operator>> (CNcbiIstream &in, CStrictId< TKey, TStorage > &id) template<class E > CSafeFlags< E > operator| (E a, CSafeFlags< E > b) Helper operators for safe-flags enums. More...
template<class E > CSafeFlags< E > operator& (E a, CSafeFlags< E > b) template<class E > CSafeFlags< E > operator^ (E a, CSafeFlags< E > b) template<class E > ostream & operator<< (ostream &out, const CSafeFlags< E > &v) template<class T1 , class T2 > void swap (NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair1, NCBI_NS_NCBI::pair_base_member< T1, T2 > &pair2) template<class P , class D > void swap (NCBI_NS_NCBI::AutoPtr< P, D > &ptr1, NCBI_NS_NCBI::AutoPtr< P, D > &ptr2) template<class Element , size_t Size> constexpr size_t ArraySize (const Element(&)[Size])
Miscellaneous common-use basic types and functionality.
Definition in file ncbimisc.hpp.
RetroSearch 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