Calculator
Extensible stack-based calculator primarily in library form
Calculator::StackIteratorPimpl Class Reference
Collaboration diagram for Calculator::StackIteratorPimpl:

Public Types

typedef std::shared_ptr< StackIteratorPimplPtr
 
typedef std::vector< StackItem::Ptr >::iterator Iterator
 

Public Member Functions

 StackIteratorPimpl (Stack &theStack, const Iterator &theIter)
 
void addError (unsigned int position, const std::string &error)
 
StackItem::Ptr dereference (StackItem::Ptr in)
 

Public Attributes

StackIterator::Hint hint = StackIterator::Hint::DEREFERENCE_NEXT
 
Stackstack
 
Iterator iter
 
unsigned int position = 0
 
Result result
 

Detailed Description

Definition at line 31 of file Stack.cpp.

Member Typedef Documentation

◆ Iterator

Definition at line 34 of file Stack.cpp.

◆ Ptr

Definition at line 33 of file Stack.cpp.

Constructor & Destructor Documentation

◆ StackIteratorPimpl()

Calculator::StackIteratorPimpl::StackIteratorPimpl ( Stack theStack,
const Iterator theIter 
)
inline

Definition at line 42 of file Stack.cpp.

Member Function Documentation

◆ addError()

void Calculator::StackIteratorPimpl::addError ( unsigned int  position,
const std::string &  error 
)

Definition at line 51 of file Stack.cpp.

◆ dereference()

StackItem::Ptr Calculator::StackIteratorPimpl::dereference ( StackItem::Ptr  in)

Definition at line 55 of file Stack.cpp.

Member Data Documentation

◆ hint

StackIterator::Hint Calculator::StackIteratorPimpl::hint = StackIterator::Hint::DEREFERENCE_NEXT

Definition at line 36 of file Stack.cpp.

◆ iter

Iterator Calculator::StackIteratorPimpl::iter

Definition at line 38 of file Stack.cpp.

◆ position

unsigned int Calculator::StackIteratorPimpl::position = 0

Definition at line 39 of file Stack.cpp.

◆ result

Result Calculator::StackIteratorPimpl::result

Definition at line 40 of file Stack.cpp.

◆ stack

Stack& Calculator::StackIteratorPimpl::stack

Definition at line 37 of file Stack.cpp.


The documentation for this class was generated from the following file: