The Battle for Wesnoth  1.15.1+dev
Classes | Functions
tstring.hpp File Reference
#include <memory>
#include <string>
Include dependency graph for tstring.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  t_string_base
 
class  t_string_base::walker
 
class  t_string
 

Functions

std::size_t hash_value (const t_string_base &str)
 
std::ostream & operator<< (std::ostream &, const t_string_base &)
 
void swap (t_string &lhs, t_string &rhs)
 Implement non-member swap function for std::swap (calls t_string::swap). More...
 
std::ostream & operator<< (std::ostream &os, const t_string &str)
 
bool operator== (const std::string &a, const t_string &b)
 
bool operator== (const char *a, const t_string &b)
 
bool operator!= (const std::string &a, const t_string &b)
 
bool operator!= (const char *a, const t_string &b)
 
t_string operator+ (const std::string &a, const t_string &b)
 
t_string operator+ (const char *a, const t_string &b)
 

Function Documentation

◆ hash_value()

std::size_t hash_value ( const t_string_base str)
inline

Definition at line 120 of file tstring.hpp.

References t_string_base::hash_value(), and operator<<().

◆ operator!=() [1/2]

bool operator!= ( const std::string &  a,
const t_string b 
)
inline

Definition at line 209 of file tstring.hpp.

References a.

◆ operator!=() [2/2]

bool operator!= ( const char *  a,
const t_string b 
)
inline

Definition at line 210 of file tstring.hpp.

References a.

◆ operator+() [1/2]

t_string operator+ ( const std::string &  a,
const t_string b 
)
inline

Definition at line 211 of file tstring.hpp.

References b.

◆ operator+() [2/2]

t_string operator+ ( const char *  a,
const t_string b 
)
inline

Definition at line 212 of file tstring.hpp.

References b.

◆ operator<<() [1/2]

std::ostream& operator<< ( std::ostream &  ,
const t_string_base  
)

Definition at line 664 of file tstring.cpp.

Referenced by hash_value().

◆ operator<<() [2/2]

std::ostream& operator<< ( std::ostream &  os,
const t_string str 
)
inline

Definition at line 206 of file tstring.hpp.

References t_string::get().

◆ operator==() [1/2]

bool operator== ( const std::string &  a,
const t_string b 
)
inline

Definition at line 207 of file tstring.hpp.

References a.

◆ operator==() [2/2]

bool operator== ( const char *  a,
const t_string b 
)
inline

Definition at line 208 of file tstring.hpp.

References a.

◆ swap()

void swap ( t_string lhs,
t_string rhs 
)

Implement non-member swap function for std::swap (calls t_string::swap).

Definition at line 659 of file tstring.cpp.

References t_string::swap().