16 struct ios_state_guard {
18 std::ios::fmtflags flags;
20 std::streamsize width;
22 explicit ios_state_guard(std::ostream& o)
23 : os(o), flags(o.flags()), fill(o.fill()), width(o.width()) {}
38 o <<
"name: " << ie.name <<
", value: " << ie.value <<
", pos: " << ie.position;
43 o <<
"name: " << oe.
name <<
", value: " << oe.
value <<
", nbits: " << oe.
nbits <<
", outname: " << oe.
outname <<
", position: " << oe.
position;
49 o <<
"name: " << ge.
name <<
", value: " << ge.
value;
55 o <<
"name: " << pe.name <<
", value: " << pe.value <<
", pos: " << pe.position <<
", sel: " << pe.selection;
85 names.push_back(
x.value);
93 names.push_back(
isSortAlg() ?
x.value :
x.outname );
124 ios_state_guard guard{o};
125 if(alg.isSortAlg()) {
126 o <<
"Sorting algorithm " << alg.algoID() <<
" : " << alg.type() <<
"/" << alg.name() << endl;
127 o <<
" Input : " << alg.m_inputElements[0].value << endl;
128 o <<
" Output : " << alg.m_outputElements[0].value << endl;
130 o <<
"Decision algorithm " << alg.algoID() <<
" : " << alg.type() <<
"/" << alg.name() << endl;
132 o <<
" Input " << ie.position <<
" : " << ie.value << endl;
136 o <<
" Fixed paramters: " << alg.getFixedParameters().size() << endl;
138 o <<
" " << setw(15) << left << ge.
name <<
" : " << ge.
value << endl;
139 o <<
" Parameters: " << alg.getParameters().size() << endl;
141 o <<
" " << setw(15) << left << pe.name <<
" : " << pe.value << endl;
virtual ~L1TopoConfigAlg()
void addFixedParameter(const std::string &name, const std::string &value)
const std::string & name() const
std::vector< TXC::FixedParameter > m_fixedParameters
std::vector< std::string > getOutputNames() const
void addOutput(const std::string &name, const std::string &value, unsigned int bits, const std::string &outname, unsigned int position)
void addInput(const std::string &name, const std::string &value, unsigned int position)
std::vector< TXC::InputElement > m_inputElements
std::string fullname() const
std::vector< TXC::RegisterParameter > m_variableParameters
std::vector< std::string > getInputNames() const
const std::string & type() const
L1TopoConfigAlg(const std::string &name, const std::string &type)
class L1TopoConfigAlg
std::vector< TXC::OutputElement > m_outputElements
void addParameter(const std::string &name, const std::string &value, unsigned int position, unsigned int selection)
const std::string selection
std::ostream & operator<<(std::ostream &, const TXC::L1TopoConfigAlg &)
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.