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):
buffer
is the name of theaccessor
method, which provides accessor and mutator functionality for a single entry of the hashdelete_buffer
is the name of thedelete
method, which deletes a single entry of the hashclear_buffer
is the name of theclear
method, 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.