NCBI C++ ToolKit
Classes | Macros | Typedefs | Functions
bioseq_set_edit_commands.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <corelib/ncbiobj.hpp>
#include <objmgr/impl/edit_commands_impl.hpp>
#include <objmgr/seq_entry_handle.hpp>
#include <objmgr/bioseq_set_handle.hpp>
#include <objects/seqset/Bioseq_set.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/general/Dbtag.hpp>
#include <objects/general/Date.hpp>
#include <string>
+ Include dependency graph for bioseq_set_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

struct  MemetoFunctions< CBioseq_set_EditHandle, CBioseq_set::TLevel >
 
struct  DBFunc< CBioseq_set_EditHandle, CBioseq_set::TLevel >
 
struct  MemetoFunctions< CBioseq_set_EditHandle, CBioseq_set::TRelease >
 
struct  DBFunc< CBioseq_set_EditHandle, CBioseq_set::TRelease >
 
struct  MemetoFunctions< CBioseq_set_EditHandle, CBioseq_set::TClass >
 
struct  DBFunc< CBioseq_set_EditHandle, CBioseq_set::TClass >
 
struct  MemetoFunctions< CBioseq_set_EditHandle, CBioseq_set::TId >
 
struct  DBFunc< CBioseq_set_EditHandle, CBioseq_set::TId >
 
struct  MemetoFunctions< CBioseq_set_EditHandle, CBioseq_set::TColl >
 
struct  DBFunc< CBioseq_set_EditHandle, CBioseq_set::TColl >
 
struct  MemetoFunctions< CBioseq_set_EditHandle, CBioseq_set::TDate >
 
struct  DBFunc< CBioseq_set_EditHandle, CBioseq_set::TDate >
 
struct  RemoveAction< CBioseq_set_EditHandle >
 
class  CAttachEntry_EditCommand< Entry >
 
struct  CMDReturn< CAttachEntry_EditCommand< Entry > >
 

Macros

#define DEFINE_DB_FUNC(type)
 
#define DEFINE_BIOSEQSET_SCALAR_CMD(type)
 
#define DEFINE_BIOSEQSET_REF_CMD(type)
 

Typedefs

typedef CSetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TLevelCSet_BioseqSetLevel_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TLevelCReset_BioseqSetLevel_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TReleaseCSet_BioseqSetRelease_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TReleaseCReset_BioseqSetRelease_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TClassCSet_BioseqSetClass_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TClassCReset_BioseqSetClass_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TIdCSet_BioseqSetId_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TIdCReset_BioseqSetId_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TCollCSet_BioseqSetColl_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TCollCReset_BioseqSetColl_EditCommand
 
typedef CSetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TDateCSet_BioseqSetDate_EditCommand
 
typedef CResetValue_EditCommand< CBioseq_set_EditHandle, CBioseq_set::TDateCReset_BioseqSetDate_EditCommand
 
typedef CRemove_EditCommand< CBioseq_set_EditHandleCRemoveBioseq_set_EditCommand
 

Functions

 DEFINE_CREF_TYPE (CBioseq_set::TId)
 
 DEFINE_CREF_TYPE (CBioseq_set::TColl)
 
 DEFINE_CREF_TYPE (CBioseq_set::TDate)
 

Macro Definition Documentation

◆ DEFINE_BIOSEQSET_REF_CMD

