#include "DetectorDescription/Core/interface/DDAlgo.h"
#include "DetectorDescription/ExprAlgo/interface/AlgoPos.h"
#include <cstdio>
Go to the source code of this file.
Functions | |
DDAlgo | DDalgo (const DDName &n, AlgoPos *a) |
std::ostream & | operator<< (std::ostream &os, const DDAlgo &algo) |
create a DDCore compatible algorithm
Definition at line 117 of file DDAlgo.cc.
References DDAlgo::DDAlgo().
Referenced by AlgoInit().
00118 { 00119 return DDAlgo(n,a); 00120 }
std::ostream& operator<< | ( | std::ostream & | os, | |
const DDAlgo & | algo | |||
) |
Definition at line 7 of file DDAlgo.cc.
References DDBase< N, C >::isDefined(), and DDBase< N, C >::rep().
00008 { 00009 DDBase<DDName,AlgoPos*>::def_type defined(algo.isDefined()); 00010 if (defined.first) { 00011 os << *(defined.first) << " "; 00012 if (defined.second) { 00013 algo.rep().stream(os); 00014 } 00015 else { 00016 os << "* algorithm not defined * "; 00017 } 00018 } 00019 else { 00020 os << "* algorithm not declared * "; 00021 } 00022 return os; 00023 00024 }