Chatterino
Public Member Functions | List of all members
chatterino::MessageThread Class Reference

#include <MessageThread.hpp>

Public Member Functions

 MessageThread (std::shared_ptr< const Message > rootMessage)
 
 ~MessageThread ()
 
void addToThread (const std::shared_ptr< const Message > &message)
 
void addToThread (const std::weak_ptr< const Message > &message)
 
size_t liveCount () const
 Returns the number of live reply references. More...
 
size_t liveCount (const std::shared_ptr< const Message > &exclude) const
 Returns the number of live reply references. More...
 
bool participated () const
 
void markParticipated ()
 
const QString & rootId () const
 
const std::shared_ptr< const Message > & root () const
 
const std::vector< std::weak_ptr< const Message > > & replies () const
 

Constructor & Destructor Documentation

◆ MessageThread()

chatterino::MessageThread::MessageThread ( std::shared_ptr< const Message rootMessage)
Here is the call graph for this function:

◆ ~MessageThread()

chatterino::MessageThread::~MessageThread ( )
Here is the call graph for this function:

Member Function Documentation

◆ addToThread() [1/2]

void chatterino::MessageThread::addToThread ( const std::shared_ptr< const Message > &  message)

◆ addToThread() [2/2]

void chatterino::MessageThread::addToThread ( const std::weak_ptr< const Message > &  message)

◆ liveCount() [1/2]

size_t chatterino::MessageThread::liveCount ( ) const

Returns the number of live reply references.

◆ liveCount() [2/2]

size_t chatterino::MessageThread::liveCount ( const std::shared_ptr< const Message > &  exclude) const

Returns the number of live reply references.

◆ markParticipated()

void chatterino::MessageThread::markParticipated ( )

◆ participated()

bool chatterino::MessageThread::participated ( ) const

◆ replies()

const std::vector<std::weak_ptr<const Message> >& chatterino::MessageThread::replies ( ) const
inline

◆ root()

const std::shared_ptr<const Message>& chatterino::MessageThread::root ( ) const
inline

◆ rootId()

const QString& chatterino::MessageThread::rootId ( ) const
inline

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