Pol  Rev 533
StringSet Class Reference

#include <strset.h>

+ Collaboration diagram for StringSet:

List of all members.

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
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 20 of file strset.h.


Member Typedef Documentation

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

Definition at line 35 of file strset.h.

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

Definition at line 31 of file strset.h.


Member Function Documentation

void StringSet::add ( const char *  str)

Definition at line 19 of file strset.cpp.

References strings_.

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

+ Here is the caller graph for this function:

Definition at line 57 of file strset.cpp.

References strings_.

Definition at line 67 of file strset.cpp.

References strings_.

bool StringSet::contains ( const char *  str) const

Definition at line 14 of file strset.cpp.

References strings_.

Referenced by Character::grant_privilege(), Character::has_privilege(), and Character::setting_enabled().

+ Here is the caller graph for this function:

bool StringSet::empty ( ) const

Definition at line 28 of file strset.cpp.

References strings_.

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

+ Here is the caller graph for this function:

Definition at line 62 of file strset.cpp.

References strings_.

Definition at line 72 of file strset.cpp.

References strings_.

std::string StringSet::extract ( ) const

Definition at line 46 of file strset.cpp.

References strings_.

Referenced by Character::all_privs(), Character::all_settings(), Account::default_privlist(), Character::printProperties(), and Account::writeto().

+ Here is the caller graph for this function:

void StringSet::readfrom ( const std::string &  str)

Definition at line 33 of file strset.cpp.

References ISTRINGSTREAM, and strings_.

Referenced by Character::readCommonProperties(), Account::readfrom(), and Character::set_privs().

+ Here is the caller graph for this function:

void StringSet::remove ( const char *  str)

Definition at line 23 of file strset.cpp.

References strings_.

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

+ Here is the caller graph for this function:


Member Data Documentation

std::set<std::string> StringSet::strings_ [private]

Definition at line 40 of file strset.h.

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


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