// // Basic Summary: // // Implementation file for a pair of things definition // // Copyright: // // Copyright 1993 Ron Burback // Copyright 1993 Objects Plus // All rights reserved // // Description: clasical pair of (key,data) // // // Data elemnents: // pointer to key // pointer to data // // // Methods: // // The methods are // pair(); - standard constructor // ~pair(); - standard disctructor // // Macro definitions: none // // // Class definition: // // Include files: // #include #include "standard.h" #include "pair.h" // // define the version of this structure // char * pair::version = "Objects Plus Pair Version 1.0" ; // // function: pair // parameters: none // goal: basic constructor // returns: new element // pair::pair() { key = nil ; data = nil; } // // function: ~pair // parameters: none // goal: basic destructor // returns: element to the heap // pair::~pair() { key = nil ; data = nil; }