iterstack

iterstack - TRACE ('I', stack.front()); return...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// $Id: iterstack.cc,v 1.2 2010-01-21 18:22:36-08 - - $ #include "iterstack.h" #include "util.h" TRACE ('I', (void*) &opnd " stack.push_front (opnd); } bigint iterstack::pop() { if (empty ()) throw ydc_exn ("stack empty"); bigint result = peek(); stack.pop_front(); TRACE ('I', result); return result; } bigint iterstack::peek() const { if (empty ()) throw ydc_exn ("stack empty");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: TRACE ('I', stack.front()); return stack.front(); } void iterstack::clear() { TRACE ('I', ""); stack.clear(); } bool iterstack::empty() const { TRACE ('I', stack.empty()); return stack.empty(); } stackiterator iterstack::begin() const { return stack.begin(); } stackiterator iterstack::end() const { return stack.end(); } RCSC(__iterstack_cc__, "$Id: iterstack.cc,v 1.2 2010-01-21 18:22:36-08 - - $")...
View Full Document

This note was uploaded on 01/26/2010 for the course CMPS 109 taught by Professor Bailey,d during the Spring '08 term at UCSC.

Ask a homework question - tutors are online