NCBI C++ ToolKit
Public Member Functions | Protected Attributes | List of all members
CClickableText Class Reference

Search Toolkit Book for CClickableText

#include <misc/discrepancy_report/clickable_item.hpp>

+ Inheritance diagram for CClickableText:
+ Collaboration diagram for CClickableText:

Public Member Functions

 CClickableText ()
 
 CClickableText (const string &text, bool selected=false, bool expanded=false, bool checked=false)
 
 ~CClickableText ()
 
const stringGetText () const
 
void SetText (const string &text)
 
bool IsSelected () const
 
void SetSelected (bool selected=true)
 
void SetSelfSelected (bool selected=true)
 
bool IsChecked () const
 
void SetSelfChecked (bool checked=true)
 
bool IsExpanded () const
 
void SetExpanded (bool expanded=true, bool recurse=false)
 
void SetSelfExpanded (bool expanded=true)
 
bool CanGetSubitems () const
 
const vector< CRef< CClickableText > > & GetSubitems () const
 
vector< CRef< CClickableText > > & SetSubitems ()
 
bool CanGetItems () const
 
const vector< CConstRef< CObject > > & GetObjects () const
 
vector< CConstRef< CObject > > & SetObjects ()
 
const vector< string > & GetObjdescs () const
 
vector< string > & SetObjdescs ()
 
vector< string > & SetAccessions ()
 
const vector< string > & GetAccessions () const
 
void SetSettingName (const string &str)
 
const stringGetSettingName () const
 
void SetAutofixFunc (const FAutofix fix_func)
 
const FAutofix GetAutofixFunc () 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
 

Protected Attributes

string m_Text
 
bool m_IsSelected
 
bool m_IsExpanded
 
bool m_IsChecked
 
vector< CRef< CClickableText > > m_Subitems
 
vector< CConstRef< CObject > > m_Objects
 
vector< stringm_Objdescs
 
vector< stringm_Accessions
 
string m_SettingName
 
FAutofix m_FixFunc
 

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 CAtomicCounter TCounter
 Counter type is CAtomiCounter. More...
 
typedef TCounter::TValue TCount
 Alias for value type of counter. More...
 
- Static Public Member Functions inherited from CObject
static NCBI_NORETURN void ThrowNullPointerException (void)
 Define method to throw null pointer exception. More...
 
static NCBI_NORETURN 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 49 of file clickable_item.hpp.

Constructor & Destructor Documentation

CClickableText::CClickableText ( )
inline

Definition at line 52 of file clickable_item.hpp.

CClickableText::CClickableText ( const string text,
bool  selected = false,
bool  expanded = false,
bool  checked = false 
)
inline

Definition at line 55 of file clickable_item.hpp.

CClickableText::~CClickableText ( )
inline

Definition at line 58 of file clickable_item.hpp.

Member Function Documentation

bool CClickableText::CanGetItems ( ) const
inline

Definition at line 78 of file clickable_item.hpp.

References m_Objdescs, and m_Objects.

bool CClickableText::CanGetSubitems ( ) const
inline

Definition at line 74 of file clickable_item.hpp.

References m_Subitems.

const vector<string>& CClickableText::GetAccessions ( ) const
inline

Definition at line 86 of file clickable_item.hpp.

References m_Accessions.

const FAutofix CClickableText::GetAutofixFunc ( ) const
inline

Definition at line 92 of file clickable_item.hpp.

References m_FixFunc.

const vector<string>& CClickableText::GetObjdescs ( ) const
inline

Definition at line 82 of file clickable_item.hpp.

References m_Objdescs.

const vector<CConstRef<CObject> >& CClickableText::GetObjects ( ) const
inline

Definition at line 79 of file clickable_item.hpp.

References m_Objects.

const string& CClickableText::GetSettingName ( ) const
inline

Definition at line 89 of file clickable_item.hpp.

References m_SettingName.

const vector<CRef<CClickableText> >& CClickableText::GetSubitems ( void  ) const
inline

Definition at line 75 of file clickable_item.hpp.

References m_Subitems.

const string& CClickableText::GetText ( void  ) const
inline

Definition at line 60 of file clickable_item.hpp.

References m_Text.

bool CClickableText::IsChecked ( void  ) const
inline

Definition at line 67 of file clickable_item.hpp.

References m_IsChecked.

