add simple isValid() function to PhantomNodes

This commit is contained in:
Dennis Luxen 2014-05-16 15:52:26 +02:00
parent bddad0c57c
commit acab77f4f8

View File

@ -115,6 +115,12 @@ struct PhantomNode
);
}
bool isValid() const
{
return location.isValid() &&
(name_id != std::numeric_limits<unsigned>::max());
}
bool operator==(const PhantomNode & other) const
{
return location == other.location;