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::SlotMap Class Reference

#include <Rule.h>

Collaboration diagram for graphite2::SlotMap:
[legend]

Public Types

enum  { MAX_SLOTS =64 }
 
enum  { MAX_SLOTS =64 }
 

Public Member Functions

 SlotMap (Segment &seg, uint8 direction, size_t maxSize)
 
Slot ** begin ()
 
Slot ** end ()
 
size_t size () const
 
unsigned short context () const
 
void reset (Slot &, unsigned short)
 
Slot *constoperator[] (int n) const
 
Slot *& operator[] (int)
 
void pushSlot (Slot *const slot)
 
void collectGarbage (Slot *&aSlot)
 
Slothighwater ()
 
void highwater (Slot *s)
 
bool highpassed () const
 
void highpassed (bool v)
 
uint8 dir () const
 
int decMax ()
 
 SlotMap (Segment &seg, uint8 direction, size_t maxSize)
 
Slot ** begin ()
 
Slot ** end ()
 
size_t size () const
 
unsigned short context () const
 
void reset (Slot &, unsigned short)
 
Slot *constoperator[] (int n) const
 
Slot *& operator[] (int)
 
void pushSlot (Slot *const slot)
 
void collectGarbage (Slot *&aSlot)
 
Slothighwater ()
 
void highwater (Slot *s)
 
bool highpassed () const
 
void highpassed (bool v)
 
uint8 dir () const
 
int decMax ()
 

Public Attributes

Segmentsegment
 

Private Attributes

Slotm_slot_map [MAX_SLOTS+1]
 
unsigned short m_size
 
unsigned short m_precontext
 
Slotm_highwater
 
int m_maxSize
 
uint8 m_dir
 
bool m_highpassed
 

Detailed Description

Definition at line 101 of file Rule.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_SLOTS 

Definition at line 104 of file Rule.h.

◆ anonymous enum

anonymous enum
Enumerator
MAX_SLOTS 

Definition at line 104 of file Rule.h.

Constructor & Destructor Documentation

◆ SlotMap() [1/2]

graphite2::SlotMap::SlotMap ( Segment seg,
uint8  direction,
size_t  maxSize 
)
inline

Definition at line 247 of file Rule.h.

References m_slot_map.

◆ SlotMap() [2/2]

graphite2::SlotMap::SlotMap ( Segment seg,
uint8  direction,
size_t  maxSize 
)

Member Function Documentation

◆ begin() [1/2]

Slot ** graphite2::SlotMap::begin ( )
inline

Definition at line 255 of file Rule.h.

References m_slot_map.

Referenced by collectGarbage().

◆ begin() [2/2]

Slot* * graphite2::SlotMap::begin ( )

◆ collectGarbage() [1/2]

void SlotMap::collectGarbage ( Slot *&  aSlot)

Definition at line 662 of file Pass.cpp.

References begin(), end(), s, and slot.

◆ collectGarbage() [2/2]

void graphite2::SlotMap::collectGarbage ( Slot *&  aSlot)

◆ context() [1/2]

short unsigned int graphite2::SlotMap::context ( ) const
inline

◆ context() [2/2]

unsigned short graphite2::SlotMap::context ( ) const

◆ decMax() [1/2]

int graphite2::SlotMap::decMax ( )
inline

Definition at line 124 of file Rule.h.

References m_maxSize.

◆ decMax() [2/2]

int graphite2::SlotMap::decMax ( )
inline

Definition at line 124 of file Rule.h.

References m_maxSize.

◆ dir() [1/2]

uint8 graphite2::SlotMap::dir ( ) const
inline

◆ dir() [2/2]

uint8 graphite2::SlotMap::dir ( ) const
inline

◆ end() [1/2]

Slot ** graphite2::SlotMap::end ( )
inline

Definition at line 262 of file Rule.h.

References m_size, and m_slot_map.

Referenced by collectGarbage().

◆ end() [2/2]

Slot* * graphite2::SlotMap::end ( )

