The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
help::topic_text Class Reference

The text displayed in a topic. More...

#include <help_impl.hpp>

Public Member Functions

 topic_text ()=default
 
 ~topic_text ()=default
 
 topic_text (const std::string &t)
 
 topic_text (std::shared_ptr< topic_generator > g)
 
 topic_text (const topic_text &t)=default
 
 topic_text (topic_text &&t)=default
 
topic_textoperator= (topic_text &&t)=default
 
topic_textoperator= (const topic_text &t)=default
 
topic_textoperator= (std::shared_ptr< topic_generator > g)
 
const std::vector< std::string > & parsed_text () const
 

Private Attributes

std::vector< std::string > parsed_text_
 
std::shared_ptr< topic_generatorgenerator_
 

Detailed Description

The text displayed in a topic.

It is generated on the fly with the information contained in generator_

Definition at line 80 of file help_impl.hpp.

Constructor & Destructor Documentation

◆ topic_text() [1/5]

help::topic_text::topic_text ( )
default

◆ ~topic_text()

help::topic_text::~topic_text ( )
default

◆ topic_text() [2/5]

help::topic_text::topic_text ( const std::string &  t)
inline

Definition at line 88 of file help_impl.hpp.

◆ topic_text() [3/5]

help::topic_text::topic_text ( std::shared_ptr< topic_generator g)
inlineexplicit

Definition at line 94 of file help_impl.hpp.

◆ topic_text() [4/5]

help::topic_text::topic_text ( const topic_text t)
default

◆ topic_text() [5/5]

help::topic_text::topic_text ( topic_text &&  t)
default

Member Function Documentation

◆ operator=() [1/3]

topic_text& help::topic_text::operator= ( const topic_text t)
default

◆ operator=() [2/3]

topic_text & help::topic_text::operator= ( std::shared_ptr< topic_generator g)

Definition at line 378 of file help_impl.cpp.

References g, and generator_.

◆ operator=() [3/3]

topic_text& help::topic_text::operator= ( topic_text &&  t)
default

◆ parsed_text()

const std::vector< std::string > & help::topic_text::parsed_text ( ) const

Definition at line 384 of file help_impl.cpp.

References generator_, help::parse_text(), and parsed_text_.

Referenced by help::help_text_area::set_items().

Member Data Documentation

◆ generator_

std::shared_ptr<topic_generator> help::topic_text::generator_
mutableprivate

Definition at line 83 of file help_impl.hpp.

Referenced by operator=(), and parsed_text().

◆ parsed_text_

std::vector< std::string > help::topic_text::parsed_text_
mutableprivate

Definition at line 82 of file help_impl.hpp.

Referenced by parsed_text().


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