More specifically, these aliases provide the abilities to change directory backward to previous directories (not to be mistaken with parent directories), to change directory forward to directories previously changed back from, and to view the directory history for the current terminal session including all backward directories, the current directory, and all forward directories. Just source this file from your ~/.bashrc or similar files and these aliases will all be applied at the beginning of each new terminal session.
I decided to try my hand at making my code a bit safer as far as managing weak references goes, so I tried to make something to track references to memory locations. I soon thought that it was a stupid idea and simplified it so that it was simply the memory locations' validity which were being monitored. That way, all I needed to do was essentially a custom null check to see if my weak references were still valid. I tried to do this in the simplest and most aesthetically pleasing way as possible. Naturally, that means (to me) attempting to overload the new and delete keywords for every possible type. Well, since you can't do that, I decided to use macros :)
I also came up with two seperate static classes which are only really different in that they use two different data structures.
- Import the .cpp files into your project source and the .h files into your project headers.
- Include only the MemMon.h file wherever you plan on using
Nicholas Chiasson - 100891716 - October 25, 2015
-
Task 1 - Using vector operations and transformations
-
Given a point P = (Px, Py, Pz) and an object, O = (Ox, Oy, Oz)... 1. First, translate P to the origin.
Note: since the rotational axis is the x axis, we only really need to transform P to the x axis.