Public Types | Public Member Functions | List of all members
ibis::nameList Class Reference

A data structure to store a small set of names. More...

#include <util.h>

Public Types

typedef std::vector< const char * >::const_iterator const_iterator
 

Public Member Functions

void add (const char *str)
 Add more names to the list. Keep existing content.
 
const_iterator begin () const
 
void clear ()
 
bool empty () const
 
const_iterator end () const
 
uint32_t find (const char *key) const
 Find the order of the key in the list. More...
 
 nameList (const char *str)
 
const char * operator* () const
 
const char * operator[] (uint32_t i) const
 
void select (const char *str)
 Replace existing content with these names. Remove existing names.
 
uint32_t size () const
 

Detailed Description

A data structure to store a small set of names.

The names are sorted in case-insensitive order.

Member Function Documentation

uint32_t ibis::nameList::find ( const char *  key) const

Find the order of the key in the list.

If the key is in the list it returns the position of the key, otherwise it returns the size of the name list.


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

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive