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 {
  RULE_BASED_PLACEHOLDER, REVERSE_RULE_BASED_PLACEHOLDER, PROTOTYPE, RBT_DATA,
  NONE
}

Public Methods

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

Public Attributes

enum Transliterator::CacheEntry::Type  entryType
UnicodeString rbFile
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 297 of file translit.h.


Member Enumeration Documentation

enum Transliterator::CacheEntry::Type
 

Enumeration values:
RULE_BASED_PLACEHOLDER  
REVERSE_RULE_BASED_PLACEHOLDER  
PROTOTYPE  
RBT_DATA  
NONE  

Definition at line 298 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 308 of file translit.h.

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

Transliterator* Transliterator::CacheEntry::prototype
 

Definition at line 307 of file translit.h.

UnicodeString Transliterator::CacheEntry::rbFile
 

Definition at line 305 of file translit.h.

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


The documentation for this struct was generated from the following file:
Generated at Fri Dec 15 12:13:03 2000 for ICU 1.7 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000