// EdoKey.cxx #include "EdoKey.h" #include #include #include using std::string; using hes::Index; using hes::IndexVector; using hes::Name; using hes::EdoKey; //********************************************************************** // Static member functions. //********************************************************************** // Version. int EdoKey::version() { return Name::version(); } //********************************************************************** // Member functions. //********************************************************************** // Default constructor. EdoKey::EdoKey() { } //********************************************************************** // Name constructor. EdoKey::EdoKey(Name name) : Name(name) { } //********************************************************************** // Index constructor. EdoKey::EdoKey(const Index*& pidx) : Name(pidx) { } //********************************************************************** // Free functions. //********************************************************************** // Output stream. ostream& operator<<(ostream& lhs, const EdoKey& rhs) { if ( ! rhs.is_valid() ) { lhs << "invalid key"; return lhs; } lhs << Name(rhs); return lhs; } //**********************************************************************