◆ highpassed() [1/4]

bool graphite2::SlotMap::highpassed ( ) const
inline

Definition at line 120 of file Rule.h.

References m_highpassed.

◆ highpassed() [2/4]

bool graphite2::SlotMap::highpassed ( ) const
inline

Definition at line 120 of file Rule.h.

References m_highpassed.

◆ highpassed() [3/4]

void graphite2::SlotMap::highpassed ( bool  v)
inline

Definition at line 121 of file Rule.h.

References m_highpassed, and v.

◆ highpassed() [4/4]

void graphite2::SlotMap::highpassed ( bool  v)
inline

Definition at line 121 of file Rule.h.

References m_highpassed, and v.

◆ highwater() [1/4]

Slot* graphite2::SlotMap::highwater ( )
inline

Definition at line 118 of file Rule.h.

References m_highwater.

◆ highwater() [2/4]

Slot* graphite2::SlotMap::highwater ( )
inline

Definition at line 118 of file Rule.h.

References m_highwater.

◆ highwater() [3/4]

void graphite2::SlotMap::highwater ( Slot s)
inline

Definition at line 119 of file Rule.h.

References m_highpassed, m_highwater, and s.

◆ highwater() [4/4]

void graphite2::SlotMap::highwater ( Slot s)
inline

Definition at line 119 of file Rule.h.

References m_highpassed, m_highwater, and s.

◆ operator[]() [1/4]

Slot *const & graphite2::SlotMap::operator[] ( int  n) const
inline

Definition at line 294 of file Rule.h.

References m_slot_map, and n.

◆ operator[]() [2/4]

Slot* const& graphite2::SlotMap::operator[] ( int  n) const

◆ operator[]() [3/4]

Slot *& graphite2::SlotMap::operator[] ( int  n)
inline

Definition at line 300 of file Rule.h.

References m_slot_map, and n.

◆ operator[]() [4/4]

Slot* & graphite2::SlotMap::operator[] ( int  )

◆ pushSlot() [1/2]

void graphite2::SlotMap::pushSlot ( Slot *const  slot)
inline

Definition at line 288 of file Rule.h.

References m_size, m_slot_map, and slot.

Referenced by graphite2::Pass::runFSM().

◆ pushSlot() [2/2]

void graphite2::SlotMap::pushSlot ( Slot *const  slot)

◆ reset() [1/2]

void graphite2::SlotMap::reset ( Slot ,
unsigned short   
)

◆ reset() [2/2]

void graphite2::SlotMap::reset ( Slot ,
unsigned short   
)

◆ size() [1/2]

size_t graphite2::SlotMap::size ( ) const
inline

Definition at line 268 of file Rule.h.

References m_size.

◆ size() [2/2]

size_t graphite2::SlotMap::size ( ) const

Member Data Documentation

◆ m_dir

uint8 graphite2::SlotMap::m_dir
private

Definition at line 133 of file Rule.h.

Referenced by dir().

◆ m_highpassed

bool graphite2::SlotMap::m_highpassed
private

Definition at line 134 of file Rule.h.

Referenced by highpassed(), and highwater().

◆ m_highwater

Slot * graphite2::SlotMap::m_highwater
private

Definition at line 131 of file Rule.h.

Referenced by highwater().

◆ m_maxSize

int graphite2::SlotMap::m_maxSize
private

Definition at line 132 of file Rule.h.

Referenced by decMax().

◆ m_precontext

unsigned short graphite2::SlotMap::m_precontext
private

Definition at line 130 of file Rule.h.

Referenced by context().

◆ m_size

unsigned short graphite2::SlotMap::m_size
private

Definition at line 129 of file Rule.h.

Referenced by end(), pushSlot(), and size().

◆ m_slot_map

Slot * graphite2::SlotMap::m_slot_map
private

Definition at line 128 of file Rule.h.

Referenced by begin(), end(), operator[](), pushSlot(), and SlotMap().

◆ segment

Segment & graphite2::SlotMap::segment

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