KSquare Utilities
KKB::GlobalGoalKeeper Class Reference

Maintains one instance of a GoalKeeper object that can be used anywhere in the application. More...

#include <GlobalGoalKeeper.h>

Static Public Member Functions

static void EndBlock ()
 
static void StartBlock ()
 

Detailed Description

Maintains one instance of a GoalKeeper object that can be used anywhere in the application.

It is meant to be used for simple cases.

Definition at line 23 of file GlobalGoalKeeper.h.

Member Function Documentation

void GlobalGoalKeeper::EndBlock ( )
static

Definition at line 51 of file GlobalGoalKeeper.cpp.

References KKB::GoalKeeper::EndBlock().

Referenced by KKB::RunLog::Append(), KKLSC::ScannerFileSimple::CompensationTable(), KKLSC::ScannerFile2BitEncoded::CompensationTable(), KKLSC::ScannerFile3BitEncoded::CompensationTable(), KKLSC::ScannerFile4BitEncoded::CompensationTable(), KKB::Compressor::Decompress(), KKMLL::GrayScaleImagesFVProducer::DefineFileDescStatic(), KKMLL::GrayScaleImagesFVProducerFactory::Factory(), KKMLL::TrainingConfiguration2::FactoryInstace(), XmlFactoryTrainingClass::FactoryInstance(), XmlFactoryModelOldSVM::FactoryInstance(), KKB::XmlFactoryManager::FactoryLookUp(), KKB::XmlFactory::FactoryLookUp(), KKMLL::FeatureVectorProducer::FileDesc(), KKMLL::FeatureFileIO::FinalCleanUp(), KKLSC::ScannerFileEntry::GetOrCreateScannerFileEntry(), KKMLL::FactoryFVProducer::LookUpFactory(), KKMLL::TrainingConfiguration2::Manufacture(), KKMLL::FeatureFileIO::RegisterDriver(), KKMLL::FactoryFVProducer::RegisterFactory(), KKB::XmlFactoryManager::RegisterFactory(), KKB::XmlFactory::RegisterFactory(), KKMLL::TrainingConfiguration2::RegisterFatory(), KKMLL::FeatureFileIO::RegisterFeatureFileIODriver(), KKB::KKObservable::RegisterObserver(), KKB::KKObservable::UnRegisterObserver(), KKB::RunLog::WriteLine(), and KKB::KKObserver::~KKObserver().

52 {
53  if (!globalGoalie)
54  CreateGlobalGoalie ();
55  globalGoalie->EndBlock ();
56 }
void EndBlock()
Ends the block and allows other threads to pass through StatBlock.
Definition: GoalKeeper.cpp:295
void GlobalGoalKeeper::StartBlock ( )
static

Definition at line 42 of file GlobalGoalKeeper.cpp.

References KKB::GoalKeeper::StartBlock().

Referenced by KKB::RunLog::Append(), KKLSC::ScannerFileSimple::CompensationTable(), KKLSC::ScannerFile2BitEncoded::CompensationTable(), KKLSC::ScannerFile3BitEncoded::CompensationTable(), KKLSC::ScannerFile4BitEncoded::CompensationTable(), KKB::Compressor::Decompress(), KKMLL::GrayScaleImagesFVProducer::DefineFileDescStatic(), KKMLL::GrayScaleImagesFVProducerFactory::Factory(), KKMLL::TrainingConfiguration2::FactoryInstace(), XmlFactoryTrainingClass::FactoryInstance(), XmlFactoryModelOldSVM::FactoryInstance(), KKB::XmlFactoryManager::FactoryLookUp(), KKB::XmlFactory::FactoryLookUp(), KKMLL::FeatureVectorProducer::FileDesc(), KKMLL::FeatureFileIO::FinalCleanUp(), KKLSC::ScannerFileEntry::GetOrCreateScannerFileEntry(), KKMLL::FactoryFVProducer::LookUpFactory(), KKMLL::TrainingConfiguration2::Manufacture(), KKMLL::FeatureFileIO::RegisterDriver(), KKMLL::FactoryFVProducer::RegisterFactory(), KKB::XmlFactoryManager::RegisterFactory(), KKB::XmlFactory::RegisterFactory(), KKMLL::TrainingConfiguration2::RegisterFatory(), KKMLL::FeatureFileIO::RegisterFeatureFileIODriver(), KKB::KKObservable::RegisterObserver(), KKB::KKObservable::UnRegisterObserver(), KKB::RunLog::WriteLine(), and KKB::KKObserver::~KKObserver().

43 {
44  if (!globalGoalie)
45  CreateGlobalGoalie ();
46  globalGoalie->StartBlock ();
47 }
void StartBlock()
Initiates a Block as long as another thread has not already locked this object.
Definition: GoalKeeper.cpp:214

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