NCBI C++ ToolKit
|
Search Toolkit Book for CProt_ref
#include <objects/seqfeat/Prot_ref.hpp>
Public Member Functions | |
CProt_ref (void) | |
~CProt_ref (void) | |
void | GetLabel (string *label) const |
void | AutoFixEC () |
void | RemoveBadEC () |
Public Member Functions inherited from CProt_ref_Base | |
CProt_ref_Base (void) | |
virtual | ~CProt_ref_Base (void) |
DECLARE_INTERNAL_TYPE_INFO () | |
bool | IsSetName (void) const |
protein name Check if a value has been assigned to Name data member. More... | |
bool | CanGetName (void) const |
Check if it is safe to call GetName method. More... | |
void | ResetName (void) |
Reset Name data member. More... | |
const TName & | GetName (void) const |
Get the Name member data. More... | |
TName & | SetName (void) |
Assign a value to Name data member. More... | |
bool | IsSetDesc (void) const |
description (instead of name) Check if a value has been assigned to Desc data member. More... | |
bool | CanGetDesc (void) const |
Check if it is safe to call GetDesc method. More... | |
void | ResetDesc (void) |
Reset Desc data member. More... | |
const TDesc & | GetDesc (void) const |
Get the Desc member data. More... | |
void | SetDesc (const TDesc &value) |
Assign a value to Desc data member. More... | |
void | SetDesc (TDesc &&value) |
TDesc & | SetDesc (void) |
Assign a value to Desc data member. More... | |
bool | IsSetEc (void) const |
E.C. More... | |
bool | CanGetEc (void) const |
Check if it is safe to call GetEc method. More... | |
void | ResetEc (void) |
Reset Ec data member. More... | |
const TEc & | GetEc (void) const |
Get the Ec member data. More... | |
TEc & | SetEc (void) |
Assign a value to Ec data member. More... | |
bool | IsSetActivity (void) const |
activities Check if a value has been assigned to Activity data member. More... | |
bool | CanGetActivity (void) const |
Check if it is safe to call GetActivity method. More... | |
void | ResetActivity (void) |
Reset Activity data member. More... | |
const TActivity & | GetActivity (void) const |
Get the Activity member data. More... | |
TActivity & | SetActivity (void) |
Assign a value to Activity data member. More... | |
bool | IsSetDb (void) const |
ids in other dbases Check if a value has been assigned to Db data member. More... | |
bool | CanGetDb (void) const |
Check if it is safe to call GetDb method. More... | |
void | ResetDb (void) |
Reset Db data member. More... | |
const TDb & | GetDb (void) const |
Get the Db member data. More... | |
TDb & | SetDb (void) |
Assign a value to Db data member. More... | |
bool | IsSetProcessed (void) const |
Check if a value has been assigned to Processed data member. More... | |
bool | CanGetProcessed (void) const |
Check if it is safe to call GetProcessed method. More... | |
void | ResetProcessed (void) |
Reset Processed data member. More... | |
void | SetDefaultProcessed (void) |
Assign default value to Processed data member. More... | |
TProcessed | GetProcessed (void) const |
Get the Processed member data. More... | |
void | SetProcessed (TProcessed value) |
Assign a value to Processed data member. More... | |
TProcessed & | SetProcessed (void) |
Assign a value to Processed data member. More... | |
virtual void | Reset (void) |
Reset the whole object. More... | |
Public Member Functions inherited from CSerialObject | |
CSerialObject (void) | |
virtual | ~CSerialObject (void) |
virtual const CTypeInfo * | GetThisTypeInfo (void) const =0 |
virtual void | Assign (const CSerialObject &source, ESerialRecursionMode how=eRecursive) |
Set object to copy of another one. More... | |
virtual bool | Equals (const CSerialObject &object, ESerialRecursionMode how=eRecursive) const |
Check if both objects contain the same values. More... | |
virtual void | DebugDump (CDebugDumpContext ddc, unsigned int depth) const |
Define method for dumping debug information. More... | |
void | ThrowUnassigned (TMemberIndex index) const |
void | ThrowUnassigned (TMemberIndex index, const char *file_name, int file_line) const |
bool | HasNamespaceName (void) const |
Check if object data type has namespace name. More... | |
const string & | GetNamespaceName (void) const |
Get namespace name. More... | |
bool | HasNamespacePrefix (void) const |
Check if data type has namespace prefix. More... | |
const string & | GetNamespacePrefix (void) const |
Get namespace prefix. More... | |
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... | |
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 |
Private Types | |
typedef CProt_ref_Base | Tparent |
Private Member Functions | |
CProt_ref (const CProt_ref &value) | |
CProt_ref & | operator= (const CProt_ref &value) |
Additional Inherited Members | |
Static Public Attributes inherited from CSerialObject | |
static const char * | ms_UnassignedStr = "<*unassigned*>" |
static const char | ms_UnassignedByte = char(0xcd) |
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 50 of file Prot_ref.hpp.
|
private |
Definition at line 52 of file Prot_ref.hpp.
Enzyme Commission file status.
Definition at line 72 of file Prot_ref.hpp.
Enzyme Commission number status.
Definition at line 63 of file Prot_ref.hpp.
|
inline |
Definition at line 113 of file Prot_ref.hpp.
CProt_ref::~CProt_ref | ( | void | ) |
Definition at line 57 of file Prot_ref.cpp.
void CProt_ref::AutoFixEC | ( | ) |
Definition at line 321 of file Prot_ref.cpp.
References eEC_replaced, GetECNumberReplacement(), GetECNumberStatus(), NStr::IsBlank(), CProt_ref_Base::IsSetEc(), and CProt_ref_Base::SetEc().
Referenced by RemoveBadEC().
|
static |
Definition at line 85 of file Prot_ref.cpp.
References s_ECNumAmbiguousStatus.
Referenced by CSingleFeatValidator::x_ReportECNumFileStatus().
Return a replaced EC number's replacement.
Definition at line 204 of file Prot_ref.cpp.
References map_checker< Container >::end(), map_checker< Container >::find(), kEmptyStr, s_ECNumberMapsInitialized, s_ECNumberReplacementMap, and s_InitializeECNumberMaps().
Referenced by CUpdateReplacedECNumbers::apply(), AutoFixEC(), BOOST_AUTO_TEST_CASE(), IsECNumberSplit(), CUpdateECNumbers::operator()(), and CCleanup::UpdateECNumbers().
|
static |
Determine an EC number's validity and specificity.
Definition at line 190 of file Prot_ref.cpp.
References eEC_unknown, map_checker< Container >::end(), map_checker< Container >::find(), s_ECNumberMapsInitialized, s_ECNumberStatusMap, and s_InitializeECNumberMaps().
Referenced by CUpdateReplacedECNumbers::apply(), AutoFixEC(), BOOST_AUTO_TEST_CASE(), IsECNumberSplit(), CUpdateECNumbers::operator()(), RemoveBadEC(), CCleanup::RemoveBadECNumbers(), CCleanup::UpdateECNumbers(), CProtValidator::x_ValidateECNumbers(), and CSingleFeatValidator::x_ValidateGbQual().
|
static |
Definition at line 86 of file Prot_ref.cpp.
References s_ECNumDeletedStatus.
Referenced by CSingleFeatValidator::x_ReportECNumFileStatus().
|
static |
Definition at line 87 of file Prot_ref.cpp.
References s_ECNumReplacedStatus.
Referenced by CSingleFeatValidator::x_ReportECNumFileStatus().
|
static |
Definition at line 88 of file Prot_ref.cpp.
References s_ECNumSpecificStatus.
Referenced by CSingleFeatValidator::x_ReportECNumFileStatus().
void CProt_ref::GetLabel | ( | string * | label | ) | const |
Definition at line 62 of file Prot_ref.cpp.
References ctll::empty(), CProt_ref_Base::GetDb(), CProt_ref_Base::GetDesc(), CProt_ref_Base::GetName(), CProt_ref_Base::IsSetDb(), CProt_ref_Base::IsSetDesc(), CProt_ref_Base::IsSetName(), and label.
Referenced by CEditSequence::GetFeatures(), CTabularFormatter_ProtRef::Print(), s_GetCdregionContentLabel(), s_GetCdregionLabel(), and s_GetContentLabel().
Definition at line 226 of file Prot_ref.cpp.
References eEC_replaced, NStr::Find(), GetECNumberReplacement(), and GetECNumberStatus().
Referenced by BOOST_AUTO_TEST_CASE(), CCleanup::RemoveBadECNumbers(), CCleanup::UpdateECNumbers(), CProtValidator::x_ValidateECNumbers(), and CSingleFeatValidator::x_ValidateGbQual().
Verify correct form of EC number.
Definition at line 257 of file Prot_ref.cpp.
References NStr::IsBlank(), and isdigit().
Referenced by CUpdateReplacedECNumbers::apply(), BOOST_AUTO_TEST_CASE(), CProtValidator::x_ValidateECNumbers(), and CSingleFeatValidator::x_ValidateGbQual().
void CProt_ref::RemoveBadEC | ( | ) |
Definition at line 340 of file Prot_ref.cpp.
References AutoFixEC(), eEC_deleted, eEC_replaced, eEC_unknown, ctll::empty(), GetECNumberStatus(), CProt_ref_Base::IsSetEc(), CProt_ref_Base::ResetEc(), and CProt_ref_Base::SetEc().