Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Transliterator::CacheEntry Struct Reference

In Java, the cache stores objects of different types and singleton objects as placeholders for rule-based transliterators to be built as needed. More...

List of all members.

Public Types

enum  Type {
  RULES_FORWARD, RULES_REVERSE, PROTOTYPE, RBT_DATA,
  ALIAS, NONE
}

Public Methods

 CacheEntry ()
 ~CacheEntry ()
void adoptPrototype (Transliterator* adopted)

Public Attributes

enum Transliterator::CacheEntry::Type  entryType
UnicodeString stringArg
union {
   Transliterator*   prototype
   TransliterationRuleData*   data
u


Detailed Description

In Java, the cache stores objects of different types and singleton objects as placeholders for rule-based transliterators to be built as needed.

In C++ we use the following struct to achieve the same purpose. Instances of this struct can be placeholders, can represent prototype transliterators to be cloned, or can represent RuleBasedTransliterator::Data objects. We don't support storing classes in the cache because we don't have the rtti infrastructure for it. We could easily add this if there is a need for it in the future. The rbFile is the resource bundle file name for rule-based transliterators.

Definition at line 285 of file translit.h.


Member Enumeration Documentation

enum Transliterator::CacheEntry::Type
 

Enumeration values:
RULES_FORWARD  
RULES_REVERSE  
PROTOTYPE  
RBT_DATA  
ALIAS  
NONE  

Definition at line 286 of file translit.h.


Constructor & Destructor Documentation

Transliterator::CacheEntry::CacheEntry ( )
 

Transliterator::CacheEntry::~CacheEntry ( )
 


Member Function Documentation

void Transliterator::CacheEntry::adoptPrototype ( Transliterator * adopted )
 


Member Data Documentation

TransliterationRuleData* Transliterator::CacheEntry::data
 

Definition at line 299 of file translit.h.

enum Transliterator::CacheEntry::Type Transliterator::CacheEntry::entryType
 

Transliterator* Transliterator::CacheEntry::prototype
 

Definition at line 298 of file translit.h.

UnicodeString Transliterator::CacheEntry::stringArg
 

Definition at line 296 of file translit.h.

union { ... } Transliterator::CacheEntry::u
 


The documentation for this struct was generated from the following file:
Generated at Tue Jun 12 14:04:21 2001 for ICU 1.8.1 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000