Skip to content
Snippets Groups Projects
Commit e4f9bcf1 authored by Markus Blatt's avatar Markus Blatt
Browse files

Added operator<< for VertexProperties.

[[Imported from SVN: r1460]]
parent f8d00fe3
No related branches found
No related tags found
No related merge requests found
......@@ -24,8 +24,6 @@ namespace Dune
* @brief Provides classes for initializing the link attributes of a matrix graph.
*/
class EdgeProperties;
/**
* @brief Class representing the properties of an ede in the matrix graph.
*
......@@ -102,12 +100,15 @@ namespace Dune
*/
void printFlags() const;
};
/**
* @brief Class representing a node in the matrix graph.
*
* Contains methods for getting and setting node attributes.
*/
class VertexProperties {
friend std::ostream& operator<<(std::ostream& os, const VertexProperties& props);
private:
enum { ISOLATED, VISITED, FRONT, EXCLUDED, SIZE };
......@@ -247,6 +248,11 @@ namespace Dune
}
inline std::ostream& operator<<(std::ostream& os, const VertexProperties& props)
{
return os << props.flags_;
}
inline VertexProperties::VertexProperties()
: flags_(0)
{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment