BrailleTutorNS::DotsMirror Struct Reference

A class that intercepts and mirrors lookup operations on charsets. More...

#include <Charset.h>

Collaboration diagram for BrailleTutorNS::DotsMirror:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const GlyphMappingoperator[] (const unsigned char &dots) const
 Does Charset::operator[](const unsigned char&) with the dots mirrored.
const unsigned char operator[] (const GlyphMapping &letter) const
 Does Charset::operator[](const std::wstring&) with the dots mirrored.
 DotsMirror (const Charset &my_charset)
 Constructor: sets our const reference to the current charset.

Static Public Member Functions

static const
unsigned char 
mir (const unsigned char &dots)
 Mirrors the positions of Braille dots around the vertical axis.

Public Attributes

const Charsetcharset
 Refers to the Charset object to which this mirror is applied.


Detailed Description

A class that intercepts and mirrors lookup operations on charsets.

This class shadows the []-based lookup operations in Charset and causes all instances of braille cell dots to be mirrored about the vertical axis. Useful for the Braille Tutor itself, where users must enter the mirror image of Braille dots into the slate cells.


Member Function Documentation

static const unsigned char BrailleTutorNS::DotsMirror::mir ( const unsigned char &  dots  )  [inline, static]

Mirrors the positions of Braille dots around the vertical axis.

Returns a new dot pattern with dots 1,2,3 swapped with dots 4,5,6 and dot 7 swapped with dot 8. Useful for the Braille Tutor itself, where users must enter the mirror image of Braille dots into the slate cells.


The documentation for this struct was generated from the following file:
Generated on Fri Nov 16 14:50:26 2007 for Braille Tutor Interface Library by  doxygen 1.5.3