idep_aliastable.h File Reference

#include <iosfwd>

Go to the source code of this file.

Classes

class  idep_AliasTable
class  idep_AliasTableIter

Functions

std::ostream & operator<< (std::ostream &output, const idep_AliasTable &table)

Function Documentation

std::ostream& operator<< ( std::ostream &  output,
const idep_AliasTable table 
)

Definition at line 112 of file idep_altab.cxx.

References idep_AliasTableIter::alias(), it, len, idep_AliasTableIter::originalName(), and idep_AliasTableIter::reset().

00113 {
00114     int fieldWidth = 0; 
00115     idep_AliasTableIter it(table);
00116     for (; it; ++it) {
00117         int len = strlen(it.alias());
00118         if (fieldWidth < len) {
00119             fieldWidth = len;
00120         }
00121     }
00122     for (it.reset(); it; ++it) {
00123         o.width(fieldWidth);
00124         o << it.alias() << " -> " << it.originalName() << std::endl;
00125     }
00126     return o;
00127 }


Generated on 16 Apr 2018 for loon by  doxygen 1.6.1