NCBI C++ ToolKit
Macros | Functions
su_private.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <corelib/ncbiexpt.hpp>
+ Include dependency graph for su_private.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define ERROR_MESSAGE(s)   ERR_POST(ncbi::Error << "struct_util: " << s << '!')
 
#define WARNING_MESSAGE(s)   ERR_POST(ncbi::Warning << "struct_util: " << s)
 
#define INFO_MESSAGE(s)   ERR_POST(ncbi::Info << "struct_util: " << s)
 
#define TRACE_MESSAGE(s)   ERR_POST(ncbi::Trace << "struct_util: " << s)
 
#define THROW_MESSAGE(str)   throw ncbi::CException(DIAG_COMPILE_INFO, NULL, ncbi::CException::eUnknown, (str))
 
#define DELETE_ALL_AND_CLEAR(container, ContainerType)
 

Functions

template<class T >
void VectorRemoveElements (std::vector< T > &v, const std::vector< bool > &remove, unsigned int nToRemove)
 

Macro Definition Documentation

◆ DELETE_ALL_AND_CLEAR

#define DELETE_ALL_AND_CLEAR (   container,
  ContainerType 
)
Value:
do { \
ContainerType::iterator i, ie = (container).end(); \
for (i=(container).begin(); i!=ie; ++i) \
delete *i; \
(container).clear(); \
} while (0)
int i

Definition at line 82 of file su_private.hpp.

◆ ERROR_MESSAGE

#define ERROR_MESSAGE (   s)    ERR_POST(ncbi::Error << "struct_util: " << s << '!')

Definition at line 43 of file su_private.hpp.

◆ INFO_MESSAGE

#define INFO_MESSAGE (   s)    ERR_POST(ncbi::Info << "struct_util: " << s)

Definition at line 45 of file su_private.hpp.

◆ THROW_MESSAGE

#define THROW_MESSAGE (   str)    throw ncbi::CException(DIAG_COMPILE_INFO, NULL, ncbi::CException::eUnknown, (str))

Definition at line 48 of file su_private.hpp.

◆ TRACE_MESSAGE

#define TRACE_MESSAGE (   s)    ERR_POST(ncbi::Trace << "struct_util: " << s)

Definition at line 46 of file su_private.hpp.

◆ WARNING_MESSAGE

#define WARNING_MESSAGE (   s)    ERR_POST(ncbi::Warning << "struct_util: " << s)

Definition at line 44 of file su_private.hpp.

Function Documentation

◆ VectorRemoveElements()

template<class T >
void VectorRemoveElements ( std::vector< T > &  v,
const std::vector< bool > &  remove,
unsigned int  nToRemove 
)
Modified on Fri Sep 20 14:57:55 2024 by modify_doxy.py rev. 669887