CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
Loading...
Searching...
No Matches
CppAD::cg::JobTimer Class Reference

#include <job_timer.hpp>

Inheritance diagram for CppAD::cg::JobTimer:
Inheritance graph
Collaboration diagram for CppAD::cg::JobTimer:
Collaboration graph

Public Member Functions

bool isVerbose () const
 
void setVerbose (bool verbose)
 
size_t getMaxLineWidth () const
 
void setMaxLineWidth (size_t width)
 
size_t getJobCount () const
 
void addListener (JobListener &l)
 
bool removeListener (JobListener &l)
 
void startingJob (const std::string &jobName, const JobType &type=JobTypeHolder<>::DEFAULT, const std::string &prefix="")
 
void finishedJob ()
 

Static Public Attributes

static const JobType DEFAULT
 
static const JobType LOOP_DETECTION
 
static const JobType GRAPH
 
static const JobType SOURCE_FOR_MODEL
 
static const JobType SOURCE_GENERATION
 
static const JobType COMPILING_FOR_MODEL
 
static const JobType COMPILING
 
static const JobType COMPILING_DYNAMIC_LIBRARY
 
static const JobType DYNAMIC_MODEL_LIBRARY
 
static const JobType STATIC_MODEL_LIBRARY
 
static const JobType ASSEMBLE_STATIC_LIBRARY
 
static const JobType JIT_MODEL_LIBRARY
 

Protected Attributes

bool _verbose
 

Detailed Description

Utility class used to print elapsed times of jobs

Definition at line 183 of file job_timer.hpp.

Constructor & Destructor Documentation

◆ JobTimer()

CppAD::cg::JobTimer::JobTimer ( )
inline

Definition at line 221 of file job_timer.hpp.

Member Function Documentation

◆ addListener()

void CppAD::cg::JobTimer::addListener ( JobListener l)
inline

Definition at line 252 of file job_timer.hpp.

◆ finishedJob()

void CppAD::cg::JobTimer::finishedJob ( )
inline

Definition at line 298 of file job_timer.hpp.

◆ getJobCount()

size_t CppAD::cg::JobTimer::getJobCount ( ) const
inline

Provides the number of currently running jobs

Returns
the number of running jobs

Definition at line 248 of file job_timer.hpp.

◆ getMaxLineWidth()

size_t CppAD::cg::JobTimer::getMaxLineWidth ( ) const
inline

Definition at line 235 of file job_timer.hpp.

◆ isVerbose()

bool CppAD::cg::JobTimer::isVerbose ( ) const
inline

Definition at line 227 of file job_timer.hpp.

◆ removeListener()

bool CppAD::cg::JobTimer::removeListener ( JobListener l)
inline

Definition at line 256 of file job_timer.hpp.

◆ setMaxLineWidth()

void CppAD::cg::JobTimer::setMaxLineWidth ( size_t  width)
inline

Definition at line 239 of file job_timer.hpp.

◆ setVerbose()

void CppAD::cg::JobTimer::setVerbose ( bool  verbose)
inline

Definition at line 231 of file job_timer.hpp.

◆ startingJob()

void CppAD::cg::JobTimer::startingJob ( const std::string &  jobName,
const JobType type = JobTypeHolder<>::DEFAULT,
const std::string &  prefix = "" 
)
inline

Definition at line 260 of file job_timer.hpp.

Member Data Documentation

◆ _verbose

bool CppAD::cg::JobTimer::_verbose
protected

Whether or not to print progress information to the standard output

Definition at line 189 of file job_timer.hpp.

◆ ASSEMBLE_STATIC_LIBRARY

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::ASSEMBLE_STATIC_LIBRARY
staticinherited

Definition at line 78 of file job_timer.hpp.

◆ COMPILING

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::COMPILING
staticinherited

Definition at line 74 of file job_timer.hpp.

◆ COMPILING_DYNAMIC_LIBRARY

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::COMPILING_DYNAMIC_LIBRARY
staticinherited

Definition at line 75 of file job_timer.hpp.

◆ COMPILING_FOR_MODEL

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::COMPILING_FOR_MODEL
staticinherited

Definition at line 73 of file job_timer.hpp.

◆ DEFAULT

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::DEFAULT
staticinherited

Definition at line 68 of file job_timer.hpp.

◆ DYNAMIC_MODEL_LIBRARY

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::DYNAMIC_MODEL_LIBRARY
staticinherited

Definition at line 76 of file job_timer.hpp.

◆ GRAPH

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::GRAPH
staticinherited

Definition at line 70 of file job_timer.hpp.

◆ JIT_MODEL_LIBRARY

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::JIT_MODEL_LIBRARY
staticinherited

Definition at line 79 of file job_timer.hpp.

◆ LOOP_DETECTION

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::LOOP_DETECTION
staticinherited

Definition at line 69 of file job_timer.hpp.

◆ SOURCE_FOR_MODEL

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::SOURCE_FOR_MODEL
staticinherited

Definition at line 71 of file job_timer.hpp.

◆ SOURCE_GENERATION

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::SOURCE_GENERATION
staticinherited

Definition at line 72 of file job_timer.hpp.

◆ STATIC_MODEL_LIBRARY

template<int T>
const JobType CppAD::cg::JobTypeHolder< T >::STATIC_MODEL_LIBRARY
staticinherited

Definition at line 77 of file job_timer.hpp.


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