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.
plasp/src/plasp/sas/Predicate.cpp

38 lines
770 B
C++
Raw Normal View History

#include <plasp/sas/Predicate.h>
#include <iostream>
namespace plasp
{
namespace sas
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Predicate
//
////////////////////////////////////////////////////////////////////////////////////////////////////
std::ostream &operator <<(std::ostream &ostream, const Predicate &predicate)
{
2016-05-21 02:31:47 +02:00
if (predicate.arguments.empty())
return (ostream << predicate.name);
ostream << predicate.name << "(";
for (size_t i = 0; i < predicate.arguments.size(); i++)
{
if (i > 0)
ostream << ", ";
ostream << predicate.arguments[i];
}
return (ostream << ")");
}
////////////////////////////////////////////////////////////////////////////////////////////////////
}
}