the copy constructor for the Boolean class (basic - no templates); | |
all of the required public methods for the MVector class including constructors (intermediate - templates); | |
a typical algorithm implementation using virtual functions and interface contracts (advanced). |
// method: constructor // // this is the copy constructor for the Boolean class // Boolean::Boolean(const Boolean& arg_a) { |
// method: readData // boolean Boolean::readData(Sof& sof_a, long size_a, boolean param_a, boolean nested_a) { |
template<class TScalar, class TIntegral> const String& MVector<TScalar, TIntegral>::name() { |
template<class TScalar, class TIntegral> const String& MVector::name() { |
Boolean myBool(); Integral::DEBUG dbg = BRIEF; myBool.diagnose(dbg); |
boolean Boolean::assign(const Boolean& arg); |
Boolean myBool(); Boolean anotherBool(); myBool.assign(anotherBool); |
// method: assign // boolean Boolean::assign(const Boolean& arg_a) { // set the value // value_d = arg_a.value_d; // exit gracefully // return true; } |
Boolean myBool(); Boolean anotherBool(); myBool.assign(anotherBool); |
// exit gracefully // Integral::exit(); |
// wrapper for operating system functions: // clean exit // static long exit(); |
// method: exit // long Integral::exit() { |