Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

scim::CommonLookupTable Class Reference
[Helper]

A common lookup table class. More...

#include <scim_lookup_table.h>

Inheritance diagram for scim::CommonLookupTable:

Inheritance graph
[legend]
Collaboration diagram for scim::CommonLookupTable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommonLookupTable (int page_size, const KeyEvent &page_up_key, const KeyEvent &page_down_key, const std::vector< KeyEvent > &page_index_keys)
 CommonLookupTable (int page_size, const std::vector< KeyEvent > &page_index_keys)
 CommonLookupTable (int page_size=10)
virtual WideString get_content (int index) const
 Get the content of an entry.

virtual uint32 number_of_entries () const
 Return the number of entries in this table.

virtual void clear ()
 Clear the table.

bool append_entry (const WideString &entry)
 Append a string into the table.

bool append_entry (ucs4_t entry)
 Append a single char into the table.


Detailed Description

A common lookup table class.

This class implements the LookupTable interface in a common way.

Definition at line 230 of file scim_lookup_table.h.


Constructor & Destructor Documentation

scim::CommonLookupTable::CommonLookupTable int  page_size,
const KeyEvent page_up_key,
const KeyEvent page_down_key,
const std::vector< KeyEvent > &  page_index_keys
 

scim::CommonLookupTable::CommonLookupTable int  page_size,
const std::vector< KeyEvent > &  page_index_keys
 

scim::CommonLookupTable::CommonLookupTable int  page_size = 10  ) 
 


Member Function Documentation

virtual WideString scim::CommonLookupTable::get_content int  index  )  const [virtual]
 

Get the content of an entry.

Parameters:
index - the index in the lookup table.
Returns:
the content.

Implements scim::LookupTable.

virtual uint32 scim::CommonLookupTable::number_of_entries  )  const [virtual]
 

Return the number of entries in this table.

Returns:
the number of entries currently in this table.

Implements scim::LookupTable.

virtual void scim::CommonLookupTable::clear  )  [virtual]
 

Clear the table.

Implements scim::LookupTable.

bool scim::CommonLookupTable::append_entry const WideString entry  ) 
 

Append a string into the table.

Parameters:
entry - an entry to be added into the table.
Returns:
true if success.

bool scim::CommonLookupTable::append_entry ucs4_t  entry  ) 
 

Append a single char into the table.

Parameters:
entry - an entry to be added into the table.
Returns:
true if success.


The documentation for this class was generated from the following file:
Generated on Fri May 7 17:27:28 2004 for scim by doxygen 1.3.6