Code::Blocks  SVN r11506
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CodeRefactoring Class Reference

#include <coderefactoring.h>

Collaboration diagram for CodeRefactoring:

Public Member Functions

 CodeRefactoring (NativeParser &np)
 
virtual ~CodeRefactoring ()
 
void FindReferences ()
 
void RenameSymbols ()
 

Private Types

typedef std::list< crSearchDataSearchDataList
 
typedef std::map< wxString, SearchDataListSearchDataMap
 

Private Member Functions

size_t SearchInFiles (const wxArrayString &files, const wxString &targetText)
 
size_t VerifyResult (const TokenIdxSet &targetResult, const wxString &targetText, bool isLocalVariable)
 
void Find (cbStyledTextCtrl *control, const wxString &file, const wxString &target)
 
wxString GetSymbolUnderCursor ()
 
void DoFindReferences ()
 
void DoRenameSymbols (const wxString &targetText, const wxString &replaceText)
 
void GetAllProjectFiles (wxArrayString &files, cbProject *project)
 
void GetOpenedFiles (wxArrayString &files)
 
bool Parse ()
 

Private Attributes

NativeParserm_NativeParser
 
SearchDataMap m_SearchDataMap
 

Detailed Description

Definition at line 23 of file coderefactoring.h.

Member Typedef Documentation

◆ SearchDataList

typedef std::list<crSearchData> CodeRefactoring::SearchDataList
private

Definition at line 25 of file coderefactoring.h.

◆ SearchDataMap

Definition at line 26 of file coderefactoring.h.

Constructor & Destructor Documentation

◆ CodeRefactoring()

CodeRefactoring::CodeRefactoring ( NativeParser np)

Definition at line 116 of file coderefactoring.cpp.

◆ ~CodeRefactoring()

CodeRefactoring::~CodeRefactoring ( )
virtual

Definition at line 121 of file coderefactoring.cpp.

Member Function Documentation

◆ DoFindReferences()

void CodeRefactoring::DoFindReferences ( )
private

◆ DoRenameSymbols()

void CodeRefactoring::DoRenameSymbols ( const wxString targetText,
const wxString replaceText 
)
private

◆ Find()

void CodeRefactoring::Find ( cbStyledTextCtrl control,
const wxString file,
const wxString target 
)
private

◆ FindReferences()

void CodeRefactoring::FindReferences ( )

Definition at line 215 of file coderefactoring.cpp.

References DoFindReferences(), and Parse().

◆ GetAllProjectFiles()

void CodeRefactoring::GetAllProjectFiles ( wxArrayString files,
cbProject project 
)
private

◆ GetOpenedFiles()

void CodeRefactoring::GetOpenedFiles ( wxArrayString files)
private

◆ GetSymbolUnderCursor()

wxString CodeRefactoring::GetSymbolUnderCursor ( )
private

◆ Parse()

bool CodeRefactoring::Parse ( )
private

◆ RenameSymbols()

void CodeRefactoring::RenameSymbols ( )

◆ SearchInFiles()

size_t CodeRefactoring::SearchInFiles ( const wxArrayString files,
const wxString targetText 
)
private

◆ VerifyResult()

size_t CodeRefactoring::VerifyResult ( const TokenIdxSet targetResult,
const wxString targetText,
bool  isLocalVariable 
)
private

Member Data Documentation

◆ m_NativeParser

NativeParser& CodeRefactoring::m_NativeParser
private

Definition at line 50 of file coderefactoring.h.

Referenced by DoRenameSymbols(), GetSymbolUnderCursor(), Parse(), and VerifyResult().

◆ m_SearchDataMap

SearchDataMap CodeRefactoring::m_SearchDataMap
private

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