NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
bioseq_edit_commands.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <corelib/ncbiobj.hpp>
#include <objmgr/seq_entry_handle.hpp>
#include <objmgr/bioseq_handle.hpp>
#include <objmgr/impl/edit_commands_impl.hpp>
#include <objects/seq/Bioseq.hpp>
#include <objects/seqset/Seq_entry.hpp>
#include <objects/seq/Seqdesc.hpp>
#include <objects/seq/Seq_inst.hpp>
#include <objects/seq/Seq_data.hpp>
#include <objects/seq/Seq_ext.hpp>
#include <objects/seq/Seq_hist.hpp>
#include <objects/general/Int_fuzz.hpp>
#include <objects/seq/seq_id_handle.hpp>
#include <set>
+ Include dependency graph for bioseq_edit_commands.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.

Classes

class  CResetIds_EditCommand
 
struct  AddRemoveIdEditAction< add >
 
struct  AddRemoveIdEditAction< false >
 
class  CId_EditCommand< add >
 
struct  CMDReturn< CId_EditCommand< add > >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst::TRepr >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst::TRepr >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst::TMol >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst::TMol >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst::TStrand >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst::TStrand >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst::TLength >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst::TLength >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst::TTopology >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst::TTopology >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst::TFuzz >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst::TFuzz >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst::TSeq_data >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst::TSeq_data >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst::TExt >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst::TExt >
 
struct  MemetoFunctions< CBioseq_EditHandle, CSeq_inst::THist >
 
struct  DBFunc< CBioseq_EditHandle, CSeq_inst::THist >
 
struct  RemoveAction< CBioseq_EditHandle >
 

Macros

#define DEFINE_DB_FUNC(type)
 
#define DEFINE_SEQINST_SCALAR_CMD(type)
 
#define DEFINE_SEQINST_REF_CMD(type)
 

Typedefs

typedef CId_EditCommand< trueCAddId_EditCommand
 
typedef CId_EditCommand< falseCRemoveId_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_instCSet_SeqInst_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_instCReset_SeqInst_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TReprCSet_SeqInstRepr_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TReprCReset_SeqInstRepr_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TMolCSet_SeqInstMol_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TMolCReset_SeqInstMol_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TStrandCSet_SeqInstStrand_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TStrandCReset_SeqInstStrand_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TLengthCSet_SeqInstLength_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TLengthCReset_SeqInstLength_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TTopologyCSet_SeqInstTopology_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TTopologyCReset_SeqInstTopology_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TFuzzCSet_SeqInstFuzz_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TFuzzCReset_SeqInstFuzz_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TSeq_dataCSet_SeqInstSeq_data_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TSeq_dataCReset_SeqInstSeq_data_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TExtCSet_SeqInstExt_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::TExtCReset_SeqInstExt_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::THistCSet_SeqInstHist_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_EditHandle, CSeq_inst::THistCReset_SeqInstHist_EditCommand
 
typedef CRemove_EditCommand< CBioseq_EditHandleCRemoveBioseq_EditCommand
 

Functions

 DEFINE_CREF_TYPE (CSeq_inst)
 
 DEFINE_CREF_TYPE (CSeq_inst::TFuzz)
 
 DEFINE_CREF_TYPE (CSeq_inst::TSeq_data)
 
 DEFINE_CREF_TYPE (CSeq_inst::TExt)
 
 DEFINE_CREF_TYPE (CSeq_inst::THist)
 

Macro Definition Documentation

◆ DEFINE_DB_FUNC

