Commit fa420f2a authored by Robert Ricci's avatar Robert Ricci

Add a header file that I had forgotten to check in.

parent e6de2e16
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2003 University of Utah and the Flux Group.
* All rights reserved.
*/
/*
* A simple header that provides definitions of some maps used in assign
*/
#ifndef __MAPS_H
#define __MAPS_H
/*
* A hash function for graph edges
*/
struct hashedge {
size_t operator()(vedge const &A) const {
hashptr<void *> ptrhash;
return ptrhash(target(A,VG))/2+ptrhash(source(A,VG))/2;
}
};
/*
* Map types
*/
typedef hash_map<vvertex,pvertex,hashptr<void *> > node_map;
typedef hash_map<vvertex,bool,hashptr<void *> > assigned_map;
typedef hash_map<pvertex,crope,hashptr<void *> > type_map;
typedef hash_map<vedge,tb_link_info,hashedge> link_map;
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment