Made ExpEvaluator::popOne() static and public, it is really a helper method.
git-svn-id: http://yate.null.ro/svn/yate/trunk@4737 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
79150dfa9c
commit
0b33420051
|
@ -488,7 +488,7 @@ void ExpEvaluator::addOpcode(long int value)
|
|||
m_opcodes.append(new ExpOperation(value));
|
||||
}
|
||||
|
||||
ExpOperation* ExpEvaluator::popOne(ObjList& stack) const
|
||||
ExpOperation* ExpEvaluator::popOne(ObjList& stack)
|
||||
{
|
||||
GenObject* o = 0;
|
||||
for (ObjList* l = stack.skipNull(); l; l=l->skipNext())
|
||||
|
|
14
yateclass.h
14
yateclass.h
|
@ -4062,6 +4062,13 @@ public:
|
|||
*/
|
||||
void extender(ExpExtender* ext);
|
||||
|
||||
/**
|
||||
* Pops an operand off an evaluation stack
|
||||
* @param stack Evaluation stack to remove the operand from
|
||||
* @return Operator removed from stack, NULL if stack underflow
|
||||
*/
|
||||
static ExpOperation* popOne(ObjList& stack);
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Helper method to skip over whitespaces
|
||||
|
@ -4182,13 +4189,6 @@ protected:
|
|||
*/
|
||||
void addOpcode(Opcode oper, const String& name, long int value = 0);
|
||||
|
||||
/**
|
||||
* Pops an operand off the evaluation stack
|
||||
* @param stack Evaluation stack to remove the operand from
|
||||
* @return Operator removed from stack, NULL if stack underflow
|
||||
*/
|
||||
ExpOperation* popOne(ObjList& stack) const;
|
||||
|
||||
/**
|
||||
* Try to apply simplification to the expression
|
||||
* @return True if the expression was simplified
|
||||
|
|
Loading…
Reference in New Issue