The Battle for Wesnoth  1.15.2+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 77 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 85 of file help_impl.hpp.

◆ topic_text() [3/5]

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

Definition at line 91 of file help_impl.hpp.

References g, and t.

◆ 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= ( topic_text &&  t)
default

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

Definition at line 327 of file help_impl.cpp.

References g, and generator_.

◆ parsed_text()

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

Definition at line 333 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 80 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 79 of file help_impl.hpp.

Referenced by parsed_text().


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