Home | History | Annotate | Download | only in base

Lines Matching refs:Key

33 // It maps from an abstract key to a descriptor. If independent modules each
38 typedef uint32_t Key;
39 // Often we want a canonical descriptor for a given Key. In this case, we add
40 // the following constant to the key value:
43 // Get a descriptor given a key. It is a fatal error if the key is not known.
44 int Get(Key key) const;
45 // Get a descriptor give a key. Returns -1 on error.
46 int MaybeGet(Key key) const;
48 typedef std::vector<std::pair<Key, int> > Mapping;
50 // Set the descriptor for the given key.
51 void Set(Key key, int fd);