Rosetta
Classes | Namespaces | Functions
Key.hh File Reference

Hidden index key interface class. More...

#include <utility/keys/Key.fwd.hh>
#include <cstddef>
#include <string>

Classes

class  utility::keys::Key
 Hidden index key interface class. More...
 

Namespaces

 utility
 unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0.
 
 utility::keys
 

Functions

bool utility::keys::operator== (Key const &a, Key const &b)
 Key == Key. More...
 
bool utility::keys::operator!= (Key const &a, Key const &b)
 Key != Key. More...
 
bool utility::keys::operator< (Key const &a, Key const &b)
 Key < Key. More...
 
bool utility::keys::operator<= (Key const &a, Key const &b)
 Key <= Key. More...
 
bool utility::keys::operator>= (Key const &a, Key const &b)
 Key >= Key. More...
 
bool utility::keys::operator> (Key const &a, Key const &b)
 Key > Key. More...
 
bool utility::keys::comparable (Key const &a, Key const &b)
 Are Keys of Comparable Types? More...
 

Detailed Description

Hidden index key interface class.

Author
Stuart G. Mentzer (Stuar.nosp@m.t_Me.nosp@m.ntzer.nosp@m.@obj.nosp@m.exx.c.nosp@m.om)
Note
  • Interface provides common base class for covariant return in hierarchies
  • Derived classes specify the friend class(es) that can access the index
  • Index can be ignored if not used as key/index into a container
  • Can safely derive from concrete Key types as long as fields aren't added
  • Can derive privately from an Key to share the index set of another Key type without allowing convertibility (for type safety)