#define DEFINE_BIOSEQSET_REF_CMD (   type)
Value:
\
template<> \
typedef CBioseq_set_EditHandle TEditHandle; \
typedef CBioseq_set::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.IsSet##type(); } \
static inline TStorage Get(const TEditHandle& handle) \
{ return TStorage(const_cast<TValue*>(&handle.Get##type())); } \
static inline void Set(const TEditHandle& handle, TStorage& data) \
{ handle.x_RealSet##type(*data); } \
static inline void Reset(const TEditHandle& handle) \
{ handle.x_RealReset##type(); } \
}; \
\
CSet_BioseqSet##type##_EditCommand; \
CReset_BioseqSet##type##_EditCommand;
#define DEFINE_DB_FUNC(type)
DEFINE_CREF_TYPE(CBioseq_set::TId)
CBioseq_set_EditHandle –.
#define T(s)
Definition: common.h:230
static int type
Definition: getdata.c:31
char data[12]
Definition: iconv.c:80
const TYPE & Get(const CNamedParameterList *param)
Definition: type.c:6

Definition at line 109 of file bioseq_set_edit_commands.hpp.

◆ DEFINE_BIOSEQSET_SCALAR_CMD

#define DEFINE_BIOSEQSET_SCALAR_CMD (   type)
Value:
template<> \
typedef CBioseq_set_EditHandle TEditHandle; \
typedef CBioseq_set::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.IsSet##type(); } \
static inline TStorage Get(const TEditHandle& handle) \
{ return handle.Get##type(); } \
static inline void Set(const TEditHandle& handle, TStorage data) \
{ handle.x_RealSet##type(data); } \
static inline void Reset(const TEditHandle& handle) \
{ handle.x_RealReset##type(); } \
}; \
\
CSet_BioseqSet##type##_EditCommand; \
CReset_BioseqSet##type##_EditCommand;

Definition at line 75 of file bioseq_set_edit_commands.hpp.

◆ DEFINE_DB_FUNC

#define DEFINE_DB_FUNC (   type)
Value:
template<> \
typedef CBioseq_set::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.SetBioseqSet##type(handle, data, mode); } \
static inline void Reset(IEditSaver& saver, \
const Handle& handle, \
{ saver.ResetBioseqSet##type(handle, mode); } \
};
Edit Saver Interface.
Definition: edit_saver.hpp:72
ECallMode
This flag can be used for optimization purpose.
Definition: edit_saver.hpp:76
#define Handle
Definition: ncbistd.hpp:119
mdb_mode_t mode
Definition: lmdb++.h:38

Definition at line 56 of file bioseq_set_edit_commands.hpp.

Typedef Documentation

◆ CRemoveBioseq_set_EditCommand

Definition at line 171 of file bioseq_set_edit_commands.hpp.

◆ CReset_BioseqSetClass_EditCommand

Definition at line 104 of file bioseq_set_edit_commands.hpp.

◆ CReset_BioseqSetColl_EditCommand

Definition at line 138 of file bioseq_set_edit_commands.hpp.

◆ CReset_BioseqSetDate_EditCommand

Definition at line 139 of file bioseq_set_edit_commands.hpp.

◆ CReset_BioseqSetId_EditCommand

Definition at line 137 of file bioseq_set_edit_commands.hpp.

◆ CReset_BioseqSetLevel_EditCommand

Definition at line 102 of file bioseq_set_edit_commands.hpp.

◆ CReset_BioseqSetRelease_EditCommand

Definition at line 103 of file bioseq_set_edit_commands.hpp.

◆ CSet_BioseqSetClass_EditCommand

Definition at line 104 of file bioseq_set_edit_commands.hpp.

◆ CSet_BioseqSetColl_EditCommand

Definition at line 138 of file bioseq_set_edit_commands.hpp.

◆ CSet_BioseqSetDate_EditCommand

Definition at line 139 of file bioseq_set_edit_commands.hpp.

◆ CSet_BioseqSetId_EditCommand

Definition at line 137 of file bioseq_set_edit_commands.hpp.

◆ CSet_BioseqSetLevel_EditCommand

Definition at line 102 of file bioseq_set_edit_commands.hpp.

◆ CSet_BioseqSetRelease_EditCommand

Definition at line 103 of file bioseq_set_edit_commands.hpp.

Function Documentation

◆ DEFINE_CREF_TYPE() [1/3]

DEFINE_CREF_TYPE ( CBioseq_set::TColl  )

◆ DEFINE_CREF_TYPE() [2/3]

DEFINE_CREF_TYPE ( CBioseq_set::TDate  )

◆ DEFINE_CREF_TYPE() [3/3]

DEFINE_CREF_TYPE ( CBioseq_set::TId  )
Modified on Fri Sep 20 14:58:07 2024 by modify_doxy.py rev. 669887