NCBI C++ ToolKit
|
Search Toolkit Book for CAutoDefSourceGroup
#include <objmgr/util/autodef_source_group.hpp>
Public Types | |
typedef vector< CRef< CAutoDefSourceDescription > > | TSourceDescriptionVector |
![]() | |
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... | |
Public Member Functions | |
CAutoDefSourceGroup () | |
CAutoDefSourceGroup (CAutoDefSourceGroup *value) | |
~CAutoDefSourceGroup () | |
unsigned int | GetNumDescriptions () |
void | AddSourceDescription (CRef< CAutoDefSourceDescription > tmp) |
CAutoDefSourceDescription * | GetSourceDescription (unsigned int index) |
void | GetAvailableModifiers (CAutoDefSourceDescription::TAvailableModifierVector &modifier_list) |
bool | HasTrickyHIV () |
bool | GetDefaultExcludeSp () |
void | AddSource (CRef< CAutoDefSourceDescription > src) |
bool | AddQual (bool IsOrgMod, int subtype, bool keepAfterSemicolon) |
bool | RemoveQual (bool IsOrgMod, int subtype) |
TSourceDescriptionVector | GetSrcList () const |
void | SortDescriptions () |
CRef< CAutoDefSourceGroup > | SplitGroup () |
vector< CRef< CAutoDefSourceGroup > > | RemoveNonMatchingDescriptions () |
CAutoDefSourceDescription::TModifierVector | GetModifiersPresentForAll () |
CAutoDefSourceDescription::TModifierVector | GetModifiersPresentForAny () |
int | Compare (const CAutoDefSourceGroup &s) const |
bool | operator> (const CAutoDefSourceGroup &src) const |
bool | operator< (const CAutoDefSourceGroup &src) const |
![]() | |
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_SortDescriptions (IAutoDefCombo *mod_combo) |
Private Attributes | |
TSourceDescriptionVector | m_SourceList |
Additional Inherited Members | |
![]() | |
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 void | EnableDebugDump (bool on) |
![]() | |
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... | |
![]() | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
Definition at line 54 of file autodef_source_group.hpp.
typedef vector<CRef<CAutoDefSourceDescription> > CAutoDefSourceGroup::TSourceDescriptionVector |
Definition at line 61 of file autodef_source_group.hpp.
CAutoDefSourceGroup::CAutoDefSourceGroup | ( | ) |
Definition at line 53 of file autodef_source_group.cpp.
Referenced by RemoveNonMatchingDescriptions(), and SplitGroup().
CAutoDefSourceGroup::CAutoDefSourceGroup | ( | CAutoDefSourceGroup * | value | ) |
Definition at line 59 of file autodef_source_group.cpp.
References _ASSERT, GetNumDescriptions(), GetSourceDescription(), and m_SourceList.
CAutoDefSourceGroup::~CAutoDefSourceGroup | ( | ) |
Definition at line 71 of file autodef_source_group.cpp.
Definition at line 82 of file autodef_source_group.cpp.
References m_SourceList, and NON_CONST_ITERATE.
void CAutoDefSourceGroup::AddSource | ( | CRef< CAutoDefSourceDescription > | src | ) |
Definition at line 76 of file autodef_source_group.cpp.
References m_SourceList.
void CAutoDefSourceGroup::AddSourceDescription | ( | CRef< CAutoDefSourceDescription > | tmp | ) |
Definition at line 275 of file autodef_source_group.cpp.
References m_SourceList, NULL, and tmp.
int CAutoDefSourceGroup::Compare | ( | const CAutoDefSourceGroup & | s | ) | const |
Definition at line 245 of file autodef_source_group.cpp.
References GetSrcList(), and m_SourceList.
void CAutoDefSourceGroup::GetAvailableModifiers | ( | CAutoDefSourceDescription::TAvailableModifierVector & | modifier_list | ) |
Definition at line 304 of file autodef_source_group.cpp.
References m_SourceList.
bool CAutoDefSourceGroup::GetDefaultExcludeSp | ( | ) |
Definition at line 337 of file autodef_source_group.cpp.
References CBioSource_Base::CanGetOrg(), COrg_ref_Base::CanGetTaxname(), NStr::Equal(), CBioSource_Base::GetOrg(), COrg_ref_Base::GetTaxname(), IsSpName(), and m_SourceList.
CAutoDefSourceDescription::TModifierVector CAutoDefSourceGroup::GetModifiersPresentForAll | ( | ) |
Definition at line 174 of file autodef_source_group.cpp.
References m_SourceList.
CAutoDefSourceDescription::TModifierVector CAutoDefSourceGroup::GetModifiersPresentForAny | ( | ) |
Definition at line 219 of file autodef_source_group.cpp.
References map_checker< Container >::clear(), map_checker< Container >::end(), CSubSource_Base::eSubtype_other, map_checker< Container >::find(), ITERATE, and m_SourceList.
unsigned int CAutoDefSourceGroup::GetNumDescriptions | ( | ) |
Definition at line 262 of file autodef_source_group.cpp.
References m_SourceList.
Referenced by CAutoDefSourceGroup().
CAutoDefSourceDescription * CAutoDefSourceGroup::GetSourceDescription | ( | unsigned int | index | ) |
Definition at line 268 of file autodef_source_group.cpp.
References _ASSERT, and m_SourceList.
Referenced by CAutoDefSourceGroup().
|
inline |
Definition at line 77 of file autodef_source_group.hpp.
Referenced by Compare().
bool CAutoDefSourceGroup::HasTrickyHIV | ( | ) |
Definition at line 314 of file autodef_source_group.cpp.
References m_SourceList.
|
inline |
Definition at line 92 of file autodef_source_group.hpp.
References Compare().
|
inline |
Definition at line 87 of file autodef_source_group.hpp.
References Compare().
vector< CRef< CAutoDefSourceGroup > > CAutoDefSourceGroup::RemoveNonMatchingDescriptions | ( | ) |
Definition at line 143 of file autodef_source_group.cpp.
References CAutoDefSourceGroup(), g(), m_SourceList, and ct::sort().
Definition at line 94 of file autodef_source_group.cpp.
References m_SourceList, and NON_CONST_ITERATE.
void CAutoDefSourceGroup::SortDescriptions | ( | ) |
Definition at line 115 of file autodef_source_group.cpp.
References m_SourceList, and ct::sort().
CRef< CAutoDefSourceGroup > CAutoDefSourceGroup::SplitGroup | ( | ) |
Definition at line 122 of file autodef_source_group.cpp.
References CAutoDefSourceGroup(), g(), m_SourceList, and NULL.
|
private |
Definition at line 286 of file autodef_source_group.cpp.
References m_SourceList, NStr::strcasecmp(), and tmp.
|
private |
Definition at line 99 of file autodef_source_group.hpp.
Referenced by AddQual(), AddSource(), AddSourceDescription(), CAutoDefSourceGroup(), Compare(), GetAvailableModifiers(), GetDefaultExcludeSp(), GetModifiersPresentForAll(), GetModifiersPresentForAny(), GetNumDescriptions(), GetSourceDescription(), HasTrickyHIV(), RemoveNonMatchingDescriptions(), RemoveQual(), SortDescriptions(), SplitGroup(), and x_SortDescriptions().