66 "empty Seq-descr is not allowed");
75 "empty Seq-descr is not allowed");
110 if ((**it).Which() == which)
126 for (CSeq_descr::Tdata::iterator it = descr.
Set().begin(); it!= descr.
Set().end(); )
128 if ((**it).Which() == which)
131 descr.
Set().erase(it++);
static CSafeStatic< NCBI_PARAM_TYPE(OBJECTS, SEQ_DESCR_ALLOW_EMPTY)> s_SeqDescrAllowEmpty
NCBI_PARAM_DEF_EX(bool, OBJECTS, SEQ_DESCR_ALLOW_EMPTY, false, eParam_NoThread, OBJECTS_SEQ_DESCR_ALLOW_EMPTY)
NCBI_PARAM_DECL(bool, OBJECTS, SEQ_DESCR_ALLOW_EMPTY)
CRef< CSeq_descr > m_descr
CSeqdesc & Set(bool skip_lookup=false)
const CSeqdesc & Get() const
static CRef< CSeqdesc > LocateDesc(const CSeq_descr &descr, CSeqdesc::E_Choice which)
CSeqdesc::E_Choice m_which
static bool EraseDesc(CSeq_descr &descr, CSeqdesc::E_Choice which)
@Seq_descr.hpp User-defined methods of the data storage class.
void PreWrite(void) const
void PostRead(void) const
Root class for all serialization exceptions.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
bool IsNull(void) const noexcept
Check if pointer is null – same effect as Empty().
void Reset(void) noexcept
Reset reference object.
#define NCBI_PARAM_TYPE(section, name)
Generate typename for a parameter from its {section, name} attributes.
@ eParam_NoThread
Do not use per-thread values.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
list< CRef< CSeqdesc > > Tdata
const Tdata & Get(void) const
Get the member data.
Tdata & Set(void)
Assign a value to data member.
constexpr bool empty(list< Ts... >) noexcept