Go to the documentation of this file.Go to the SVN repository for this file.
34 #ifndef STRUCT_UTIL_PRIVATE__HPP
35 #define STRUCT_UTIL_PRIVATE__HPP
43 #define ERROR_MESSAGE(s) ERR_POST(ncbi::Error << "struct_util: " << s << '!')
44 #define WARNING_MESSAGE(s) ERR_POST(ncbi::Warning << "struct_util: " << s)
45 #define INFO_MESSAGE(s) ERR_POST(ncbi::Info << "struct_util: " << s)
46 #define TRACE_MESSAGE(s) ERR_POST(ncbi::Trace << "struct_util: " << s)
48 #define THROW_MESSAGE(str) throw ncbi::CException(DIAG_COMPILE_INFO, NULL, ncbi::CException::eUnknown, (str))
55 if (v.size() !=
remove.size()) {
63 std::vector < T >
copy(v.size() - nToRemove);
64 unsigned int i, nRemoved = 0;
65 for (
i=0;
i<v.size(); ++
i) {
71 if (nRemoved != nToRemove) {
82 #define DELETE_ALL_AND_CLEAR(container, ContainerType) \
84 ContainerType::iterator i, ie = (container).end(); \
85 for (i=(container).begin(); i!=ie; ++i) \
87 (container).clear(); \
Include a standard set of the NCBI C++ Toolkit most basic headers.
static void DLIST_NAME() remove(DLIST_LIST_TYPE *list, DLIST_TYPE *item)
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_SCOPE(ns)
Define a new scope.
Defines NCBI C++ exception handling.
void copy(Njn::Matrix< S > *matrix_, const Njn::Matrix< T > &matrix0_)
void VectorRemoveElements(std::vector< T > &v, const std::vector< bool > &remove, unsigned int nToRemove)