DataObjectHandleBase.cpp File Reference
#include "GaudiKernel/DataObjectHandleBase.h"
#include "GaudiKernel/Algorithm.h"
#include "GaudiKernel/AlgTool.h"
#include "GaudiKernel/IDataProviderSvc.h"
#include "GaudiKernel/ServiceLocatorHelper.h"
#include <sstream>
#include <string>
#include <ostream>
Include dependency graph for DataObjectHandleBase.cpp:

Go to the source code of this file.

Functions

std::ostreamoperator<< (std::ostream &str, const DataObjectHandleBase &d)
 

Variables

const DataObjID INVALID_DATAOBJID = DataObjID()
 

Function Documentation

std::ostream& operator<< ( std::ostream str,
const DataObjectHandleBase d 
)

Definition at line 102 of file DataObjectHandleBase.cpp.

102  {
103 
104  str << d.fullKey() << " m: " << d.mode();
105  if (d.owner() != 0) {
106  str << " o: " << d.owner()->name();
107  }
108 
109  str << " opt: " << d.isOptional();
110 
111  if (d.alternativeDataProductNames().size() != 0) {
112  str << " alt: [";
113  for ( auto &n : d.alternativeDataProductNames()) {
114  str << n << ",";
115  }
116  str << "]";
117  }
118 
119  return str;
120 }
virtual Mode mode() const
Definition: DataHandle.h:47
virtual const DataObjID & fullKey() const
Definition: DataHandle.h:53
T size(T...args)
bool isOptional() const
Check if the data object declared is optional for the algorithm.
const std::vector< std::string > & alternativeDataProductNames() const
virtual const std::string & name() const =0
Retrieve the name of the instance.
virtual IDataHandleHolder * owner() const
Definition: DataHandle.h:45

Variable Documentation

const DataObjID INVALID_DATAOBJID = DataObjID()

Definition at line 11 of file DataObjectHandleBase.cpp.