Cppcheck
Public Member Functions | Public Attributes | Private Attributes | List of all members
ThreadData Class Reference

Public Member Functions

 ThreadData (ThreadExecutor &threadExecutor, ErrorLogger &errorLogger, const Settings &settings, const std::list< FileWithDetails > &files, const std::list< FileSettings > &fileSettings, CppCheck::ExecuteCmdFn executeCommand)
 
bool next (const std::string *&file, const FileSettings *&fs, std::size_t &fileSize)
 
unsigned int check (ErrorLogger &errorLogger, const std::string *file, const FileSettings *fs) const
 
void status (std::size_t fileSize)
 

Public Attributes

SyncLogForwarder logForwarder
 

Private Attributes

const std::list< FileWithDetails > & mFiles
 
std::list< FileWithDetails >::const_iterator mItNextFile
 
const std::list< FileSettings > & mFileSettings
 
std::list< FileSettings >::const_iterator mItNextFileSettings
 
std::size_t mProcessedFiles {}
 
std::size_t mTotalFiles {}
 
std::size_t mProcessedSize {}
 
std::size_t mTotalFileSize {}
 
std::mutex mFileSync
 
const SettingsmSettings
 
CppCheck::ExecuteCmdFn mExecuteCommand
 

Detailed Description

Definition at line 81 of file threadexecutor.cpp.

Constructor & Destructor Documentation

◆ ThreadData()

ThreadData::ThreadData ( ThreadExecutor threadExecutor,
ErrorLogger errorLogger,
const Settings settings,
const std::list< FileWithDetails > &  files,
const std::list< FileSettings > &  fileSettings,
CppCheck::ExecuteCmdFn  executeCommand 
)
inline

Member Function Documentation

◆ check()

unsigned int ThreadData::check ( ErrorLogger errorLogger,
const std::string *  file,
const FileSettings fs 
) const
inline

◆ next()

bool ThreadData::next ( const std::string *&  file,
const FileSettings *&  fs,
std::size_t &  fileSize 
)
inline

Definition at line 96 of file threadexecutor.cpp.

References mFiles, mFileSettings, mFileSync, mItNextFile, and mItNextFileSettings.

Referenced by threadProc().

◆ status()

void ThreadData::status ( std::size_t  fileSize)
inline

Member Data Documentation

◆ logForwarder

SyncLogForwarder ThreadData::logForwarder

Definition at line 158 of file threadexecutor.cpp.

Referenced by status(), and threadProc().

◆ mExecuteCommand

CppCheck::ExecuteCmdFn ThreadData::mExecuteCommand
private

Definition at line 155 of file threadexecutor.cpp.

Referenced by check().

◆ mFiles

const std::list<FileWithDetails>& ThreadData::mFiles
private

Definition at line 143 of file threadexecutor.cpp.

Referenced by next(), and ThreadData().

◆ mFileSettings

const std::list<FileSettings>& ThreadData::mFileSettings
private

Definition at line 145 of file threadexecutor.cpp.

Referenced by next(), and ThreadData().

◆ mFileSync

std::mutex ThreadData::mFileSync
private

Definition at line 153 of file threadexecutor.cpp.

Referenced by next(), and status().

◆ mItNextFile

std::list<FileWithDetails>::const_iterator ThreadData::mItNextFile
private

Definition at line 144 of file threadexecutor.cpp.

Referenced by next(), and ThreadData().

◆ mItNextFileSettings

std::list<FileSettings>::const_iterator ThreadData::mItNextFileSettings
private

Definition at line 146 of file threadexecutor.cpp.

Referenced by next(), and ThreadData().

◆ mProcessedFiles

std::size_t ThreadData::mProcessedFiles {}
private

Definition at line 148 of file threadexecutor.cpp.

Referenced by status().

◆ mProcessedSize

std::size_t ThreadData::mProcessedSize {}
private

Definition at line 150 of file threadexecutor.cpp.

Referenced by status().

◆ mSettings

const Settings& ThreadData::mSettings
private

Definition at line 154 of file threadexecutor.cpp.

Referenced by check(), and status().

◆ mTotalFiles

std::size_t ThreadData::mTotalFiles {}
private

Definition at line 149 of file threadexecutor.cpp.

Referenced by status(), and ThreadData().

◆ mTotalFileSize

std::size_t ThreadData::mTotalFileSize {}
private

Definition at line 151 of file threadexecutor.cpp.

Referenced by status(), and ThreadData().


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