ft_irc 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
Channel クラス

チャンネルのメンバーと状態を管理するクラス。 [詳解]

#include <Channel.hpp>

Channel 連携図
Collaboration graph

公開メンバ関数

 Channel (const std::string &name)
 
 ~Channel ()
 
void addMember (Client *client)
 
void removeMember (Client *client)
 
void broadcast (const std::string &message, Client *excludeClient)
 
bool isMember (Client *client) const
 
const std::string & getName () const
 
const std::map< int, Client * > & getMembers () const
 
const std::string & getTopic () const
 
void setTopic (const std::string &topic)
 
void addOperator (Client *client)
 
void removeOperator (Client *client)
 
bool isOperator (Client *client) const
 
void setMode (char mode, bool value)
 
bool hasMode (char mode) const
 
std::string getModes () const
 
void setKey (const std::string &key)
 
bool checkKey (const std::string &key) const
 
const std::string & getKey () const
 
void setLimit (unsigned int limit)
 
unsigned int getLimit () const
 
void addInvitedUser (Client *client)
 
void removeInvitedUser (Client *client)
 
bool isInvitedUser (Client *client) const
 

詳解

チャンネルのメンバーと状態を管理するクラス。

チャンネルへのユーザーの追加・削除、メッセージのブロードキャスト、 チャンネルモードの管理を行います。

各種例
join_and_msg.cpp.

Channel.hpp の 25 行目に定義があります。

構築子と解体子

◆ Channel()

Channel::Channel ( const std::string &  name)

Channel.cpp の 11 行目に定義があります。

◆ ~Channel()

Channel::~Channel ( )

Channel.cpp の 20 行目に定義があります。

関数詳解

◆ addInvitedUser()

void Channel::addInvitedUser ( Client *  client)

Channel.cpp の 87 行目に定義があります。

◆ addMember()

void Channel::addMember ( Client *  client)

Channel.cpp の 30 行目に定義があります。

◆ addOperator()

void Channel::addOperator ( Client *  client)

Channel.cpp の 47 行目に定義があります。

◆ broadcast()

void Channel::broadcast ( const std::string &  message,
Client *  excludeClient 
)

Channel.cpp の 39 行目に定義があります。

◆ checkKey()

bool Channel::checkKey ( const std::string &  key) const

Channel.cpp の 79 行目に定義があります。

◆ getKey()

const std::string & Channel::getKey ( ) const

Channel.cpp の 81 行目に定義があります。

◆ getLimit()

unsigned int Channel::getLimit ( ) const

Channel.cpp の 85 行目に定義があります。

◆ getMembers()

const std::map< int, Client * > & Channel::getMembers ( ) const

Channel.cpp の 24 行目に定義があります。

◆ getModes()

std::string Channel::getModes ( ) const

Channel.cpp の 67 行目に定義があります。

◆ getName()

const std::string & Channel::getName ( ) const

Channel.cpp の 22 行目に定義があります。

◆ getTopic()

const std::string & Channel::getTopic ( ) const

Channel.cpp の 26 行目に定義があります。

◆ hasMode()

bool Channel::hasMode ( char  mode) const

Channel.cpp の 59 行目に定義があります。

◆ isInvitedUser()

bool Channel::isInvitedUser ( Client *  client) const

Channel.cpp の 91 行目に定義があります。

◆ isMember()

bool Channel::isMember ( Client *  client) const

Channel.cpp の 37 行目に定義があります。

◆ isOperator()

bool Channel::isOperator ( Client *  client) const

Channel.cpp の 51 行目に定義があります。

◆ removeInvitedUser()

void Channel::removeInvitedUser ( Client *  client)

Channel.cpp の 89 行目に定義があります。

◆ removeMember()

void Channel::removeMember ( Client *  client)

Channel.cpp の 32 行目に定義があります。

◆ removeOperator()

void Channel::removeOperator ( Client *  client)

Channel.cpp の 49 行目に定義があります。

◆ setKey()

void Channel::setKey ( const std::string &  key)

Channel.cpp の 77 行目に定義があります。

◆ setLimit()

void Channel::setLimit ( unsigned int  limit)

Channel.cpp の 83 行目に定義があります。

◆ setMode()

void Channel::setMode ( char  mode,
bool  value 
)

Channel.cpp の 53 行目に定義があります。

◆ setTopic()

void Channel::setTopic ( const std::string &  topic)

Channel.cpp の 28 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: