w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

graphite2::Silf Class Reference

#include <Silf.h>

Collaboration diagram for graphite2::Silf:
[legend]

Public Member Functions

 Silf () throw ()
 
 ~Silf () throw ()
 
bool readGraphite (const byte *const pSilf, size_t lSilf, Face &face, uint32 version)
 
bool runGraphite (Segment *seg, uint8 firstPass=0, uint8 lastPass=0, int dobidi=0) const
 
uint16 findClassIndex (uint16 cid, uint16 gid) const
 
uint16 getClassGlyph (uint16 cid, unsigned int index) const
 
uint16 findPseudo (uint32 uid) const
 
uint8 numUser () const
 
uint8 aPseudo () const
 
uint8 aBreak () const
 
uint8 aMirror () const
 
uint8 aPassBits () const
 
uint8 aBidi () const
 
uint8 aCollision () const
 
uint8 substitutionPass () const
 
uint8 positionPass () const
 
uint8 justificationPass () const
 
uint8 bidiPass () const
 
uint8 numPasses () const
 
uint8 maxCompPerLig () const
 
uint16 numClasses () const
 
byte flags () const
 
byte dir () const
 
uint8 numJustLevels () const
 
JustinfojustAttrs () const
 
uint16 endLineGlyphid () const
 
const gr_faceinfosilfInfo () const
 
 Silf () throw ()
 
 ~Silf () throw ()
 
bool readGraphite (const byte *const pSilf, size_t lSilf, Face &face, uint32 version)
 
bool runGraphite (Segment *seg, uint8 firstPass=0, uint8 lastPass=0, int dobidi=0) const
 
uint16 findClassIndex (uint16 cid, uint16 gid) const
 
uint16 getClassGlyph (uint16 cid, unsigned int index) const
 
uint16 findPseudo (uint32 uid) const
 
uint8 numUser () const
 
uint8 aPseudo () const
 
uint8 aBreak () const
 
uint8 aMirror () const
 
uint8 aPassBits () const
 
uint8 aBidi () const
 
uint8 aCollision () const
 
uint8 substitutionPass () const
 
uint8 positionPass () const
 
uint8 justificationPass () const
 
uint8 bidiPass () const
 
uint8 numPasses () const
 
uint8 maxCompPerLig () const
 
uint16 numClasses () const
 
byte flags () const
 
byte dir () const
 
uint8 numJustLevels () const
 
JustinfojustAttrs () const
 
uint16 endLineGlyphid () const
 
const gr_faceinfosilfInfo () const
 

Public Attributes

 CLASS_NEW_DELETE
 

Private Member Functions

 Silf (const Silf &)
 
Silfoperator= (const Silf &)
 
size_t readClassMap (const byte *p, size_t data_len, uint32 version, Error &e)
 
template<typename T >
uint32 readClassOffsets (const byte *&p, size_t data_len, Error &e)
 
void releaseBuffers () throw ()
 
 Silf (const Silf &)
 
Silfoperator= (const Silf &)
 
size_t readClassMap (const byte *p, size_t data_len, uint32 version, Error &e)
 
template<typename T >
uint32 readClassOffsets (const byte *&p, size_t data_len, Error &e)
 
void releaseBuffers () throw ()
 

Private Attributes

Passm_passes
 
Pseudom_pseudos
 
uint32m_classOffsets
 
uint16m_classData
 
Justinfom_justs
 
uint8 m_numPasses
 
uint8 m_numJusts
 
uint8 m_sPass
 
uint8 m_pPass
 
uint8 m_jPass
 
uint8 m_bPass
 
uint8 m_flags
 
uint8 m_dir
 
uint8 m_aPseudo
 
uint8 m_aBreak
 
uint8 m_aUser
 
uint8 m_aBidi
 
uint8 m_aMirror
 
uint8 m_aPassBits
 
uint8 m_iMaxComp
 
uint8 m_aCollision
 
uint16 m_aLig
 
uint16 m_numPseudo
 
uint16 m_nClass
 
uint16 m_nLinear
 
uint16 m_gEndLine
 
gr_faceinfo m_silfinfo
 

Detailed Description

Definition at line 67 of file Silf.h.

Constructor & Destructor Documentation

◆ Silf() [1/4]

graphite2::Silf::Silf ( const Silf )
private

◆ Silf() [2/4]

Silf::Silf ( )
throw (
)

Definition at line 41 of file Silf.cpp.

References m_silfinfo, and memset().

◆ ~Silf() [1/2]

Silf::~Silf ( )
throw (
)

Definition at line 72 of file Silf.cpp.

References releaseBuffers().

◆ Silf() [3/4]

graphite2::Silf::Silf ( const Silf )
private

◆ Silf() [4/4]

graphite2::Silf::Silf ( )
throw (
)

◆ ~Silf() [2/2]

graphite2::Silf::~Silf ( )
throw (
)

Member Function Documentation

◆ aBidi() [1/2]

uint8 graphite2::Silf::aBidi ( ) const
inline

Definition at line 87 of file Silf.h.

References m_aBidi.

Referenced by graphite2::Segment::getSlotBidiClass().

◆ aBidi() [2/2]

uint8 graphite2::Silf::aBidi ( ) const
inline

Definition at line 87 of file Silf.h.

References m_aBidi.

◆ aBreak() [1/2]

uint8 graphite2::Silf::aBreak ( ) const
inline

Definition at line 84 of file Silf.h.

References m_aBreak.

Referenced by graphite2::Segment::appendSlot().

◆ aBreak() [2/2]

uint8 graphite2::Silf::aBreak ( ) const
inline

Definition at line 84 of file Silf.h.

References m_aBreak.

◆ aCollision() [1/2]

uint8 graphite2::Silf::aCollision ( ) const
inline

Definition at line 88 of file Silf.h.

References m_aCollision.

◆ aCollision() [2/2]

uint8 graphite2::Silf::aCollision ( ) const
inline

Definition at line 88 of file Silf.h.

References m_aCollision.

◆ aMirror() [1/2]

uint8 graphite2::Silf::aMirror ( ) const
inline

Definition at line 85 of file Silf.h.

References m_aMirror.

Referenced by graphite2::Face::runGraphite().

◆ aMirror() [2/2]

uint8 graphite2::Silf::aMirror ( ) const
inline

Definition at line 85 of file Silf.h.

References m_aMirror.

◆ aPassBits() [1/2]

uint8 graphite2::Silf::aPassBits ( ) const
inline

Definition at line 86 of file Silf.h.

References m_aPassBits.

Referenced by graphite2::Segment::appendSlot().

◆ aPassBits() [2/2]

uint8 graphite2::Silf::aPassBits ( ) const
inline

Definition at line 86 of file Silf.h.

References m_aPassBits.

◆ aPseudo() [1/2]

uint8 graphite2::Silf::aPseudo ( ) const
inline

Definition at line 83 of file Silf.h.

References m_aPseudo.

◆ aPseudo() [2/2]

uint8 graphite2::Silf::aPseudo ( ) const
inline

Definition at line 83 of file Silf.h.

References m_aPseudo.

◆ bidiPass() [1/2]

uint8 graphite2::Silf::bidiPass ( ) const
inline

Definition at line 92 of file Silf.h.

References m_bPass.

Referenced by graphite2::Segment::justify(), and graphite2::Face::runGraphite().

◆ bidiPass() [2/2]

uint8 graphite2::Silf::bidiPass ( ) const
inline

Definition at line 92 of file Silf.h.

References m_bPass.

◆ dir() [1/2]

◆ dir() [2/2]

byte graphite2::Silf::dir ( ) const
inline

◆ endLineGlyphid() [1/2]

uint16 graphite2::Silf::endLineGlyphid ( ) const
inline

Definition at line 100 of file Silf.h.

References m_gEndLine.

Referenced by graphite2::Segment::addLineEnd().

◆ endLineGlyphid() [2/2]

uint16 graphite2::Silf::endLineGlyphid ( ) const
inline

Definition at line 100 of file Silf.h.

References m_gEndLine.

◆ findClassIndex() [1/2]

uint16 Silf::findClassIndex ( uint16  cid,
uint16  gid 
) const

◆ findClassIndex() [2/2]

uint16 graphite2::Silf::findClassIndex ( uint16  cid,
uint16  gid 
) const

◆ findPseudo() [1/2]

uint16 Silf::findPseudo ( uint32  uid) const

Definition at line 305 of file Silf.cpp.

References graphite2::Pseudo::gid, i, m_numPseudo, and m_pseudos.

Referenced by graphite2::Face::findPseudo(), and gr_face_is_char_supported().

◆ findPseudo() [2/2]

uint16 graphite2::Silf::findPseudo ( uint32  uid) const

◆ flags() [1/2]

byte graphite2::Silf::flags ( ) const
inline

Definition at line 96 of file Silf.h.

References m_flags.

Referenced by graphite2::Pass::readPass(), and graphite2::Face::runGraphite().

◆ flags() [2/2]

byte graphite2::Silf::flags ( ) const
inline

Definition at line 96 of file Silf.h.

References m_flags.

◆ getClassGlyph() [1/2]

uint16 Silf::getClassGlyph ( uint16  cid,
unsigned int  index 
) const

Definition at line 338 of file Silf.cpp.

References i, loc, m_classData, m_classOffsets, m_nClass, and m_nLinear.

Referenced by graphite2::Segment::getClassGlyph().

◆ getClassGlyph() [2/2]

uint16 graphite2::Silf::getClassGlyph ( uint16  cid,
unsigned int  index 
) const

◆ justAttrs() [1/2]

Justinfo* graphite2::Silf::justAttrs ( ) const
inline

Definition at line 99 of file Silf.h.

References m_justs.

◆ justAttrs() [2/2]

Justinfo* graphite2::Silf::justAttrs ( ) const
inline

Definition at line 99 of file Silf.h.

References m_justs.

◆ justificationPass() [1/2]

uint8 graphite2::Silf::justificationPass ( ) const
inline

Definition at line 91 of file Silf.h.

References m_jPass.

Referenced by graphite2::Segment::justify().

◆ justificationPass() [2/2]

uint8 graphite2::Silf::justificationPass ( ) const
inline

Definition at line 91 of file Silf.h.

References m_jPass.

◆ maxCompPerLig() [1/2]

uint8 graphite2::Silf::maxCompPerLig ( ) const
inline

Definition at line 94 of file Silf.h.

References m_iMaxComp.

◆ maxCompPerLig() [2/2]

uint8 graphite2::Silf::maxCompPerLig ( ) const
inline

Definition at line 94 of file Silf.h.

References m_iMaxComp.

◆ numClasses() [1/2]

uint16 graphite2::Silf::numClasses ( ) const
inline

Definition at line 95 of file Silf.h.

References m_nClass.

◆ numClasses() [2/2]

uint16 graphite2::Silf::numClasses ( ) const
inline

Definition at line 95 of file Silf.h.

References m_nClass.

◆ numJustLevels() [1/2]

uint8 graphite2::Silf::numJustLevels ( ) const
inline

◆ numJustLevels() [2/2]

uint8 graphite2::Silf::numJustLevels ( ) const
inline

Definition at line 98 of file Silf.h.

References m_numJusts.

◆ numPasses() [1/2]

uint8 graphite2::Silf::numPasses ( ) const
inline

◆ numPasses() [2/2]

uint8 graphite2::Silf::numPasses ( ) const
inline

Definition at line 93 of file Silf.h.

References m_numPasses.

◆ numUser() [1/2]

uint8 graphite2::Silf::numUser ( ) const
inline

◆ numUser() [2/2]

uint8 graphite2::Silf::numUser ( ) const
inline

Definition at line 82 of file Silf.h.

References m_aUser.

◆ operator=() [1/2]

Silf& graphite2::Silf::operator= ( const Silf )
private

◆ operator=() [2/2]

Silf& graphite2::Silf::operator= ( const Silf )
private

◆ positionPass() [1/2]

uint8 graphite2::Silf::positionPass ( ) const
inline

Definition at line 90 of file Silf.h.

References m_pPass.

Referenced by graphite2::Segment::justify(), and graphite2::Face::runGraphite().

◆ positionPass() [2/2]

uint8 graphite2::Silf::positionPass ( ) const
inline

Definition at line 90 of file Silf.h.

References m_pPass.

◆ readClassMap() [1/2]

◆ readClassMap() [2/2]

size_t graphite2::Silf::readClassMap ( const byte p,
size_t  data_len,
uint32  version,
Error e 
)
private

◆ readClassOffsets() [1/2]

template<typename T >
uint32 Silf::readClassOffsets ( const byte *&  p,
size_t  data_len,
Error e 
)
inlineprivate

◆ readClassOffsets() [2/2]

template<typename T >
uint32 graphite2::Silf::readClassOffsets ( const byte *&  p,
size_t  data_len,
Error e 
)
inlineprivate

◆ readGraphite() [1/2]

bool Silf::readGraphite ( const byte *const  pSilf,
size_t  lSilf,
Face face,
uint32  version 
)

◆ readGraphite() [2/2]

bool graphite2::Silf::readGraphite ( const byte *const  pSilf,
size_t  lSilf,
Face face,
uint32  version 
)

◆ releaseBuffers() [1/2]

void Silf::releaseBuffers ( )
throw (
)
private

Definition at line 77 of file Silf.cpp.

References free, m_classData, m_classOffsets, m_justs, m_passes, and m_pseudos.

Referenced by readGraphite(), and ~Silf().

◆ releaseBuffers() [2/2]

void graphite2::Silf::releaseBuffers ( )
throw (
)
private

◆ runGraphite() [1/2]

◆ runGraphite() [2/2]

bool graphite2::Silf::runGraphite ( Segment seg,
uint8  firstPass = 0,
uint8  lastPass = 0,
int  dobidi = 0 
) const

◆ silfInfo() [1/2]

const gr_faceinfo* graphite2::Silf::silfInfo ( ) const
inline

Definition at line 101 of file Silf.h.

References m_silfinfo.

Referenced by gr_face_info().

◆ silfInfo() [2/2]

const gr_faceinfo* graphite2::Silf::silfInfo ( ) const
inline

Definition at line 101 of file Silf.h.

References m_silfinfo.

◆ substitutionPass() [1/2]

uint8 graphite2::Silf::substitutionPass ( ) const
inline

Definition at line 89 of file Silf.h.

References m_sPass.

◆ substitutionPass() [2/2]

uint8 graphite2::Silf::substitutionPass ( ) const
inline

Definition at line 89 of file Silf.h.

References m_sPass.

Member Data Documentation

◆ CLASS_NEW_DELETE

graphite2::Silf::CLASS_NEW_DELETE

Definition at line 103 of file Silf.h.

◆ m_aBidi

uint8 graphite2::Silf::m_aBidi
private

Definition at line 119 of file Silf.h.

Referenced by aBidi(), and readGraphite().

◆ m_aBreak

uint8 graphite2::Silf::m_aBreak
private

Definition at line 119 of file Silf.h.

Referenced by aBreak(), and readGraphite().

◆ m_aCollision

uint8 graphite2::Silf::m_aCollision
private

Definition at line 120 of file Silf.h.

Referenced by aCollision(), and readGraphite().

◆ m_aLig

uint16 graphite2::Silf::m_aLig
private

Definition at line 121 of file Silf.h.

Referenced by readGraphite().

◆ m_aMirror

uint8 graphite2::Silf::m_aMirror
private

Definition at line 119 of file Silf.h.

Referenced by aMirror(), readGraphite(), and runGraphite().

◆ m_aPassBits

uint8 graphite2::Silf::m_aPassBits
private

Definition at line 119 of file Silf.h.

Referenced by aPassBits(), and readGraphite().

◆ m_aPseudo

uint8 graphite2::Silf::m_aPseudo
private

Definition at line 119 of file Silf.h.

Referenced by aPseudo(), and readGraphite().

◆ m_aUser

uint8 graphite2::Silf::m_aUser
private

Definition at line 119 of file Silf.h.

Referenced by numUser(), and readGraphite().

◆ m_bPass

uint8 graphite2::Silf::m_bPass
private

Definition at line 116 of file Silf.h.

Referenced by bidiPass(), readGraphite(), and runGraphite().

◆ m_classData

uint16 * graphite2::Silf::m_classData
private

Definition at line 112 of file Silf.h.

Referenced by findClassIndex(), getClassGlyph(), readClassMap(), and releaseBuffers().

◆ m_classOffsets

uint32 * graphite2::Silf::m_classOffsets
private

Definition at line 111 of file Silf.h.

Referenced by findClassIndex(), getClassGlyph(), readClassMap(), readClassOffsets(), and releaseBuffers().

◆ m_dir

uint8 graphite2::Silf::m_dir
private

Definition at line 117 of file Silf.h.

Referenced by dir(), readGraphite(), and runGraphite().

◆ m_flags

uint8 graphite2::Silf::m_flags
private

Definition at line 117 of file Silf.h.

Referenced by flags(), and readGraphite().

◆ m_gEndLine

uint16 graphite2::Silf::m_gEndLine
private

Definition at line 122 of file Silf.h.

Referenced by endLineGlyphid(), and readGraphite().

◆ m_iMaxComp

uint8 graphite2::Silf::m_iMaxComp
private

Definition at line 120 of file Silf.h.

Referenced by maxCompPerLig(), and readGraphite().

◆ m_jPass

uint8 graphite2::Silf::m_jPass
private

Definition at line 116 of file Silf.h.

Referenced by justificationPass(), and readGraphite().

◆ m_justs

Justinfo * graphite2::Silf::m_justs
private

Definition at line 113 of file Silf.h.

Referenced by justAttrs(), readGraphite(), and releaseBuffers().

◆ m_nClass

uint16 graphite2::Silf::m_nClass
private

Definition at line 121 of file Silf.h.

Referenced by findClassIndex(), getClassGlyph(), numClasses(), readClassMap(), and readClassOffsets().

◆ m_nLinear

uint16 graphite2::Silf::m_nLinear
private

Definition at line 121 of file Silf.h.

Referenced by findClassIndex(), getClassGlyph(), and readClassMap().

◆ m_numJusts

uint8 graphite2::Silf::m_numJusts
private

Definition at line 115 of file Silf.h.

Referenced by numJustLevels(), and readGraphite().

◆ m_numPasses

uint8 graphite2::Silf::m_numPasses
private

Definition at line 114 of file Silf.h.

Referenced by numPasses(), readGraphite(), and runGraphite().

◆ m_numPseudo

uint16 graphite2::Silf::m_numPseudo
private

Definition at line 121 of file Silf.h.

Referenced by findPseudo(), and readGraphite().

◆ m_passes

Pass * graphite2::Silf::m_passes
private

Definition at line 109 of file Silf.h.

Referenced by readGraphite(), releaseBuffers(), and runGraphite().

◆ m_pPass

uint8 graphite2::Silf::m_pPass
private

Definition at line 116 of file Silf.h.

Referenced by positionPass(), and readGraphite().

◆ m_pseudos

Pseudo * graphite2::Silf::m_pseudos
private

Definition at line 110 of file Silf.h.

Referenced by findPseudo(), readGraphite(), and releaseBuffers().

◆ m_silfinfo

gr_faceinfo graphite2::Silf::m_silfinfo
private

Definition at line 123 of file Silf.h.

Referenced by readGraphite(), Silf(), and silfInfo().

◆ m_sPass

uint8 graphite2::Silf::m_sPass
private

Definition at line 116 of file Silf.h.

Referenced by readGraphite(), and substitutionPass().


The documentation for this class was generated from the following files: