This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
2017-06-27 23:12:57 +02:00
|
|
|
#ifndef __PLASP__PDDL__TRANSLATION__VARIABLE_STACK_H
|
|
|
|
#define __PLASP__PDDL__TRANSLATION__VARIABLE_STACK_H
|
|
|
|
|
2017-08-09 17:52:50 +02:00
|
|
|
#include <pddl/NormalizedAST.h>
|
2017-06-27 23:12:57 +02:00
|
|
|
|
|
|
|
namespace plasp
|
|
|
|
{
|
|
|
|
namespace pddl
|
|
|
|
{
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// VariableStack
|
|
|
|
//
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
struct VariableStack
|
|
|
|
{
|
|
|
|
using Layer = ::pddl::normalizedAST::VariableDeclarations *;
|
|
|
|
|
|
|
|
void push(Layer layer)
|
|
|
|
{
|
|
|
|
layers.push_back(layer);
|
|
|
|
}
|
|
|
|
|
|
|
|
void pop()
|
|
|
|
{
|
|
|
|
layers.pop_back();
|
|
|
|
}
|
|
|
|
|
|
|
|
std::vector<Layer> layers;
|
|
|
|
};
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|