41 #ifndef OBJECTS_DOCSUM_MAPLOC_BASE_HPP
42 #define OBJECTS_DOCSUM_MAPLOC_BASE_HPP
53 #ifndef BEGIN_objects_SCOPE
54 # define BEGIN_objects_SCOPE BEGIN_SCOPE(objects)
55 # define END_objects_SCOPE END_SCOPE(objects)
111 eAttlist_locType_insertion = 1,
112 eAttlist_locType_exact = 2,
113 eAttlist_locType_deletion = 3,
114 eAttlist_locType_range_ins = 4,
115 eAttlist_locType_range_exact = 5,
116 eAttlist_locType_range_del = 6
125 eAttlist_orient_forward = 1,
126 eAttlist_orient_reverse = 2
157 e_leftFlankNeighborPos,
158 e_rightFlankNeighborPos,
159 e_leftContigNeighborPos,
160 e_rightContigNeighborPos,
161 e_numberOfMismatches,
163 e_numberOfInsertions,
180 bool IsSetAsnFrom(
void)
const;
187 bool CanGetAsnFrom(
void)
const;
190 void ResetAsnFrom(
void);
219 bool IsSetAsnTo(
void)
const;
226 bool CanGetAsnTo(
void)
const;
229 void ResetAsnTo(
void);
235 TAsnTo GetAsnTo(
void)
const;
256 bool IsSetLocType(
void)
const;
263 bool CanGetLocType(
void)
const;
266 void ResetLocType(
void);
294 bool IsSetAlnQuality(
void)
const;
301 bool CanGetAlnQuality(
void)
const;
304 void ResetAlnQuality(
void);
331 bool IsSetOrient(
void)
const;
338 bool CanGetOrient(
void)
const;
341 void ResetOrient(
void);
370 bool IsSetPhysMapInt(
void)
const;
377 bool CanGetPhysMapInt(
void)
const;
380 void ResetPhysMapInt(
void);
409 bool IsSetLeftFlankNeighborPos(
void)
const;
416 bool CanGetLeftFlankNeighborPos(
void)
const;
419 void ResetLeftFlankNeighborPos(
void);
447 bool IsSetRightFlankNeighborPos(
void)
const;
454 bool CanGetRightFlankNeighborPos(
void)
const;
457 void ResetRightFlankNeighborPos(
void);
486 bool IsSetLeftContigNeighborPos(
void)
const;
493 bool CanGetLeftContigNeighborPos(
void)
const;
496 void ResetLeftContigNeighborPos(
void);
525 bool IsSetRightContigNeighborPos(
void)
const;
532 bool CanGetRightContigNeighborPos(
void)
const;
535 void ResetRightContigNeighborPos(
void);
564 bool IsSetNumberOfMismatches(
void)
const;
571 bool CanGetNumberOfMismatches(
void)
const;
574 void ResetNumberOfMismatches(
void);
602 bool IsSetNumberOfDeletions(
void)
const;
609 bool CanGetNumberOfDeletions(
void)
const;
612 void ResetNumberOfDeletions(
void);
640 bool IsSetNumberOfInsertions(
void)
const;
647 bool CanGetNumberOfInsertions(
void)
const;
650 void ResetNumberOfInsertions(
void);
677 bool IsSetRefAllele(
void)
const;
684 bool CanGetRefAllele(
void)
const;
687 void ResetRefAllele(
void);
756 bool IsSetAttlist(
void)
const;
763 bool CanGetAttlist(
void)
const;
766 void ResetAttlist(
void);
772 const TAttlist& GetAttlist(
void)
const;
793 bool IsSetFxnSet(
void)
const;
800 bool CanGetFxnSet(
void)
const;
803 void ResetFxnSet(
void);
809 const TFxnSet& GetFxnSet(
void)
const;
818 virtual void Reset(
void);
850 return IsSetAsnFrom();
863 if (!CanGetAsnFrom()) {
880 if (!IsSetAsnFrom()) {
910 if (!CanGetAsnTo()) {
944 return IsSetLocType();
957 if (!CanGetLocType()) {
974 if (!IsSetLocType()) {
991 return IsSetAlnQuality();
1004 if (!CanGetAlnQuality()) {
1007 return m_AlnQuality;
1013 m_AlnQuality =
value;
1021 if (!IsSetAlnQuality()) {
1026 return m_AlnQuality;
1038 return IsSetOrient();
1051 if (!CanGetOrient()) {
1068 if (!IsSetOrient()) {
1085 return IsSetPhysMapInt();
1098 if (!CanGetPhysMapInt()) {
1101 return m_PhysMapInt;
1107 m_PhysMapInt =
value;
1115 if (!IsSetPhysMapInt()) {
1120 return m_PhysMapInt;
1132 return IsSetLeftFlankNeighborPos();
1138 m_LeftFlankNeighborPos = 0;
1145 if (!CanGetLeftFlankNeighborPos()) {
1148 return m_LeftFlankNeighborPos;
1154 m_LeftFlankNeighborPos =
value;
1162 if (!IsSetLeftFlankNeighborPos()) {
1163 memset(&m_LeftFlankNeighborPos,
UnassignedByte(),
sizeof(m_LeftFlankNeighborPos));
1167 return m_LeftFlankNeighborPos;
1179 return IsSetRightFlankNeighborPos();
1185 m_RightFlankNeighborPos = 0;
1192 if (!CanGetRightFlankNeighborPos()) {
1195 return m_RightFlankNeighborPos;
1201 m_RightFlankNeighborPos =
value;
1209 if (!IsSetRightFlankNeighborPos()) {
1210 memset(&m_RightFlankNeighborPos,
UnassignedByte(),
sizeof(m_RightFlankNeighborPos));
1214 return m_RightFlankNeighborPos;
1226 return IsSetLeftContigNeighborPos();
1232 m_LeftContigNeighborPos = 0;
1239 if (!CanGetLeftContigNeighborPos()) {
1242 return m_LeftContigNeighborPos;
1248 m_LeftContigNeighborPos =
value;
1256 if (!IsSetLeftContigNeighborPos()) {
1257 memset(&m_LeftContigNeighborPos,
UnassignedByte(),
sizeof(m_LeftContigNeighborPos));
1261 return m_LeftContigNeighborPos;
1273 return IsSetRightContigNeighborPos();
1279 m_RightContigNeighborPos = 0;
1286 if (!CanGetRightContigNeighborPos()) {
1289 return m_RightContigNeighborPos;
1295 m_RightContigNeighborPos =
value;
1303 if (!IsSetRightContigNeighborPos()) {
1304 memset(&m_RightContigNeighborPos,
UnassignedByte(),
sizeof(m_RightContigNeighborPos));
1308 return m_RightContigNeighborPos;
1320 return IsSetNumberOfMismatches();
1326 m_NumberOfMismatches = 0;
1333 if (!CanGetNumberOfMismatches()) {
1336 return m_NumberOfMismatches;
1342 m_NumberOfMismatches =
value;
1350 if (!IsSetNumberOfMismatches()) {
1351 memset(&m_NumberOfMismatches,
UnassignedByte(),
sizeof(m_NumberOfMismatches));
1355 return m_NumberOfMismatches;
1367 return IsSetNumberOfDeletions();
1373 m_NumberOfDeletions = 0;
1380 if (!CanGetNumberOfDeletions()) {
1383 return m_NumberOfDeletions;
1389 m_NumberOfDeletions =
value;
1397 if (!IsSetNumberOfDeletions()) {
1398 memset(&m_NumberOfDeletions,
UnassignedByte(),
sizeof(m_NumberOfDeletions));
1402 return m_NumberOfDeletions;
1414 return IsSetNumberOfInsertions();
1420 m_NumberOfInsertions = 0;
1427 if (!CanGetNumberOfInsertions()) {
1430 return m_NumberOfInsertions;
1436 m_NumberOfInsertions =
value;
1444 if (!IsSetNumberOfInsertions()) {
1445 memset(&m_NumberOfInsertions,
UnassignedByte(),
sizeof(m_NumberOfInsertions));
1449 return m_NumberOfInsertions;
1461 return IsSetRefAllele();
1467 if (!CanGetRefAllele()) {
1476 m_RefAllele =
value;
1483 m_RefAllele = std::forward<CMapLoc_Base::C_Attlist::TRefAllele>(
value);
1491 if (!IsSetRefAllele()) {
Position of a single hit of a variation on a contig.
Base class for all serializable objects.
static char UnassignedByte(void)
void ThrowUnassigned(TMemberIndex index) const
#define ENUM_METHOD_NAME(EnumName)
static string UnassignedString(void)
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_DOCSUM_EXPORT
void ResetAsnFrom(void)
Reset AsnFrom data member.
CMapLoc_Base & operator=(const CMapLoc_Base &)
TPhysMapInt GetPhysMapInt(void) const
Get the PhysMapInt member data.
void ResetLocType(void)
Reset LocType data member.
void ResetPhysMapInt(void)
Reset PhysMapInt data member.
bool IsSetNumberOfMismatches(void) const
number of Mismatched positions in this alignment Check if a value has been assigned to NumberOfMismat...
bool IsSetOrient(void) const
Check if a value has been assigned to Orient data member.
bool CanGetPhysMapInt(void) const
Check if it is safe to call GetPhysMapInt method.
void ResetLeftFlankNeighborPos(void)
Reset LeftFlankNeighborPos data member.
TNumberOfMismatches & SetNumberOfMismatches(void)
Assign a value to NumberOfMismatches data member.
TLeftFlankNeighborPos & SetLeftFlankNeighborPos(void)
Assign a value to LeftFlankNeighborPos data member.
bool IsSetRightFlankNeighborPos(void) const
nearest aligned position in 3' flanking sequence of snp Check if a value has been assigned to RightFl...
TRightContigNeighborPos GetRightContigNeighborPos(void) const
Get the RightContigNeighborPos member data.
bool IsSetRightContigNeighborPos(void) const
nearest aligned position in 3' contig alignment of snp Check if a value has been assigned to RightCon...
TNumberOfInsertions GetNumberOfInsertions(void) const
Get the NumberOfInsertions member data.
int m_RightContigNeighborPos
list< CRef< CFxnSet > > TFxnSet
bool CanGetLocType(void) const
Check if it is safe to call GetLocType method.
TLeftContigNeighborPos & SetLeftContigNeighborPos(void)
Assign a value to LeftContigNeighborPos data member.
bool IsSetLeftFlankNeighborPos(void) const
nearest aligned position in 5' flanking sequence of snp Check if a value has been assigned to LeftFla...
int m_LeftContigNeighborPos
bool CanGetAsnFrom(void) const
Check if it is safe to call GetAsnFrom method.
bool CanGetNumberOfInsertions(void) const
Check if it is safe to call GetNumberOfInsertions method.
void ResetNumberOfMismatches(void)
Reset NumberOfMismatches data member.
TLocType GetLocType(void) const
Get the LocType member data.
TLocType & SetLocType(void)
Assign a value to LocType data member.
TRefAllele & SetRefAllele(void)
Assign a value to RefAllele data member.
Tparent::CMemberIndex< E_memberIndex, 15 > TmemberIndex
TLeftContigNeighborPos GetLeftContigNeighborPos(void) const
Get the LeftContigNeighborPos member data.
bool CanGetAlnQuality(void) const
Check if it is safe to call GetAlnQuality method.
TAsnFrom GetAsnFrom(void) const
Get the AsnFrom member data.
bool CanGetRefAllele(void) const
Check if it is safe to call GetRefAllele method.
TNumberOfDeletions GetNumberOfDeletions(void) const
Get the NumberOfDeletions member data.
TNumberOfInsertions & SetNumberOfInsertions(void)
Assign a value to NumberOfInsertions data member.
bool IsSetFxnSet(void) const
Check if a value has been assigned to FxnSet data member.
int m_LeftFlankNeighborPos
TAsnTo GetAsnTo(void) const
Get the AsnTo member data.
TNumberOfMismatches GetNumberOfMismatches(void) const
Get the NumberOfMismatches member data.
bool IsSetPhysMapInt(void) const
chromosome position as integer for sorting Check if a value has been assigned to PhysMapInt data memb...
bool CanGetAsnTo(void) const
Check if it is safe to call GetAsnTo method.
const TAttlist & GetAttlist(void) const
Get the Attlist member data.
TOrient GetOrient(void) const
Get the Orient member data.
TAlnQuality GetAlnQuality(void) const
Get the AlnQuality member data.
bool IsSetAsnFrom(void) const
beginning of variation as feature on contig Check if a value has been assigned to AsnFrom data member...
const TRefAllele & GetRefAllele(void) const
Get the RefAllele member data.
TPhysMapInt & SetPhysMapInt(void)
Assign a value to PhysMapInt data member.
bool IsSetLocType(void) const
Check if a value has been assigned to LocType data member.
void ResetAsnTo(void)
Reset AsnTo data member.
list< CRef< CFxnSet > > m_FxnSet
void ResetRightFlankNeighborPos(void)
Reset RightFlankNeighborPos data member.
bool CanGetNumberOfMismatches(void) const
Check if it is safe to call GetNumberOfMismatches method.
DECLARE_INTERNAL_TYPE_INFO()
bool IsSetAttlist(void) const
Check if a value has been assigned to Attlist data member.
void ResetAlnQuality(void)
Reset AlnQuality data member.
bool CanGetLeftFlankNeighborPos(void) const
Check if it is safe to call GetLeftFlankNeighborPos method.
EAttlist_locType
defines the seq-loc symbol if asn_from != asn_to
void ResetOrient(void)
Reset Orient data member.
bool IsSetAsnTo(void) const
end position of variation as feature on contig Check if a value has been assigned to AsnTo data membe...
C_Attlist(const C_Attlist &)
CMapLoc_Base(const CMapLoc_Base &)
bool CanGetOrient(void) const
Check if it is safe to call GetOrient method.
int m_RightFlankNeighborPos
bool IsSetLeftContigNeighborPos(void) const
nearest aligned position in 5' contig alignment of snp Check if a value has been assigned to LeftCont...
EAttlist_orient
orientation of refSNP sequence to contig sequence
TRightFlankNeighborPos & SetRightFlankNeighborPos(void)
Assign a value to RightFlankNeighborPos data member.
int TRightContigNeighborPos
void ResetLeftContigNeighborPos(void)
Reset LeftContigNeighborPos data member.
EAttlist_locType m_LocType
bool IsSetAlnQuality(void) const
alignment qualiity Check if a value has been assigned to AlnQuality data member.
bool CanGetFxnSet(void) const
Check if it is safe to call GetFxnSet method.
TRightFlankNeighborPos GetRightFlankNeighborPos(void) const
Get the RightFlankNeighborPos member data.
CRef< TAttlist > m_Attlist
TOrient & SetOrient(void)
Assign a value to Orient data member.
bool CanGetNumberOfDeletions(void) const
Check if it is safe to call GetNumberOfDeletions method.
C_Attlist & operator=(const C_Attlist &)
void ResetAttlist(void)
Reset Attlist data member.
TFxnSet & SetFxnSet(void)
Assign a value to FxnSet data member.
TRightContigNeighborPos & SetRightContigNeighborPos(void)
Assign a value to RightContigNeighborPos data member.
bool CanGetLeftContigNeighborPos(void) const
Check if it is safe to call GetLeftContigNeighborPos method.
TNumberOfDeletions & SetNumberOfDeletions(void)
Assign a value to NumberOfDeletions data member.
const TFxnSet & GetFxnSet(void) const
Get the FxnSet member data.
TAsnTo & SetAsnTo(void)
Assign a value to AsnTo data member.
void ResetNumberOfInsertions(void)
Reset NumberOfInsertions data member.
int TRightFlankNeighborPos
bool IsSetRefAllele(void) const
Check if a value has been assigned to RefAllele data member.
bool IsSetNumberOfDeletions(void) const
number of deletions in this alignment Check if a value has been assigned to NumberOfDeletions data me...
TAttlist & SetAttlist(void)
Assign a value to Attlist data member.
int TLeftContigNeighborPos
TAlnQuality & SetAlnQuality(void)
Assign a value to AlnQuality data member.
EAttlist_locType TLocType
bool CanGetRightContigNeighborPos(void) const
Check if it is safe to call GetRightContigNeighborPos method.
TAsnFrom & SetAsnFrom(void)
Assign a value to AsnFrom data member.
DECLARE_INTERNAL_TYPE_INFO()
TLeftFlankNeighborPos GetLeftFlankNeighborPos(void) const
Get the LeftFlankNeighborPos member data.
bool CanGetAttlist(void) const
Check if it is safe to call GetAttlist method.
bool CanGetRightFlankNeighborPos(void) const
Check if it is safe to call GetRightFlankNeighborPos method.
Tparent::CMemberIndex< E_memberIndex, 3 > TmemberIndex
int TLeftFlankNeighborPos
void ResetRightContigNeighborPos(void)
Reset RightContigNeighborPos data member.
bool IsSetNumberOfInsertions(void) const
number of insetions in this alignment Check if a value has been assigned to NumberOfInsertions data m...
void ResetNumberOfDeletions(void)
Reset NumberOfDeletions data member.
const GenericPointer< typename T::ValueType > T2 value