Exemple #1
0
 // comparison operator <
 // =============================================================================================
 bool operator<(const EnumValue& object1, const EnumValue& object2)
 {
     if (object1.value() != object2.value())
         return object1.value() < object2.value();
     else if (object1.name() != object2.name())
         return object1.name() < object2.name();
     else
         return object1.documentation() < object2.documentation();
 }
bool ASTPrinter::visit(EnumValue const& _node)
{
	writeLine("EnumValue \"" + _node.name() + "\"");
	return goDeeper();
}
Exemple #3
0
 // Comparison operator ==
 // =============================================================================================
 bool operator==(const EnumValue& object1, const EnumValue& object2)
 {
     return    object1.value()         == object2.value()
            && object1.name()          == object2.name()
            && object1.documentation() == object2.documentation();
 }