The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
help::section Struct Reference

A section contains topics and sections along with title and ID. More...

#include <help_impl.hpp>

Public Member Functions

 section ()
 
 section (const section &)
 
sectionoperator= (const section &)
 
 ~section ()
 
bool operator== (const section &) const
 Two sections are equal if their IDs are equal. More...
 
bool operator< (const section &) const
 Comparison on the ID. More...
 
void add_section (const section &s)
 Allocate memory for and add the section. More...
 
void clear ()
 

Public Attributes

std::string title
 
std::string id
 
topic_list topics
 
section_list sections
 
int level
 

Detailed Description

A section contains topics and sections along with title and ID.

Definition at line 143 of file help_impl.hpp.

Constructor & Destructor Documentation

help::section::section ( )
inline

Definition at line 144 of file help_impl.hpp.

Referenced by add_section().

help::section::section ( const section sec)

Definition at line 1002 of file help_impl.cpp.

References sections.

help::section::~section ( )

Definition at line 997 of file help_impl.cpp.

References sections.

Member Function Documentation

void help::section::add_section ( const section s)
void help::section::clear ( )

Definition at line 1040 of file help_impl.cpp.

References sections, and topics.

Referenced by help::generate_contents(), and help::help_manager::~help_manager().

bool help::section::operator< ( const section sec) const

Comparison on the ID.

Definition at line 1030 of file help_impl.cpp.

References id.

section & help::section::operator= ( const section sec)

Definition at line 1013 of file help_impl.cpp.

References id, level, sections, title, and topics.

bool help::section::operator== ( const section sec) const

Two sections are equal if their IDs are equal.

Definition at line 1025 of file help_impl.cpp.

References id.

Member Data Documentation

std::string help::section::id
int help::section::level
section_list help::section::sections
std::string help::section::title
topic_list help::section::topics

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