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

Go to the SVN repository for this file.

1 /* $Id: TMgr_AnnotCounts.hpp 59932 2013-09-27 10:09:37Z meric $
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  */
27 
28 /// @file TMgr_AnnotCounts.hpp
29 /// User-defined methods of the data storage class.
30 ///
31 /// See also: TMgr_AnnotCounts_.hpp
32 
33 
34 #ifndef OBJECTS_TRACKMGR_TMGR_ANNOTCOUNTS_HPP
35 #define OBJECTS_TRACKMGR_TMGR_ANNOTCOUNTS_HPP
36 
40 
41 
43 BEGIN_objects_SCOPE // namespace ncbi::objects::
44 
45 
46 /////////////////////////////////////////////////////////////////////////////
48 {
50 public:
51  CTMgr_AnnotCounts(void);
52  ~CTMgr_AnnotCounts(void);
53 
54  void Add(ETMgr_AnnotType type, Int8 count);
55  void AddPosition(ETMgr_AnnotType type, Uint8 start, Uint8 stop);
56  objects::CTMgr_TypeStat::TCount GetCount(ETMgr_AnnotType type) const;
57 
58 protected:
61 
62 protected:
63  TTypeStatRef x_GetCount(ETMgr_AnnotType type) const;
64 
65 private:
67 
68 private:
69  // Prohibit copy constructor and assignment operator
72 };
73 
74 
75 END_objects_SCOPE // namespace ncbi::objects::
77 
78 
79 #endif // OBJECTS_TRACKMGR_TMGR_ANNOTCOUNTS_HPP
80 
Data storage class.
User-defined methods of the data storage class.
User-defined methods of the data storage class.
CRef –.
Definition: ncbiobj.hpp:618
CTMgr_AnnotCounts_Base –.
CTMgr_AnnotCounts_Base Tparent
CTMgr_AnnotCounts(const CTMgr_AnnotCounts &value)
CTMgr_AnnotCounts & operator=(const CTMgr_AnnotCounts &value)
map< int, TTypeStatRef > TCountMap
CRef< CTMgr_TypeStat > TTypeStatRef
char value[7]
Definition: config.c:431
int64_t Int8
8-byte (64-bit) signed integer
Definition: ncbitype.h:104
uint64_t Uint8
8-byte (64-bit) unsigned integer
Definition: ncbitype.h:105
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
ETMgr_AnnotType
Access to ETMgr_AnnotType's attributes (values, names) as defined in spec.
Definition: type.c:6
#define NCBI_TRACKMGR_EXPORT
Modified on Wed Feb 21 09:56:17 2024 by modify_doxy.py rev. 669887