NCBI C++ ToolKit
Sparse_seg.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: Sparse_seg.hpp 47246 2010-09-23 12:14:41Z vasilche $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Author: Kamen Todorov
27  *
28  * File Description:
29  * Sparse-seg
30  *
31  */
32 
33 /// @file Sparse_seg.hpp
34 /// User-defined methods of the data storage class.
35 ///
36 /// This file was originally generated by application DATATOOL
37 /// using the following specifications:
38 /// 'seqalign.asn'.
39 ///
40 /// New methods or data members can be added to it if needed.
41 /// See also: Sparse_seg_.hpp
42 
43 
44 #ifndef OBJECTS_SEQALIGN_SPARSE_SEG_HPP
45 #define OBJECTS_SEQALIGN_SPARSE_SEG_HPP
46 
47 
50 
51 
53 
54 BEGIN_objects_SCOPE // namespace ncbi::objects::
55 
56 /////////////////////////////////////////////////////////////////////////////
58 {
60 public:
61  // constructor
62  CSparse_seg(void);
63  // destructor
64  ~CSparse_seg(void);
65 
66  /// types
67  typedef int TDim;
68 
69  /// Validators
70  void Validate (bool full_test = false) const;
71  TDim CheckNumRows(void) const;
72 
73 
74  // GetSeqRange
75  CRange<TSeqPos> GetSeqRange(TDim row) const;
76  TSeqPos GetSeqStart(TDim row) const;
77  TSeqPos GetSeqStop(TDim row) const;
78 
79  // Get Seq_id (the first one if segments have different strands).
80  const CSeq_id& GetSeq_id(TDim row) const;
81 
82  // Get strand (the first one if segments have different strands).
83  ENa_strand GetSeqStrand(TDim row) const;
84 
85 private:
86  // Prohibit copy constructor and assignment operator
89 
90 };
91 
92 /////////////////// CSparse_seg inline methods
93 
94 // constructor
95 inline
97 {
98 }
99 
100 
101 /////////////////// end of CSparse_seg inline methods
102 
103 
104 END_objects_SCOPE // namespace ncbi::objects::
105 
107 
108 
109 #endif // OBJECTS_SEQALIGN_SPARSE_SEG_HPP
110 /* Original file checksum: lines: 86, chars: 2441, CRC32: 95d9afeb */
Data storage class.
==========================================================================
Definition: Sparse_seg_.hpp:86
CSparse_seg(void)
Definition: Sparse_seg.hpp:96
CSparse_seg & operator=(const CSparse_seg &value)
CSparse_seg_Base Tparent
Definition: Sparse_seg.hpp:59
int TDim
types
Definition: Sparse_seg.hpp:67
CSparse_seg(const CSparse_seg &value)
unsigned int TSeqPos
Type for sequence locations and lengths.
Definition: ncbimisc.hpp:875
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define NCBI_SEQALIGN_EXPORT
Definition: ncbi_export.h:744
ENa_strand
strand of nucleic acid
Definition: Na_strand_.hpp:64
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1227
#define row(bind, expected)
Definition: string_bind.c:73
Modified on Sat Apr 27 11:22:18 2024 by modify_doxy.py rev. 669887