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

#include <FeatureMap.h>

Inheritance diagram for graphite2::FeatureRef:
[legend]
Collaboration diagram for graphite2::FeatureRef:
[legend]

Public Types

enum  flags_t : uint16 { HIDDEN = 0x0800 , HIDDEN = 0x0800 }
 
enum  flags_t : uint16 { HIDDEN = 0x0800 , HIDDEN = 0x0800 }
 

Public Member Functions

 FeatureRef () throw ()
 
 FeatureRef (const Face &face, unsigned short &bits_offset, uint32 max_val, uint32 name, uint16 uiName, flags_t flags, FeatureSetting *settings, uint16 num_set) throw ()
 
 ~FeatureRef () throw ()
 
bool applyValToFeature (uint32 val, Features &pDest) const
 
void maskFeature (Features &pDest) const
 
uint32 getFeatureVal (const Features &feats) const
 
uint32 getId () const
 
uint16 getNameId () const
 
uint16 getNumSettings () const
 
uint16 getSettingName (uint16 index) const
 
int16 getSettingValue (uint16 index) const
 
flags_t getFlags () const
 
uint32 maxVal () const
 
const FacegetFace () const
 
const FeatureMapgetFeatureMap () const
 
 FeatureRef () throw ()
 
 FeatureRef (const Face &face, unsigned short &bits_offset, uint32 max_val, uint32 name, uint16 uiName, flags_t flags, FeatureSetting *settings, uint16 num_set) throw ()
 
 ~FeatureRef () throw ()
 
bool applyValToFeature (uint32 val, Features &pDest) const
 
void maskFeature (Features &pDest) const
 
uint32 getFeatureVal (const Features &feats) const
 
uint32 getId () const
 
uint16 getNameId () const
 
uint16 getNumSettings () const
 
uint16 getSettingName (uint16 index) const
 
int16 getSettingValue (uint16 index) const
 
flags_t getFlags () const
 
uint32 maxVal () const
 
const FacegetFace () const
 
const FeatureMapgetFeatureMap () const
 

Public Attributes

 CLASS_NEW_DELETE
 

Private Types

typedef uint32 chunk_t
 
typedef uint32 chunk_t
 

Private Member Functions

 FeatureRef (const FeatureRef &rhs)
 
FeatureRefoperator= (const FeatureRef &)
 
 FeatureRef (const FeatureRef &rhs)
 
FeatureRefoperator= (const FeatureRef &)
 

Private Attributes

const Facem_face
 
FeatureSettingm_nameValues
 
chunk_t m_mask
 
chunk_t m_max
 
uint32 m_id
 
uint16 m_nameid
 
uint16 m_numSet
 
flags_t m_flags
 
byte m_bits
 
byte m_index
 

Static Private Attributes

static const uint8 SIZEOF_CHUNK = sizeof(chunk_t)*8
 

Detailed Description

Definition at line 53 of file FeatureMap.h.

Member Typedef Documentation

◆ chunk_t [1/2]

Definition at line 55 of file FeatureMap.h.

◆ chunk_t [2/2]

Definition at line 55 of file FeatureMap.h.

Member Enumeration Documentation

◆ flags_t [1/2]

Enumerator
HIDDEN 
HIDDEN 

Definition at line 59 of file FeatureMap.h.

◆ flags_t [2/2]

Enumerator
HIDDEN 
HIDDEN 

Definition at line 59 of file FeatureMap.h.

Constructor & Destructor Documentation

◆ FeatureRef() [1/6]

graphite2::FeatureRef::FeatureRef ( )
throw (
)
inline

Definition at line 106 of file FeatureMap.h.

◆ FeatureRef() [2/6]

FeatureRef::FeatureRef ( const Face face,
unsigned short &  bits_offset,
uint32  max_val,
uint32  name,
uint16  uiName,
flags_t  flags,
FeatureSetting settings,
uint16  num_set 
)
throw (
)

