NCBI C++ ToolKit
|
Search Toolkit Book for CTrans_table
#include <objects/seqfeat/Genetic_code_table.hpp>
Public Member Functions | |
CTrans_table (const CGenetic_code &) | |
~CTrans_table (void) | |
char | GetCodonResidue (int state) const |
char | GetStartResidue (int state) const |
char | GetStopResidue (int state) const |
bool | IsOrfStart (int state) const |
bool | IsAmbigStart (int state) const |
bool | IsAnyStart (int state) const |
bool | IsOrfStop (int state) const |
bool | IsATGStart (int state) const |
bool | IsAltStart (int state) const |
Public Member Functions inherited from CObject | |
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... | |
Public Member Functions inherited from CDebugDumpable | |
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 |
Static Public Member Functions | |
static int | SetCodonState (unsigned char ch1, unsigned char ch2, unsigned char ch3) |
static int | NextCodonState (int state, unsigned char ch) |
static int | RevCompState (int state) |
Static Public Member Functions inherited from CObject | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (void) |
Define method to throw null pointer exception. More... | |
static NCBI_XNCBI_EXPORT void | ThrowNullPointerException (const type_info &type) |
static EAllocFillMode | GetAllocFillMode (void) |
static void | SetAllocFillMode (EAllocFillMode mode) |
static void | SetAllocFillMode (const string &value) |
Set mode from configuration parameter value. More... | |
Static Public Member Functions inherited from CDebugDumpable | |
static void | EnableDebugDump (bool on) |
Private Member Functions | |
void | x_InitFsaTransl (const string *ncbieaa, const string *sncbieaa) const |
Static Private Member Functions | |
static void | x_InitFsaTable (void) |
Private Attributes | |
char | m_AminoAcid [4097] |
char | m_OrfStart [4097] |
char | m_OrfStop [4097] |
Static Private Attributes | |
static int | sm_NextState [4097] |
static int | sm_RvCmpState [4097] |
static int | sm_BaseToIdx [256] |
Friends | |
class | CGen_code_table_imp |
Additional Inherited Members | |
Public Types inherited from CObject | |
enum | EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } |
Control filling of newly allocated memory. More... | |
typedef CObjectCounterLocker | TLockerType |
Default locker type for CRef. More... | |
typedef atomic< Uint8 > | TCounter |
Counter type is CAtomiCounter. More... | |
typedef Uint8 | TCount |
Alias for value type of counter. More... | |
Static Public Attributes inherited from CObject | |
static const TCount | eCounterBitsCanBeDeleted = 1 << 0 |
Define possible object states. More... | |
static const TCount | eCounterBitsInPlainHeap = 1 << 1 |
Heap signature was found. More... | |
static const TCount | eCounterBitsPlaceMask |
Mask for 'in heap' state flags. More... | |
static const int | eCounterStep = 1 << 2 |
Skip over the "in heap" bits. More... | |
static const TCount | eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2) |
Minimal value for valid objects (reference counter is zero) Must be a single bit value. More... | |
static const TCount | eCounterStateMask |
Valid object, and object in heap. More... | |
Protected Member Functions inherited from CObject | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Definition at line 93 of file Genetic_code_table.hpp.
CTrans_table::CTrans_table | ( | const CGenetic_code & | gc | ) |
Definition at line 478 of file Genetic_code_table.cpp.
References CGenetic_code_Base::C_E::e_Ncbieaa, CGenetic_code_Base::C_E::e_Sncbieaa, eUnknown, gcd(), CGenetic_code_Base::Get(), ITERATE, NCBI_THROW, and x_InitFsaTransl().
CTrans_table::~CTrans_table | ( | void | ) |
Definition at line 60 of file Genetic_code_table.cpp.
|
inline |
Definition at line 226 of file Genetic_code_table.hpp.
References m_AminoAcid.
Referenced by ExtendCDSToStopCodon(), ExtendToStopCodon(), CCleanup::ExtendToStopCodon(), CScoreBuilder::GetBlastScoreProtToNucl(), CExtendCDSToStop::GetCommand(), s_GetSplicedSegIdentityMismatch(), CAlnVec::TranslateNAToAA(), CSparseAln::TranslateNAToAA(), CTranslationTable::TranslateStartTriplet(), CSeqTranslator::TranslateToProtein(), CTranslationTable::TranslateTriplet(), CFeaturePropagator::x_ExtendToStopCodon(), CFeatureGenerator::SImplementation::x_SetComment(), x_Translate(), and CSFTranslationJob::x_Translate().
|
inline |
Definition at line 233 of file Genetic_code_table.hpp.
References m_OrfStart.
Referenced by CScoreBuilder::GetBlastScoreProtToNucl(), IsAmbigStart(), IsAnyStart(), IsOrfStart(), s_GetSplicedSegIdentityMismatch(), CTranslationTable::TranslateStartTriplet(), CSeqTranslator::TranslateToProtein(), CFeatureGenerator::SImplementation::x_SetComment(), and x_Translate().
|
inline |
Definition at line 240 of file Genetic_code_table.hpp.
References m_OrfStop.
Referenced by IsOrfStop(), and x_Translate().
Definition at line 278 of file Genetic_code_table.hpp.
References IsOrfStart().
Referenced by x_Translate(), and CSFTranslationJob::x_Translate().
Definition at line 253 of file Genetic_code_table.hpp.
References GetStartResidue().
Definition at line 259 of file Genetic_code_table.hpp.
References GetStartResidue().
Referenced by CScore_StartStopCodon::Get().
Definition at line 271 of file Genetic_code_table.hpp.
References IsOrfStart().
Definition at line 247 of file Genetic_code_table.hpp.
References GetStartResidue().
Referenced by CInternalStopFinder::FindStartStopRanges(), IsAltStart(), IsATGStart(), and s_CdsStartCodon().
Definition at line 265 of file Genetic_code_table.hpp.
References GetStopResidue().
Referenced by CInternalStopFinder::FindStartStopRanges(), CScore_StartStopCodon::Get(), s_CdsStopCodon(), s_InframeUpstreamStop(), and s_PrematureStopCodon().
Definition at line 211 of file Genetic_code_table.hpp.
References sm_BaseToIdx, and sm_NextState.
Referenced by ExtendCDSToStopCodon(), ExtendToStopCodon(), CCleanup::ExtendToStopCodon(), CInternalStopFinder::FindStartStopRanges(), CScoreBuilder::GetBlastScoreProtToNucl(), CExtendCDSToStop::GetCommand(), CAlnVec::TranslateNAToAA(), CSparseAln::TranslateNAToAA(), CSeqTranslator::TranslateToProtein(), CFeaturePropagator::x_ExtendToStopCodon(), x_Translate(), and CSFTranslationJob::x_Translate().
Definition at line 219 of file Genetic_code_table.hpp.
References sm_RvCmpState.
|
inlinestatic |
Definition at line 201 of file Genetic_code_table.hpp.
References ch1, ch2, ch3, and sm_BaseToIdx.
Referenced by CInternalStopFinder::FindStartStopRanges(), CScore_StartStopCodon::Get(), s_CdsStartCodon(), s_CdsStopCodon(), s_GetSplicedSegIdentityMismatch(), s_InframeUpstreamStop(), s_PrematureStopCodon(), CTranslationTable::TranslateStartTriplet(), CTranslationTable::TranslateTriplet(), and CFeatureGenerator::SImplementation::x_SetComment().
|
staticprivate |
Definition at line 90 of file Genetic_code_table.cpp.
References eBase_gap, eBase_N, eBase_T, i, int, r(), sm_BaseToIdx, sm_NextState, sm_RvCmpState, st(), and tolower().
Referenced by CGen_code_table_imp::CGen_code_table_imp().
|
private |
Definition at line 139 of file Genetic_code_table.cpp.
References eBase_A, eBase_C, eBase_G, eBase_gap, eBase_N, eBase_T, i, m_AminoAcid, m_OrfStart, m_OrfStop, r(), and st().
Referenced by CTrans_table().
|
friend |
Definition at line 139 of file Genetic_code_table.hpp.
|
mutableprivate |
Definition at line 131 of file Genetic_code_table.hpp.
Referenced by GetCodonResidue(), and x_InitFsaTransl().
|
mutableprivate |
Definition at line 132 of file Genetic_code_table.hpp.
Referenced by GetStartResidue(), and x_InitFsaTransl().
|
mutableprivate |
Definition at line 133 of file Genetic_code_table.hpp.
Referenced by GetStopResidue(), and x_InitFsaTransl().
|
staticprivate |
Definition at line 125 of file Genetic_code_table.hpp.
Referenced by NextCodonState(), SetCodonState(), and x_InitFsaTable().
|
staticprivate |
Definition at line 123 of file Genetic_code_table.hpp.
Referenced by CGen_code_table_imp::CGen_code_table_imp(), NextCodonState(), and x_InitFsaTable().
|
staticprivate |
Definition at line 124 of file Genetic_code_table.hpp.
Referenced by RevCompState(), and x_InitFsaTable().