| Resolve/C++ Catalog |
|
| CI/Integer/Hash_1.h | |
| Copyright © 2010, Reusable Software Research Group, The Ohio State University |
// /*-------------------------------------------------------------------*\
// | Concrete Instance : Integer_Hash_1
// \*-------------------------------------------------------------------*/
#ifndef CI_INTEGER_HASH_1
#define CI_INTEGER_HASH_1 1
///------------------------------------------------------------------------
/// Global Context --------------------------------------------------------
///------------------------------------------------------------------------
#include "AT/General/Hash.h"
///------------------------------------------------------------------------
/// Interface -------------------------------------------------------------
///------------------------------------------------------------------------
concrete_instance
utility_class Integer_Hash_1 :
implements
abstract_instance General_Hash <Integer>
{
public:
/*!
math definition HASH_FUNCTION (
x: integer
): integer is
x
!*/
utility_function_body Integer Hash (
preserves Integer& x
)
{
return x;
}
};
#endif // CI_INTEGER_HASH_1