Add operator== and operator!= to handles. Fix issue #20 (#22)

This commit is contained in:
Markus Tavenrath
2016-08-15 16:10:20 +02:00
committed by Andreas Süßenbach
parent 73857ee1dd
commit 1b25982cc9
2 changed files with 312 additions and 0 deletions

View File

@@ -2649,6 +2649,18 @@ void writeTypeHandle(std::ofstream & ofs, VkData const& vkData, DependencyData c
<< " return *this;" << std::endl
<< " }" << std::endl
<< "#endif\n"
<< std::endl
// operator==
<< " bool operator==" << "(" << dependencyData.name << " const &rhs) const" << std::endl
<< " {" << std::endl
<< " return m_" << memberName << " == rhs.m_" << memberName << ";" << std::endl
<< " }" << std::endl
<< std::endl
// operator!=
<< " bool operator!=" << "(" << dependencyData.name << " const &rhs) const" << std::endl
<< " {" << std::endl
<< " return m_" << memberName << " != rhs.m_" << memberName << ";" << std::endl
<< " }" << std::endl
<< std::endl;
if (!handle.commands.empty())