NCBI C++ ToolKit
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
CAutoDefSourceGroup Class Reference

Search Toolkit Book for CAutoDefSourceGroup

#include <objmgr/util/autodef_source_group.hpp>

+ Inheritance diagram for CAutoDefSourceGroup:
+ Collaboration diagram for CAutoDefSourceGroup:

Public Types

typedef vector< CRef< CAutoDefSourceDescription > > TSourceDescriptionVector
 
- 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< Uint8TCounter
 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)
 
CAutoDefSourceDescriptionGetSourceDescription (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< CAutoDefSourceGroupSplitGroup ()
 
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
 
- Public Member Functions inherited from CObject
 CObject (void)
 Constructor. More...
 
 CObject (const CObject &src)
 Copy constructor. More...
 
virtual ~CObject (void)
 Destructor. More...
 
CObjectoperator= (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
 

Private Member Functions

void x_SortDescriptions (IAutoDefCombo *mod_combo)
 

Private Attributes

TSourceDescriptionVector m_SourceList
 

Additional Inherited Members

- 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)
 
- 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...
 

Detailed Description

Definition at line 54 of file autodef_source_group.hpp.

Member Typedef Documentation

◆ TSourceDescriptionVector

Definition at line 61 of file autodef_source_group.hpp.

Constructor & Destructor Documentation

◆ CAutoDefSourceGroup() [1/2]

CAutoDefSourceGroup::CAutoDefSourceGroup ( )

Definition at line 53 of file autodef_source_group.cpp.

Referenced by RemoveNonMatchingDescriptions(), and SplitGroup().

◆ CAutoDefSourceGroup() [2/2]

CAutoDefSourceGroup::CAutoDefSourceGroup ( CAutoDefSourceGroup value)

◆ ~CAutoDefSourceGroup()

CAutoDefSourceGroup::~CAutoDefSourceGroup ( )

Definition at line 71 of file autodef_source_group.cpp.

Member Function Documentation

◆ AddQual()

bool CAutoDefSourceGroup::AddQual ( bool  IsOrgMod,
int  subtype,
bool  keepAfterSemicolon 
)

Definition at line 82 of file autodef_source_group.cpp.

References m_SourceList, and NON_CONST_ITERATE.

◆ AddSource()

void CAutoDefSourceGroup::AddSource ( CRef< CAutoDefSourceDescription src)

Definition at line 76 of file autodef_source_group.cpp.

References m_SourceList.

◆ AddSourceDescription()

void CAutoDefSourceGroup::AddSourceDescription ( CRef< CAutoDefSourceDescription tmp)

Definition at line 275 of file autodef_source_group.cpp.

References m_SourceList, NULL, and tmp.

◆ Compare()

int CAutoDefSourceGroup::Compare ( const CAutoDefSourceGroup s) const

Definition at line 245 of file autodef_source_group.cpp.

References GetSrcList(), and m_SourceList.

◆ GetAvailableModifiers()

void CAutoDefSourceGroup::GetAvailableModifiers ( CAutoDefSourceDescription::TAvailableModifierVector modifier_list)

Definition at line 304 of file autodef_source_group.cpp.

References m_SourceList.

◆ GetDefaultExcludeSp()

bool CAutoDefSourceGroup::GetDefaultExcludeSp ( )

◆ GetModifiersPresentForAll()

CAutoDefSourceDescription::TModifierVector CAutoDefSourceGroup::GetModifiersPresentForAll ( )

Definition at line 174 of file autodef_source_group.cpp.

References m_SourceList.

◆ GetModifiersPresentForAny()

CAutoDefSourceDescription::TModifierVector CAutoDefSourceGroup::GetModifiersPresentForAny ( )

◆ GetNumDescriptions()

unsigned int CAutoDefSourceGroup::GetNumDescriptions ( )

Definition at line 262 of file autodef_source_group.cpp.

References m_SourceList.

Referenced by CAutoDefSourceGroup().

◆ GetSourceDescription()

CAutoDefSourceDescription * CAutoDefSourceGroup::GetSourceDescription ( unsigned int  index)

Definition at line 268 of file autodef_source_group.cpp.

References _ASSERT, and m_SourceList.

Referenced by CAutoDefSourceGroup().

◆ GetSrcList()

TSourceDescriptionVector CAutoDefSourceGroup::GetSrcList ( ) const
inline

Definition at line 77 of file autodef_source_group.hpp.

Referenced by Compare().

◆ HasTrickyHIV()

bool CAutoDefSourceGroup::HasTrickyHIV ( )

Definition at line 314 of file autodef_source_group.cpp.

References m_SourceList.

◆ operator<()

bool CAutoDefSourceGroup::operator< ( const CAutoDefSourceGroup src) const
inline

Definition at line 92 of file autodef_source_group.hpp.

References Compare().

◆ operator>()

bool CAutoDefSourceGroup::operator> ( const CAutoDefSourceGroup src) const
inline

Definition at line 87 of file autodef_source_group.hpp.

References Compare().

◆ RemoveNonMatchingDescriptions()

vector< CRef< CAutoDefSourceGroup > > CAutoDefSourceGroup::RemoveNonMatchingDescriptions ( )

Definition at line 143 of file autodef_source_group.cpp.

References CAutoDefSourceGroup(), g(), m_SourceList, and ct::sort().

◆ RemoveQual()

bool CAutoDefSourceGroup::RemoveQual ( bool  IsOrgMod,
int  subtype 
)

Definition at line 94 of file autodef_source_group.cpp.

References m_SourceList, and NON_CONST_ITERATE.

◆ SortDescriptions()

void CAutoDefSourceGroup::SortDescriptions ( )

Definition at line 115 of file autodef_source_group.cpp.

References m_SourceList, and ct::sort().

◆ SplitGroup()

CRef< CAutoDefSourceGroup > CAutoDefSourceGroup::SplitGroup ( )

Definition at line 122 of file autodef_source_group.cpp.

References CAutoDefSourceGroup(), g(), m_SourceList, and NULL.

◆ x_SortDescriptions()

void CAutoDefSourceGroup::x_SortDescriptions ( IAutoDefCombo mod_combo)
private

Definition at line 286 of file autodef_source_group.cpp.

References m_SourceList, NStr::strcasecmp(), and tmp.

Member Data Documentation

◆ m_SourceList

TSourceDescriptionVector CAutoDefSourceGroup::m_SourceList
private

The documentation for this class was generated from the following files:
Modified on Wed Jun 19 17:00:57 2024 by modify_doxy.py rev. 669887