///scratch/berryj/link/new_link/link/bin/instantiate "-t" "Attribute<float>*" "-I" "LINK/graph/Attribute.h" "-d" "graph" 
#ifdef __GNUC__
#define DEFINE_TEMPLATE
#endif

#include <LINK/basic/ElementOps.h>

#ifdef __GNUC__
#undef DEFINE_TEMPLATE
#endif

#include <LINK/graph/Attribute.h>


typedef Attribute<float>* _Attribute_float__;


//*********************************************************************
#ifdef __GNUC__
template class ElementOps<_Attribute_float__>;
#endif
int ElementOps<_Attribute_float__>::compareItems(const _Attribute_float__& e1, const _Attribute_float__& e2) 
{
	if (e1 && e2)  {
		if (*e1 == *e2)
			return 0;
		else
			return (*e1<*e2)? -1 : 1;
	} else {
		if (e1 == e2)
			return 0;
		else
			return (e1<e2)? -1 : 1;
	}
}

ostream& ElementOps<_Attribute_float__>::displayItem(ostream& os, const _Attribute_float__& e)
{
	if (e)
		os << *e;
	else
		os << e;
	return os;
}
//*********************************************************************


