NCBI C++ ToolKit
|
Search Toolkit Book for CBaseCountItem
#include <objtools/format/items/basecount_item.hpp>
Public Member Functions | |
CBaseCountItem (CBioseqContext &ctx) | |
void | Format (IFormatter &formatter, IFlatTextOStream &text_os) const override |
void | GetCounts (SIZE_TYPE &a, SIZE_TYPE &c, SIZE_TYPE &g, SIZE_TYPE &t, SIZE_TYPE &other) const |
SIZE_TYPE | GetA (void) const |
SIZE_TYPE | GetC (void) const |
SIZE_TYPE | GetG (void) const |
SIZE_TYPE | GetT (void) const |
SIZE_TYPE | GetOther (void) const |
EItem | GetItemType () const override |
![]() | |
bool | IsSetObject (void) const |
const CSerialObject * | GetObject (void) const |
CBioseqContext * | GetContext (void) |
CBioseqContext * | GetContext (void) const |
bool | Skip (void) const |
bool | IsExternal (void) const |
~CFlatItem (void) | |
![]() | |
virtual | ~IFlatItem (void) |
![]() | |
CObject (void) | |
Constructor. More... | |
CObject (const CObject &src) | |
Copy constructor. More... | |
virtual | ~CObject (void) |
Destructor. More... | |
CObject & | operator= (const CObject &src) THROWS_NONE |
Assignment operator. More... | |
bool | CanBeDeleted (void) const THROWS_NONE |
Check if object can be deleted. More... | |
bool | IsAllocatedInPool (void) const THROWS_NONE |
Check if object is allocated in memory pool (not system heap) More... | |
bool | Referenced (void) const THROWS_NONE |
Check if object is referenced. More... | |
bool | ReferencedOnlyOnce (void) const THROWS_NONE |
Check if object is referenced only once. More... | |
void | AddReference (void) const |
Add reference to object. More... | |
void | RemoveReference (void) const |
Remove reference to object. More... | |
void | ReleaseReference (void) const |
Remove reference without deleting object. More... | |
virtual void | DoNotDeleteThisObject (void) |
Mark this object as not allocated in heap – do not delete this object. More... | |
virtual void | DoDeleteThisObject (void) |
Mark this object as allocated in heap – object can be deleted. More... | |
void * | operator new (size_t size) |
Define new operator for memory allocation. More... | |
void * | operator new[] (size_t size) |
Define new[] operator for 'array' memory allocation. More... | |
void | operator delete (void *ptr) |
Define delete operator for memory deallocation. More... | |
void | operator delete[] (void *ptr) |
Define delete[] operator for memory deallocation. More... | |
void * | operator new (size_t size, void *place) |
Define new operator. More... | |
void | operator delete (void *ptr, void *place) |
Define delete operator. More... | |
void * | operator new (size_t size, CObjectMemoryPool *place) |
Define new operator using memory pool. More... | |
void | operator delete (void *ptr, CObjectMemoryPool *place) |
Define delete operator. More... | |
virtual void | DebugDump (CDebugDumpContext ddc, unsigned int depth) const |
Define method for dumping debug information. More... | |
![]() | |
CDebugDumpable (void) | |
virtual | ~CDebugDumpable (void) |
void | DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const |
void | DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const |
void | DumpToConsole (void) const |
Private Member Functions | |
void | x_GatherInfo (CBioseqContext &ctx) override |
Private Attributes | |
TSeqPos | m_A |
TSeqPos | m_C |
TSeqPos | m_G |
TSeqPos | m_T |
TSeqPos | m_Other |
Definition at line 56 of file basecount_item.hpp.
CBaseCountItem::CBaseCountItem | ( | CBioseqContext & | ctx | ) |
Definition at line 48 of file basecount_item.cpp.
References ctx.
|
overridevirtual |
Implements CFlatItem.
Definition at line 60 of file basecount_item.cpp.
References IFormatter::FormatBasecount().
|
inline |
Definition at line 64 of file basecount_item.hpp.
References m_A.
Referenced by CGenbankFormatter::FormatBasecount().
|
inline |
Definition at line 65 of file basecount_item.hpp.
References m_C.
Referenced by CGenbankFormatter::FormatBasecount().
|
inline |
Definition at line 66 of file basecount_item.hpp.
References m_G.
Referenced by CGenbankFormatter::FormatBasecount().
|
overridevirtual |
Implements IFlatItem.
Definition at line 55 of file basecount_item.cpp.
References IFlatItem::eItem_BaseCount.
|
inline |
Definition at line 68 of file basecount_item.hpp.
References m_Other.
Referenced by CGenbankFormatter::FormatBasecount().
|
inline |
Definition at line 67 of file basecount_item.hpp.
References m_T.
Referenced by CGenbankFormatter::FormatBasecount().
|
overrideprivatevirtual |
Reimplemented from CFlatItem.
Definition at line 74 of file basecount_item.cpp.
References ctx, CSeqVectorTypes::eCaseConversion_lower, CBioseq_Handle::eCoding_Iupac, ITERATE_SIMPLE, kMax_UChar, m_A, m_C, m_G, m_Other, m_T, min(), CSeqVector::size(), and CFlatItem::x_SetSkip().
|
mutableprivate |
Definition at line 75 of file basecount_item.hpp.
Referenced by GetA(), GetCounts(), and x_GatherInfo().
|
private |
Definition at line 75 of file basecount_item.hpp.
Referenced by GetC(), GetCounts(), and x_GatherInfo().
|
private |
Definition at line 75 of file basecount_item.hpp.
Referenced by GetCounts(), GetG(), and x_GatherInfo().
|
private |
Definition at line 75 of file basecount_item.hpp.
Referenced by GetCounts(), GetOther(), and x_GatherInfo().
|
private |
Definition at line 75 of file basecount_item.hpp.
Referenced by GetCounts(), GetT(), and x_GatherInfo().