Code::Blocks  SVN r11506
Public Member Functions | Private Attributes | List of all members
GotoFunctionDlg::Iterator Struct Reference

#include <gotofunctiondlg.h>

Inheritance diagram for GotoFunctionDlg::Iterator:
Collaboration diagram for GotoFunctionDlg::Iterator:

Public Member Functions

 Iterator ()
 
void AddToken (const FunctionToken &token)
 
const FunctionTokenGetToken (int index) const
 
int GetTotalCount () const override
 
const wxStringGetItemFilterString (int index) const override
 
wxString GetDisplayText (int index, int column) const override
 
void SetColumnMode (bool flag)
 
int GetColumnWidth (int column) const override
 
void CalcColumnWidth (wxListCtrl &list) override
 
void Sort ()
 
- Public Member Functions inherited from IncrementalSelectIteratorIndexed
 ~IncrementalSelectIteratorIndexed () override
 
int GetFilteredCount () const override
 
void Reset () override
 
void AddIndex (int index) override
 
int GetUnfilteredIndex (int index) const override
 
- Public Member Functions inherited from IncrementalSelectIterator
virtual ~IncrementalSelectIterator ()
 

Private Attributes

std::vector< FunctionTokenm_tokens
 
int m_columnLength [3]
 
bool m_columnMode
 0 is for non-column mode, 1 and 2 are for column mode. More...
 

Additional Inherited Members

- Protected Attributes inherited from IncrementalSelectIteratorIndexed
std::vector< int > m_indices
 

Detailed Description

Definition at line 47 of file gotofunctiondlg.h.

Constructor & Destructor Documentation

◆ Iterator()

GotoFunctionDlg::Iterator::Iterator ( )

Definition at line 32 of file gotofunctiondlg.cpp.

References m_columnMode.

Member Function Documentation

◆ AddToken()

void GotoFunctionDlg::Iterator::AddToken ( const FunctionToken token)

Definition at line 36 of file gotofunctiondlg.cpp.

References m_tokens.

Referenced by CodeCompletion::OnGotoFunction().

◆ CalcColumnWidth()

void GotoFunctionDlg::Iterator::CalcColumnWidth ( wxListCtrl list)
overridevirtual

Reimplemented from IncrementalSelectIterator.

Definition at line 84 of file gotofunctiondlg.cpp.

References m_columnLength, m_tokens, and wxT.

◆ GetColumnWidth()

int GotoFunctionDlg::Iterator::GetColumnWidth ( int  column) const
overridevirtual

Reimplemented from IncrementalSelectIterator.

Definition at line 103 of file gotofunctiondlg.cpp.

References m_columnLength, and m_columnMode.

Referenced by GotoFunctionDlg::SwitchMode().

◆ GetDisplayText()

wxString GotoFunctionDlg::Iterator::GetDisplayText ( int  index,
int  column 
) const
overridevirtual

◆ GetItemFilterString()

const wxString & GotoFunctionDlg::Iterator::GetItemFilterString ( int  index) const
overridevirtual

Implements IncrementalSelectIterator.

Definition at line 54 of file gotofunctiondlg.cpp.

References m_tokens.

◆ GetToken()

auto GotoFunctionDlg::Iterator::GetToken ( int  index) const

Definition at line 41 of file gotofunctiondlg.cpp.

References m_tokens.

Referenced by CodeCompletion::OnGotoFunction().

◆ GetTotalCount()

int GotoFunctionDlg::Iterator::GetTotalCount ( ) const
overridevirtual

Implements IncrementalSelectIterator.

Definition at line 49 of file gotofunctiondlg.cpp.

References m_tokens.

◆ SetColumnMode()

void GotoFunctionDlg::Iterator::SetColumnMode ( bool  flag)

Definition at line 79 of file gotofunctiondlg.cpp.

References m_columnMode.

Referenced by GotoFunctionDlg::SwitchMode().

◆ Sort()

void GotoFunctionDlg::Iterator::Sort ( )

Member Data Documentation

◆ m_columnLength

int GotoFunctionDlg::Iterator::m_columnLength[3]
private

Definition at line 67 of file gotofunctiondlg.h.

Referenced by CalcColumnWidth(), and GetColumnWidth().

◆ m_columnMode

bool GotoFunctionDlg::Iterator::m_columnMode
private

0 is for non-column mode, 1 and 2 are for column mode.

Definition at line 68 of file gotofunctiondlg.h.

Referenced by GetColumnWidth(), GetDisplayText(), Iterator(), and SetColumnMode().

◆ m_tokens

std::vector<FunctionToken> GotoFunctionDlg::Iterator::m_tokens
private

The documentation for this struct was generated from the following files: