NAME
Math::Geometry::Construction::Role::Buffering - buffer results
VERSION
Version 0.018
DESCRIPTION
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 DerivedPoint and Derivate objects to store their positions.
INTERFACE
buffer
The buffer attribute implements the following hash traits (see Moose if you are not familiar with traits and native delegation):
bufferis the name of theaccessormethod, which provides accessor and mutator functionality for a single entry of the hashdelete_bufferis the name of thedeletemethod, which deletes a single entry of the hashclear_bufferis the name of theclearmethod, which resets the hash to the empty hash
clear_global_buffer
Calls clear_buffer on the Math::Geometry::Construction object. Mainly used as trigger for attributes. When the attribute is changed the buffer is cleared.
AUTHOR
Lutz Gehlen, <perl at lutzgehlen.de>
LICENSE AND COPYRIGHT
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.