Pol  Revision:cb584c9
Pol::Clib::StringSet Class Reference

#include <strset.h>

Public Types

typedef std::set< std::string >::const_iterator const_iterator
 
typedef std::set< std::string >::iterator iterator
 

Public Member Functions

void add (const char *str)
 
iterator begin ()
 
const_iterator begin () const
 
bool contains (const char *str) const
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
size_t estimatedSize () const
 
std::string extract () const
 
void readfrom (const std::string &str)
 
void remove (const char *str)
 

Private Attributes

std::set< std::string > strings_
 

Detailed Description

Definition at line 18 of file strset.h.

Member Typedef Documentation

typedef std::set<std::string>::const_iterator Pol::Clib::StringSet::const_iterator

Definition at line 33 of file strset.h.

typedef std::set<std::string>::iterator Pol::Clib::StringSet::iterator

Definition at line 29 of file strset.h.

Member Function Documentation

void Pol::Clib::StringSet::add ( const char *  str)

Definition at line 19 of file strset.cpp.

References strings_.

Referenced by Pol::Mobile::Character::grant_privilege(), and Pol::Mobile::Character::set_setting().

StringSet::iterator Pol::Clib::StringSet::begin ( )

Definition at line 57 of file strset.cpp.

References strings_.

StringSet::const_iterator Pol::Clib::StringSet::begin ( ) const

Definition at line 67 of file strset.cpp.

References strings_.

bool Pol::Clib::StringSet::contains ( const char *  str) const
bool Pol::Clib::StringSet::empty ( ) const

Definition at line 28 of file strset.cpp.

References strings_.

Referenced by Pol::Mobile::Character::printProperties(), and Pol::Accounts::Account::writeto().

StringSet::iterator Pol::Clib::StringSet::end ( )

Definition at line 62 of file strset.cpp.

References strings_.

StringSet::const_iterator Pol::Clib::StringSet::end ( ) const

Definition at line 72 of file strset.cpp.

References strings_.

size_t Pol::Clib::StringSet::estimatedSize ( ) const

Definition at line 77 of file strset.cpp.

References strings_.

Referenced by Pol::Accounts::Account::estimatedSize(), and Pol::Mobile::Character::estimatedSize().

void Pol::Clib::StringSet::readfrom ( const std::string &  str)
void Pol::Clib::StringSet::remove ( const char *  str)

Definition at line 23 of file strset.cpp.

References strings_.

Referenced by Pol::Mobile::Character::revoke_privilege(), and Pol::Mobile::Character::set_setting().

Member Data Documentation

std::set<std::string> Pol::Clib::StringSet::strings_
private

Definition at line 40 of file strset.h.

Referenced by add(), begin(), contains(), empty(), end(), estimatedSize(), extract(), readfrom(), and remove().


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