Definition at line 72 of file FeatureMap.cpp.

References graphite2::bit_set_count().

◆ ~FeatureRef() [1/2]

FeatureRef::~FeatureRef ( )
throw (
)

Definition at line 94 of file FeatureMap.cpp.

References free, and m_nameValues.

◆ FeatureRef() [3/6]

graphite2::FeatureRef::FeatureRef ( const FeatureRef rhs)
private

◆ FeatureRef() [4/6]

graphite2::FeatureRef::FeatureRef ( )
throw (
)

◆ FeatureRef() [5/6]

graphite2::FeatureRef::FeatureRef ( const Face face,
unsigned short &  bits_offset,
uint32  max_val,
uint32  name,
uint16  uiName,
flags_t  flags,
FeatureSetting settings,
uint16  num_set 
)
throw (
)

◆ ~FeatureRef() [2/2]

graphite2::FeatureRef::~FeatureRef ( )
throw (
)

◆ FeatureRef() [6/6]

graphite2::FeatureRef::FeatureRef ( const FeatureRef rhs)
private

Member Function Documentation

◆ applyValToFeature() [1/2]

◆ applyValToFeature() [2/2]

bool graphite2::FeatureRef::applyValToFeature ( uint32  val,
Features pDest 
) const

◆ getFace() [1/2]

const Face& graphite2::FeatureRef::getFace ( ) const
inline

Definition at line 83 of file FeatureMap.h.

References assert(), and m_face.

Referenced by gr_fref_label(), and gr_fref_value_label().

◆ getFace() [2/2]

const Face& graphite2::FeatureRef::getFace ( ) const
inline

Definition at line 83 of file FeatureMap.h.

References assert(), and m_face.

◆ getFeatureMap() [1/2]

const FeatureMap* graphite2::FeatureRef::getFeatureMap ( ) const

◆ getFeatureMap() [2/2]

const FeatureMap* graphite2::FeatureRef::getFeatureMap ( ) const

◆ getFeatureVal() [1/2]

◆ getFeatureVal() [2/2]

uint32 graphite2::FeatureRef::getFeatureVal ( const Features feats) const

◆ getFlags() [1/2]

flags_t graphite2::FeatureRef::getFlags ( ) const
inline

Definition at line 81 of file FeatureMap.h.

References m_flags.

Referenced by gr_face_fref(), and gr_face_n_fref().

◆ getFlags() [2/2]

flags_t graphite2::FeatureRef::getFlags ( ) const
inline

Definition at line 81 of file FeatureMap.h.

References m_flags.

◆ getId() [1/2]

uint32 graphite2::FeatureRef::getId ( ) const
inline

Definition at line 76 of file FeatureMap.h.

References m_id.

Referenced by gr_fref_id().

◆ getId() [2/2]

uint32 graphite2::FeatureRef::getId ( ) const
inline

Definition at line 76 of file FeatureMap.h.

References m_id.

◆ getNameId() [1/2]

uint16 graphite2::FeatureRef::getNameId ( ) const
inline

Definition at line 77 of file FeatureMap.h.

References m_nameid.

Referenced by gr_fref_label().

◆ getNameId() [2/2]

uint16 graphite2::FeatureRef::getNameId ( ) const
inline

Definition at line 77 of file FeatureMap.h.

References m_nameid.

◆ getNumSettings() [1/2]

uint16 graphite2::FeatureRef::getNumSettings ( ) const
inline

Definition at line 78 of file FeatureMap.h.

References m_numSet.

Referenced by gr_fref_n_values(), gr_fref_value(), and gr_fref_value_label().

◆ getNumSettings() [2/2]

uint16 graphite2::FeatureRef::getNumSettings ( ) const
inline

Definition at line 78 of file FeatureMap.h.

References m_numSet.

◆ getSettingName() [1/2]

uint16 graphite2::FeatureRef::getSettingName ( uint16  index) const
inline