bool CClickableText::IsExpanded ( ) const
inline

Definition at line 70 of file clickable_item.hpp.

References m_IsExpanded.

bool CClickableText::IsSelected ( ) const
inline

Definition at line 63 of file clickable_item.hpp.

References m_IsSelected.

vector<string>& CClickableText::SetAccessions ( )
inline

Definition at line 85 of file clickable_item.hpp.

References m_Accessions.

Referenced by CDiscRepOutput::x_OutputRepToGbenchItem().

void CClickableText::SetAutofixFunc ( const FAutofix  fix_func)
inline

Definition at line 91 of file clickable_item.hpp.

References m_FixFunc.

Referenced by CDiscRepOutput::x_OutputRepToGbenchItem().

void CClickableText::SetExpanded ( bool  expanded = true,
bool  recurse = false 
)
vector<string>& CClickableText::SetObjdescs ( )
inline

Definition at line 83 of file clickable_item.hpp.

References m_Objdescs.

Referenced by CDiscRepOutput::x_OutputRepToGbenchItem().

vector<CConstRef<CObject> >& CClickableText::SetObjects ( void  )
inline

Definition at line 80 of file clickable_item.hpp.

References m_Objects.

Referenced by CDiscRepOutput::x_OutputRepToGbenchItem().

void CClickableText::SetSelected ( bool  selected = true)
void CClickableText::SetSelfChecked ( bool  checked = true)
inline

Definition at line 68 of file clickable_item.hpp.

References m_IsChecked.

void CClickableText::SetSelfExpanded ( bool  expanded = true)
inline

Definition at line 72 of file clickable_item.hpp.

References m_IsExpanded.

Referenced by CDiscRepOutput::x_OutputRepToGbenchItem().

void CClickableText::SetSelfSelected ( bool  selected = true)
inline

Definition at line 65 of file clickable_item.hpp.

References m_IsSelected.

void CClickableText::SetSettingName ( const string str)
inline

Definition at line 88 of file clickable_item.hpp.

References m_SettingName, and str().

Referenced by CDiscRepOutput::x_OutputRepToGbenchItem().

vector<CRef<CClickableText> >& CClickableText::SetSubitems ( )
inline

Definition at line 76 of file clickable_item.hpp.

References m_Subitems.

Referenced by CDiscRepOutput::x_OutputRepToGbenchItem().

void CClickableText::SetText ( const string text)
inline

Definition at line 61 of file clickable_item.hpp.

References m_Text.

Member Data Documentation

vector<string> CClickableText::m_Accessions
protected

Definition at line 102 of file clickable_item.hpp.

Referenced by GetAccessions(), and SetAccessions().

FAutofix CClickableText::m_FixFunc
protected

Definition at line 104 of file clickable_item.hpp.

Referenced by GetAutofixFunc(), and SetAutofixFunc().

bool CClickableText::m_IsChecked
protected

Definition at line 98 of file clickable_item.hpp.

Referenced by IsChecked(), and SetSelfChecked().

bool CClickableText::m_IsExpanded
protected

Definition at line 97 of file clickable_item.hpp.

Referenced by IsExpanded(), and SetSelfExpanded().

bool CClickableText::m_IsSelected
protected

Definition at line 96 of file clickable_item.hpp.

Referenced by IsSelected(), and SetSelfSelected().

vector<string> CClickableText::m_Objdescs
protected

Definition at line 101 of file clickable_item.hpp.

Referenced by CanGetItems(), GetObjdescs(), and SetObjdescs().

vector<CConstRef<CObject> > CClickableText::m_Objects
protected

Definition at line 100 of file clickable_item.hpp.

Referenced by CanGetItems(), GetObjects(), and SetObjects().

string CClickableText::m_SettingName
protected

Definition at line 103 of file clickable_item.hpp.

Referenced by GetSettingName(), and SetSettingName().

vector<CRef<CClickableText> > CClickableText::m_Subitems
protected

Definition at line 99 of file clickable_item.hpp.

Referenced by CanGetSubitems(), GetSubitems(), and SetSubitems().

string CClickableText::m_Text
protected

Definition at line 95 of file clickable_item.hpp.

Referenced by GetText(), and SetText().


The documentation for this class was generated from the following file:
Modified on Thu Jul 28 20:11:07 2016 by modify_doxy.py rev. 506947