#define DEFINE_DB_FUNC (   type)
Value:
template<> \
typedef CSeq_inst::T##type T; \
typedef MemetoTrait<T,IsCRef<T>::value> TTrait; \
typedef TTrait::TRef TRef; \
typedef TTrait::TConstRef TConstRef; \
\
static inline void Set(IEditSaver& saver, \
const Handle& handle, TConstRef data, \
{ saver.SetSeqInst##type(handle, data, mode); } \
static inline void Reset(IEditSaver& saver, \
const Handle& handle, \
{ saver.ResetSeqInst##type(handle, mode); } \
};
CBioseq_EditHandle –.
Edit Saver Interface.
Definition: edit_saver.hpp:72
ECallMode
This flag can be used for optimization purpose.
Definition: edit_saver.hpp:76
#define T(s)
Definition: common.h:230
static int type
Definition: getdata.c:31
#define Handle
Definition: ncbistd.hpp:119
mdb_mode_t mode
Definition: lmdb++.h:38
Definition: type.c:6

Definition at line 187 of file bioseq_edit_commands.hpp.

◆ DEFINE_SEQINST_REF_CMD

#define DEFINE_SEQINST_REF_CMD (   type)
Value:
\
template<> \
typedef CBioseq_EditHandle TEditHandle; \
typedef CSeq_inst::T##type T; \
typedef MemetoTrait<T,IsCRef<T>::value> TTrait; \
typedef TTrait::TValue TValue; \
typedef TTrait::TStorage TStorage; \
\
static inline bool IsSet(const TEditHandle& handle) \
{ return handle.IsSetInst_##type(); } \
static inline TStorage Get(const TEditHandle& handle) \
{ return TStorage(const_cast<TValue*>(&handle.GetInst_##type())); } \
static inline void Set(const TEditHandle& handle, TStorage& data) \
{ handle.x_RealSetInst_##type(*data); } \
static inline void Reset(const TEditHandle& handle) \
{ handle.x_RealResetInst_##type(); } \
}; \
\
CSet_SeqInst##type##_EditCommand; \
CReset_SeqInst##type##_EditCommand;
DEFINE_CREF_TYPE(CSeq_inst)
#define DEFINE_DB_FUNC(type)
const TYPE & Get(const CNamedParameterList *param)

Definition at line 283 of file bioseq_edit_commands.hpp.

◆ DEFINE_SEQINST_SCALAR_CMD

#define DEFINE_SEQINST_SCALAR_CMD (   type)
Value:
template<> \
typedef CBioseq_EditHandle TEditHandle; \
typedef CSeq_inst::T##type T; \
typedef MemetoTrait<T,IsCRef<T>::value> TTrait; \
typedef TTrait::TValue TValue; \
typedef TTrait::TStorage TStorage; \
\
static inline bool IsSet(const TEditHandle& handle) \
{ return handle.IsSetInst_##type(); } \
static inline TStorage Get(const TEditHandle& handle) \
{ return handle.GetInst_##type(); } \
static inline void Set(const TEditHandle& handle, TStorage data) \
{ handle.x_RealSetInst_##type(data); } \
static inline void Reset(const TEditHandle& handle) \
{ handle.x_RealResetInst_##type(); } \
}; \
\
CSet_SeqInst##type##_EditCommand; \
CReset_SeqInst##type##_EditCommand;

Definition at line 249 of file bioseq_edit_commands.hpp.

Typedef Documentation

◆ CAddId_EditCommand

Definition at line 169 of file bioseq_edit_commands.hpp.

◆ CRemoveBioseq_EditCommand

Definition at line 347 of file bioseq_edit_commands.hpp.

◆ CRemoveId_EditCommand

Definition at line 170 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInst_EditCommand

Definition at line 247 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInstExt_EditCommand

Definition at line 313 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInstFuzz_EditCommand

Definition at line 311 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInstHist_EditCommand

Definition at line 314 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInstLength_EditCommand

Definition at line 278 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInstMol_EditCommand

Definition at line 276 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInstRepr_EditCommand

Definition at line 275 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInstSeq_data_EditCommand

Definition at line 312 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInstStrand_EditCommand

Definition at line 277 of file bioseq_edit_commands.hpp.

◆ CReset_SeqInstTopology_EditCommand

Definition at line 279 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInst_EditCommand

Definition at line 245 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInstExt_EditCommand

Definition at line 313 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInstFuzz_EditCommand

Definition at line 311 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInstHist_EditCommand

Definition at line 314 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInstLength_EditCommand

Definition at line 278 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInstMol_EditCommand

Definition at line 276 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInstRepr_EditCommand

Definition at line 275 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInstSeq_data_EditCommand

Definition at line 312 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInstStrand_EditCommand

Definition at line 277 of file bioseq_edit_commands.hpp.

◆ CSet_SeqInstTopology_EditCommand

Definition at line 279 of file bioseq_edit_commands.hpp.

Function Documentation

◆ DEFINE_CREF_TYPE() [1/5]

DEFINE_CREF_TYPE ( CSeq_inst  )

◆ DEFINE_CREF_TYPE() [2/5]

DEFINE_CREF_TYPE ( CSeq_inst::TExt  )

◆ DEFINE_CREF_TYPE() [3/5]

DEFINE_CREF_TYPE ( CSeq_inst::TFuzz  )

◆ DEFINE_CREF_TYPE() [4/5]

DEFINE_CREF_TYPE ( CSeq_inst::THist  )

◆ DEFINE_CREF_TYPE() [5/5]

DEFINE_CREF_TYPE ( CSeq_inst::TSeq_data  )
Modified on Sun Feb 25 03:07:58 2024 by modify_doxy.py rev. 669887