Definition at line 79 of file FeatureMap.h.

References index, graphite2::FeatureSetting::label(), and m_nameValues.

Referenced by gr_fref_value_label().

◆ getSettingName() [2/2]

uint16 graphite2::FeatureRef::getSettingName ( uint16  index) const
inline

Definition at line 79 of file FeatureMap.h.

References index, graphite2::FeatureSetting::label(), and m_nameValues.

◆ getSettingValue() [1/2]

int16 graphite2::FeatureRef::getSettingValue ( uint16  index) const
inline

Definition at line 80 of file FeatureMap.h.

References index, m_nameValues, and graphite2::FeatureSetting::value().

Referenced by gr_fref_value().

◆ getSettingValue() [2/2]

int16 graphite2::FeatureRef::getSettingValue ( uint16  index) const
inline

Definition at line 80 of file FeatureMap.h.

References index, m_nameValues, and graphite2::FeatureSetting::value().

◆ maskFeature() [1/2]

void graphite2::FeatureRef::maskFeature ( Features pDest) const
inline

Definition at line 69 of file FeatureMap.h.

References m_index, and m_mask.

◆ maskFeature() [2/2]

void graphite2::FeatureRef::maskFeature ( Features pDest) const
inline

Definition at line 69 of file FeatureMap.h.

References m_index, and m_mask.

◆ maxVal() [1/2]

uint32 graphite2::FeatureRef::maxVal ( ) const
inline

Definition at line 82 of file FeatureMap.h.

References m_max.

Referenced by applyValToFeature(), and graphite2::Segment::setFeature().

◆ maxVal() [2/2]

uint32 graphite2::FeatureRef::maxVal ( ) const
inline

Definition at line 82 of file FeatureMap.h.

References m_max.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ CLASS_NEW_DELETE

graphite2::FeatureRef::CLASS_NEW_DELETE

Definition at line 86 of file FeatureMap.h.

◆ m_bits

byte graphite2::FeatureRef::m_bits
private

Definition at line 98 of file FeatureMap.h.

Referenced by applyValToFeature(), and getFeatureVal().

◆ m_face

const Face * graphite2::FeatureRef::m_face
private

Definition at line 90 of file FeatureMap.h.

Referenced by applyValToFeature(), getFace(), and getFeatureVal().

◆ m_flags

flags_t graphite2::FeatureRef::m_flags
private

Definition at line 97 of file FeatureMap.h.

Referenced by getFlags().

◆ m_id

uint32 graphite2::FeatureRef::m_id
private

Definition at line 94 of file FeatureMap.h.

Referenced by getId().

◆ m_index

byte graphite2::FeatureRef::m_index
private

Definition at line 99 of file FeatureMap.h.

Referenced by applyValToFeature(), getFeatureVal(), and maskFeature().

◆ m_mask

chunk_t graphite2::FeatureRef::m_mask
private

Definition at line 92 of file FeatureMap.h.

Referenced by getFeatureVal(), and maskFeature().

◆ m_max

chunk_t graphite2::FeatureRef::m_max
private

Definition at line 93 of file FeatureMap.h.

Referenced by maxVal().

◆ m_nameid

uint16 graphite2::FeatureRef::m_nameid
private

Definition at line 95 of file FeatureMap.h.

Referenced by getNameId().

◆ m_nameValues

FeatureSetting * graphite2::FeatureRef::m_nameValues
private

Definition at line 91 of file FeatureMap.h.

Referenced by getSettingName(), getSettingValue(), and ~FeatureRef().

◆ m_numSet

uint16 graphite2::FeatureRef::m_numSet
private

Definition at line 96 of file FeatureMap.h.

Referenced by getNumSettings().

◆ SIZEOF_CHUNK

static const uint8 graphite2::FeatureRef::SIZEOF_CHUNK = sizeof(chunk_t)*8
staticprivate

Definition at line 56 of file FeatureMap.h.


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