1 #ifndef OBJTOOLS_ALNMGR___ALN_TESTS__HPP
2 #define OBJTOOLS_ALNMGR___ALN_TESTS__HPP
53 template <
class _TAlnVec,
54 class TAlnSeqIdExtract>
62 typedef typename TAlnSeqIdExtract::TIdVec
TIdVec;
73 size_t expected_number_of_alns = 0)
77 m_AlnVec.reserve(expected_number_of_alns);
96 "Seq-align was previously pushed_back.");
134 "alignment not present in map");
CAlnIdMap< vector< const CSeq_align * >, TIdExtract > TAlnIdMap
Default implementations of CAlnIdMap.
CAlnIdMap< vector< const CSeq_align * >, TScopeIdExtract > TScopeAlnIdMap
Container mapping seq-aligns to vectors of participating seq-ids.
TAlnSeqIdExtract::TIdVec TIdVec
Container (vector) of seq-ids.
const TIdVec & operator[](const CSeq_align &aln) const
Accessing the seq-ids of a particular seq-align.
CAlnIdMap(const TAlnSeqIdExtract &extract, size_t expected_number_of_alns=0)
Constructor.
const TAlnSeqIdExtract & m_Extract
size_type size(void) const
Size (number of alignments)
const TIdVec & operator[](size_t aln_idx) const
Accessing the seq-ids of a particular seq-align.
void push_back(const CSeq_align &aln)
Adding an alignment.
map< const CSeq_align *, size_t > TAlnMap
vector< TIdVec > TAlnIdVec
_TAlnVec TAlnVec
Container (vector) of seq-aligns.
const TAlnVec & GetAlnVec(void) const
Accessing the vector of alignments.
void Validate(bool full_test=false) const
container_type::const_iterator const_iterator
const_iterator end() const
iterator_bool insert(const value_type &val)
const_iterator find(const key_type &key) const
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
#define NCBI_EXCEPTION_THROW(exception_var)
Throw an existing exception object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
constexpr bool empty(list< Ts... >) noexcept
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.