adhishm/dd2d_Matryoshka — pull request #22 by adhishm (2013-07-10 12:38:24+00:00)
Title: Version 0.0 simulate single slip plane list defects

A generic list of Defects, std::vector defects is created in the class SlipPlane. This list is the only one that is browsed during the simulation and functions are called to act on it. All generic functions have their virtual functions defined in the base class Defect, for example, idealTimeIncrement, getVelocity, stressField.

Since pointers are used, an operation on an instance of any child class of Defect modifies directly the data stored in memory without any need to modify the pointer. All lists containing this pointer will be able to access the modified data.