CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Attributes | Static Private Attributes
edm::messagedrop::StringProducerWithPhase Class Reference
Inheritance diagram for edm::messagedrop::StringProducerWithPhase:
edm::messagedrop::StringProducer

Public Member Functions

void set (std::string const &name, std::string const &label, const void *moduleID, const char *phase)
 
virtual void snapshot ()
 
 StringProducerWithPhase ()
 
virtual std::string theContext () const
 
- Public Member Functions inherited from edm::messagedrop::StringProducer
virtual ~StringProducer ()
 

Private Types

typedef std::map< const void
*, std::string >
::const_iterator 
NLMiter
 

Private Attributes

std::string cache_
 
std::string const * label_
 
std::string const label_initial_value_
 
const void * moduleID_
 
std::string const * name_
 
std::string const name_initial_value_
 
std::map< const void
*, std::string > 
nameLabelMap_
 
const char * phasePtr_
 
std::string snapshot_label_
 
std::string snapshot_name_
 
char snapshot_phase_ [PHASE_MAX_LENGTH+1]
 

Static Private Attributes

static const int PHASE_MAX_LENGTH = 32
 

Detailed Description

Definition at line 82 of file MessageDrop.cc.

Member Typedef Documentation

typedef std::map<const void*, std::string>::const_iterator edm::messagedrop::StringProducerWithPhase::NLMiter
private

Definition at line 84 of file MessageDrop.cc.

Constructor & Destructor Documentation

edm::messagedrop::StringProducerWithPhase::StringProducerWithPhase ( )
inline

Definition at line 86 of file MessageDrop.cc.

Member Function Documentation

void edm::messagedrop::StringProducerWithPhase::set ( std::string const &  name,
std::string const &  label,
const void *  moduleID,
const char *  phase 
)
inline

Definition at line 112 of file MessageDrop.cc.

References label, and AlCaRecoCosmics_cfg::name.

Referenced by edm::MessageDrop::setModuleWithPhase().

115  {
116  name_ = &name;
117  label_ = &label;
118  moduleID_ = moduleID;
119  phasePtr_ = phase;
120  cache_.clear();
121  }
const std::string & label
Definition: MVAComputer.cc:186
virtual void edm::messagedrop::StringProducerWithPhase::snapshot ( )
inlinevirtual
virtual std::string edm::messagedrop::StringProducerWithPhase::theContext ( ) const
inlinevirtual

Implements edm::messagedrop::StringProducer.

Definition at line 94 of file MessageDrop.cc.

94  {
95  if (cache_.empty()) {
96  if (moduleID_ != 0) {
97  NLMiter nameLableIter = nameLabelMap_.find(moduleID_);
98  if (nameLableIter != nameLabelMap_.end()) {
99  cache_.assign(nameLableIter->second);
100  cache_.append(phasePtr_);
101  return cache_;
102  }
103  }
104  cache_.assign(*name_);
105  cache_.append(":");
106  cache_.append(*label_);
108  cache_.append(phasePtr_);
109  }
110  return cache_;
111  }
std::map< const void *, std::string > nameLabelMap_
Definition: MessageDrop.cc:143
std::map< const void *, std::string >::const_iterator NLMiter
Definition: MessageDrop.cc:84

Member Data Documentation

std::string edm::messagedrop::StringProducerWithPhase::cache_
mutableprivate

Definition at line 142 of file MessageDrop.cc.

std::string const* edm::messagedrop::StringProducerWithPhase::label_
private
std::string const edm::messagedrop::StringProducerWithPhase::label_initial_value_
private

Definition at line 137 of file MessageDrop.cc.

const void* edm::messagedrop::StringProducerWithPhase::moduleID_
private

Definition at line 141 of file MessageDrop.cc.

std::string const* edm::messagedrop::StringProducerWithPhase::name_
private

Definition at line 138 of file MessageDrop.cc.

Referenced by Config.Process::fillProcessDesc().

std::string const edm::messagedrop::StringProducerWithPhase::name_initial_value_
private

Definition at line 136 of file MessageDrop.cc.

std::map<const void*, std::string> edm::messagedrop::StringProducerWithPhase::nameLabelMap_
mutableprivate

Definition at line 143 of file MessageDrop.cc.

const int edm::messagedrop::StringProducerWithPhase::PHASE_MAX_LENGTH = 32
staticprivate

Definition at line 135 of file MessageDrop.cc.

const char* edm::messagedrop::StringProducerWithPhase::phasePtr_
private

Definition at line 140 of file MessageDrop.cc.

std::string edm::messagedrop::StringProducerWithPhase::snapshot_label_
private

Definition at line 145 of file MessageDrop.cc.

std::string edm::messagedrop::StringProducerWithPhase::snapshot_name_
private

Definition at line 144 of file MessageDrop.cc.

char edm::messagedrop::StringProducerWithPhase::snapshot_phase_[PHASE_MAX_LENGTH+1]
private

Definition at line 146 of file MessageDrop.cc.