Cppcheck
Public Member Functions | Public Attributes | Friends | List of all members
ThreadExecutor Class Reference

This class will take a list of filenames and settings and check then all files using threads. More...

#include <threadexecutor.h>

Inheritance diagram for ThreadExecutor:
Executor

Public Member Functions

 ThreadExecutor (const std::list< std::pair< std::string, std::size_t >> &files, const std::list< FileSettings > &fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger, CppCheck::ExecuteCmdFn executeCommand)
 
 ThreadExecutor (const ThreadExecutor &)=delete
 
ThreadExecutoroperator= (const ThreadExecutor &)=delete
 
unsigned int check () override
 
- Public Member Functions inherited from Executor
 Executor (const std::list< std::pair< std::string, std::size_t >> &files, const std::list< FileSettings > &fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger)
 
virtual ~Executor ()=default
 
 Executor (const Executor &)=delete
 
Executoroperator= (const Executor &)=delete
 
void reportStatus (std::size_t fileindex, std::size_t filecount, std::size_t sizedone, std::size_t sizetotal)
 Information about how many files have been checked. More...
 

Public Attributes

CppCheck::ExecuteCmdFn mExecuteCommand
 

Friends

class SyncLogForwarder
 

Additional Inherited Members

- Protected Member Functions inherited from Executor
bool hasToLog (const ErrorMessage &msg)
 Check if message is being suppressed and unique. More...
 
- Protected Attributes inherited from Executor
const std::list< std::pair< std::string, std::size_t > > & mFiles
 
const std::list< FileSettings > & mFileSettings
 
const SettingsmSettings
 
SuppressionListmSuppressions
 
ErrorLoggermErrorLogger
 

Detailed Description

This class will take a list of filenames and settings and check then all files using threads.

Definition at line 42 of file threadexecutor.h.

Constructor & Destructor Documentation

◆ ThreadExecutor() [1/2]

ThreadExecutor::ThreadExecutor ( const std::list< std::pair< std::string, std::size_t >> &  files,
const std::list< FileSettings > &  fileSettings,
const Settings settings,
SuppressionList suppressions,
ErrorLogger errorLogger,
CppCheck::ExecuteCmdFn  executeCommand 
)

Definition at line 42 of file threadexecutor.cpp.

References Settings::jobs, and Executor::mSettings.

◆ ThreadExecutor() [2/2]

ThreadExecutor::ThreadExecutor ( const ThreadExecutor )
delete

Member Function Documentation

◆ check()

unsigned int ThreadExecutor::check ( )
overridevirtual

◆ operator=()

ThreadExecutor& ThreadExecutor::operator= ( const ThreadExecutor )
delete

Friends And Related Function Documentation

◆ SyncLogForwarder

friend class SyncLogForwarder
friend

Definition at line 43 of file threadexecutor.h.

Member Data Documentation

◆ mExecuteCommand

CppCheck::ExecuteCmdFn ThreadExecutor::mExecuteCommand

Definition at line 52 of file threadexecutor.h.

Referenced by check().


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