33 #ifndef C_WIN_MASK_UTIL_HPP
34 #define C_WIN_MASK_UTIL_HPP
68 virtual void insert(
const string & id_str ) = 0;
80 virtual bool find(
const objects::CBioseq_Handle & bsh )
const = 0;
95 virtual void insert(
const string & id_str );
99 virtual bool empty()
const {
return idset.empty(); }
103 virtual bool find(
const objects::CBioseq_Handle & )
const;
125 virtual void insert(
const string & id_str );
129 virtual bool empty()
const {
return nword_sets_.empty(); }
133 virtual bool find(
const objects::CBioseq_Handle & )
const;
149 static const vector< Uint4 >
split(
const string & id_str );
156 bool find(
const string & id_str )
const;
163 bool find(
const string & id_str,
Uint4 nwords )
const;
184 const objects::CBioseq_Handle&
operator* (
void)
const {
return m_CurrentBioseq; }
185 const objects::CBioseq_Handle* operator-> (
void)
const {
return &m_CurrentBioseq; }
212 static bool consider(
213 const objects::CBioseq_Handle & bsh,
215 const CIdSet * exclude_ids );
Implementation of CIdSet that compares CSeq_id handles.
virtual bool empty() const
See documentation for CIdSet::empty().
set< objects::CSeq_id_Handle > idset
virtual ~CIdSet_SeqId()
Object destuctor.
Implementation of CIdSet that does substring matching.
virtual bool empty() const
See documentation for CIdSet::empty().
vector< TNwordSet > nword_sets_
\brief Set of ids grouped by the number of words.
set< string > TNwordSet
\brief Set of ids consisting of the same number of words.
virtual ~CIdSet_TextMatch()
Object destructor.
Base class for sets of seq_id representations used with -ids and -exclude-ids options.
virtual bool find(const objects::CBioseq_Handle &bsh) const =0
Check if the id of the given bioseq is in the id set.
virtual bool empty() const =0
Check if the id set is empty.
virtual void insert(const string &id_str)=0
Add a string to the id set.
virtual ~CIdSet()
Object destructor.
CVect2< NCBI_PROMOTE(int,U) > operator*(int v1, const CVect2< U > &v2)
uint32_t Uint4
4-byte (32-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_XALGOWINMASK_EXPORT
void split(std::vector< std::string > *strVec, const std::string &str_, const std::string &split_)