InspIRCd  3.0
Public Member Functions | List of all members
TokenList Class Reference

Public Member Functions

void AddList (const std::string &tokenlist)
 
void Add (const std::string &token)
 
void Clear ()
 
bool Contains (const std::string &token) const
 
void Remove (const std::string &token)
 
std::string ToString () const
 
bool operator== (const TokenList &other) const
 

Member Function Documentation

◆ Add()

void TokenList::Add ( const std::string &  token)

Adds a single token to the token list.

Parameters
tokenThe token to add.

◆ AddList()

void TokenList::AddList ( const std::string &  tokenlist)

Adds a space-delimited list of tokens to the token list.

Parameters
tokenlistThe list of space-delimited tokens to add.

◆ Clear()

void TokenList::Clear ( )

Removes all tokens from the token list.

◆ Contains()

bool TokenList::Contains ( const std::string &  token) const

Determines whether the specified token exists in the token list.

Parameters
tokenThe token to search for.

◆ operator==()

bool TokenList::operator== ( const TokenList other) const

Determines whether the specified token list contains the same tokens as this instance.

Parameters
otherThe tokenlist to compare against.
Returns
True if the token lists are equal; otherwise, false.

◆ Remove()

void TokenList::Remove ( const std::string &  token)

Removes the specified token from the token list.

Parameters
tokenThe token to remove.

◆ ToString()

std::string TokenList::ToString ( ) const

Retrieves a string which represents the contents of this token list.


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