void Student::listClasses() const { std::cout << getColumnHeader() << std::endl; std::map<std::string, Class>::const_iterator iterator; for(iterator = _classList.begin(); iterator != _classList.end(); iterator++) { std::cout << iterator->second << std::endl; } } // -- END FUNC listClasses()
UT612ByteStreamParser::UT612ByteStreamParser(bool doPrintHeader, bool doTimestamp) : _doTimestamp(doTimestamp), _frameInProgress(false), _lastByteWasCarriageReturn(false), _byteCount(0), _lastFrameByteCount(0), _frameCount(0) { if (doPrintHeader) { std::cout << getColumnHeader() << "\n"; } }
void MFXEditableTable::editItem(FXTableItem* item, FXint how) { if (item == 0) { editEnd(); return; } if (myWriteProtectedCols.find(myEditedCol) != myWriteProtectedCols.end()) { editEnd(); return; } FXTableItem* it = item; myPreviousText = item->getText(); FXint x = getColumnX(myEditedCol) + getRowHeader()->getWidth() + xpos; FXint y = getRowY(myEditedRow) + getColumnHeader()->getHeight() + ypos; FXIcon* icon = item->getIcon(); if (icon) { x += icon->getWidth() + 4; } FXint vw = getViewportWidth(); if (vertical->shown()) { vw -= vertical->getWidth(); } if (vw > getColumnWidth(myEditedCol)) { vw = getColumnWidth(myEditedCol) + x; } myEditor->setText(it->getText()); myEditor->move(x, y); myEditor->resize(vw - x + 1, getRowHeight(myEditedRow) + 1); myEditor->show(); myEditor->raise(); myEditor->setFocus(); if (how == 'I') { myEditor->killSelection(); myEditor->setCursorPos(0); } else if (how == 'A') { myEditor->killSelection(); myEditor->setCursorPos(myEditor->getText().length()); } else { myEditor->selectAll(); } myEditedItem = it; }
void DWARFUnitIndex::dump(raw_ostream &OS) const { Header.dump(OS); OS << "Index Signature "; for (unsigned i = 0; i != Header.NumColumns; ++i) OS << ' ' << left_justify(getColumnHeader(ColumnKinds[i]), 24); OS << "\n----- ------------------"; for (unsigned i = 0; i != Header.NumColumns; ++i) OS << " ------------------------"; OS << '\n'; for (unsigned i = 0; i != Header.NumBuckets; ++i) { auto &Row = Rows[i]; if (auto *Contribs = Row.Contributions.get()) { OS << format("%5u 0x%016" PRIx64 " ", i, Row.Signature); for (unsigned i = 0; i != Header.NumColumns; ++i) { auto &Contrib = Contribs[i]; OS << format("[0x%08x, 0x%08x) ", Contrib.Offset, Contrib.Offset + Contrib.Length); } OS << '\n'; } } }