#include <simplexface.h>


#include <iostream>
using namespace std;

simplexface::simplexface()
  : id(0), face(0)
{
}

simplexface::simplexface(uintc _id, uintc _face)
  : id(_id), face(_face) 
{
}

simplexface & simplexface::operator = 
(
  simplexface const & tf
)
{
  id = tf.id;
  face = tf.face;

  return *this;
}


bool const simplexface::operator < (simplexface const & tf) const
{
  if (id!=tf.id)
    return id < tf.id;

  return face < tf.face;
}


bool const simplexface::operator == (simplexface const & tf) const
{
  if (id!=tf.id)
    return false;

  if (face!=tf.face)
    return false;

  return true;
}



ostream & simplexface::print(ostream & os) const
{
  return os << id << " " << face;
}



ostream & operator << (ostream & os, simplexface const & x)
{
  return x.print(os);  
}





