Greg London > Parse-Gnaw > Parse::Gnaw::LinkedListLetterDimensions2

Download:
Parse-Gnaw-0.601.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Parse::Gnaw::LinkedListLetterDimensions2 - Create a Parsable linked list of Parse::Gnaw::Letter objects, with 4 axis of dimension. This would be equivalent to a 2-dimensional block of text, equivalent to somthing like:

        a-b-c
        |X|X|
        d-e-f
        |X|X|
        g-h-i   

SUBROUTINES/METHODS ^

constructor_defaults

return a hash containing the default values for constructor arguments. this gets overloaded by derived classes so base constructor always does the right thing.

append this gets overloaded by derived classes so base constructor always does the right thing.

append_block_d2 This method appends a two-dimensional block of text

create_interconnections_for_newly_appended_character

The variable names reflect the physical position of hte letters

$upleft $above

$left $newletter

The axis interconnect the letters as follows:

0 => horizontally 1 => vertically 2 => diagonal upper left to lower right 3 => diagonal upper right ot lower left

Assume that axis [0] is already connected. We need to connect axis 1,2,3

syntax highlighting: