pmc/vector.cc
changeset 54 c064ce9f40f5
parent 45 7197576fedcf
child 65 76514757b0d6
equal deleted inserted replaced
53:6b3d7e3418c1 54:c064ce9f40f5
    15     name = "Vector";
    15     name = "Vector";
    16     x = xx;
    16     x = xx;
    17     y = yy;
    17     y = yy;
    18     mode = RAD;
    18     mode = RAD;
    19 
    19 
       
    20     refCounter++;
       
    21 
    20 #ifdef DEBUG
    22 #ifdef DEBUG
    21     fprintf (stderr, "New Vector: (%.3d, %.3d)\n", x, y);
    23     fprintf (stderr, "New Vector: (%.3d, %.3d)\n", x, y);
    22 #endif
    24 #endif
       
    25 }
       
    26 
       
    27 Vector::Vector (const Vector & copy)
       
    28 :x (copy.x), y (copy.y)
       
    29 {
       
    30     fprintf (stderr, "Warning: Copy Constructor: ");
       
    31     vector ();
       
    32     fprintf (stderr, "\n");
       
    33     refCounter++;
    23 }
    34 }
    24 
    35 
    25 Vector::~Vector ()
    36 Vector::~Vector ()
    26 {
    37 {
    27 #ifdef DEBUG
    38 #ifdef DEBUG