newmen/versatile-diamond

View on GitHub
engine/cpp/savers/bond_info.cpp

Summary

Maintainability
Test Coverage
#include "bond_info.h"

namespace vd
{

bool BondInfo::operator == (const BondInfo &other) const
{
    return _from == other._from && _to == other._to;
}

void BondInfo::incArity()
{
    ++_arity;
}

uint BondInfo::type() const
{
    return _arity;
}

uint BondInfo::from() const
{
    return _from;
}

uint BondInfo::to() const
{
    return _to;
}

}