The Battle for Wesnoth  1.17.17+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 82 of file help_impl.hpp.

Constructor & Destructor Documentation

◆ topic_text() [1/5]

help::topic_text::topic_text ( )

◆ ~topic_text()

help::topic_text::~topic_text ( )

◆ topic_text() [2/5]

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

Definition at line 90 of file help_impl.hpp.

◆ topic_text() [3/5]

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

Definition at line 96 of file help_impl.hpp.

◆ topic_text() [4/5]

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

◆ topic_text() [5/5]

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

Member Function Documentation

◆ operator=() [1/3]

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

◆ operator=() [2/3]

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

Definition at line 379 of file help_impl.cpp.

References g, and generator_.

◆ operator=() [3/3]

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

◆ parsed_text()

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

Definition at line 385 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_

Definition at line 85 of file help_impl.hpp.

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

◆ parsed_text_

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

Definition at line 84 of file help_impl.hpp.

Referenced by parsed_text().

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