Math::Geometry::Construction::Role::Buffering - buffer results
This role provides a hash in which results can be stored in order to prevent expensive recalculating when they are accessed. It is used by
Derivate objects to store their positions.
buffer attribute implements the following hash traits (see Moose if you are not familiar with traits and native delegation):
bufferis the name of the
accessormethod, which provides accessor and mutator functionality for a single entry of the hash
delete_bufferis the name of the
deletemethod, which deletes a single entry of the hash
clear_bufferis the name of the
clearmethod, which resets the hash to the empty hash
Calls clear_buffer on the
Math::Geometry::Construction object. Mainly used as
trigger for attributes. When the attribute is changed the buffer is cleared.
<perl at lutzgehlen.de>
Copyright 2011 Lutz Gehlen.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.