Math::Geometry::Construction::Role::Buffering - buffer results
Math::Geometry::Construction::Role::Buffering
Version 0.018
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.
DerivedPoint
Derivate
The buffer attribute implements the following hash traits (see Moose if you are not familiar with traits and native delegation):
buffer
buffer is the name of the accessor method, which provides accessor and mutator functionality for a single entry of the hash
accessor
delete_buffer is the name of the delete method, which deletes a single entry of the hash
delete_buffer
delete
clear_buffer is the name of the clear method, which resets the hash to the empty hash
clear_buffer
clear
Calls clear_buffer on the Math::Geometry::Construction object. Mainly used as trigger for attributes. When the attribute is changed the buffer is cleared.
Math::Geometry::Construction
trigger
Lutz Gehlen, <perl at lutzgehlen.de>
<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.
To install Math::Geometry::Construction, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::Geometry::Construction
CPAN shell
perl -MCPAN -e shell install Math::Geometry::Construction
For more information on module installation, please visit the detailed CPAN module installation guide.