MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
ml::ConstantString Class Reference

A ConstantString that contains a std::string and its hash. More...

#include <mlConstantString.h>

Public Member Functions

 ConstantString ()
 
 ConstantString (const std::string &value)
 
 ConstantString (const ConstantString &other)
 
void operator= (const ConstantString &other)
 
 ~ConstantString ()
 
bool operator< (const ConstantString &other) const
 
bool operator== (const ConstantString &other) const
 
 operator std::string () const
 
 operator const std::string & () const
 
const std::string & toString () const
 
bool empty () const
 
size_t getHash () const
 

Detailed Description

A ConstantString that contains a std::string and its hash.

A copy of a ConstantString shared the same string container.

Definition at line 77 of file mlConstantString.h.

Constructor & Destructor Documentation

◆ ConstantString() [1/3]

ml::ConstantString::ConstantString ( )
inline

Definition at line 80 of file mlConstantString.h.

◆ ConstantString() [2/3]

ml::ConstantString::ConstantString ( const std::string & value)
inline

Definition at line 83 of file mlConstantString.h.

◆ ConstantString() [3/3]

ml::ConstantString::ConstantString ( const ConstantString & other)
inline

Definition at line 93 of file mlConstantString.h.

References mlrange_cast().

◆ ~ConstantString()

ml::ConstantString::~ConstantString ( )
inline

Definition at line 114 of file mlConstantString.h.

Member Function Documentation

◆ empty()

bool ml::ConstantString::empty ( ) const
inline

Definition at line 185 of file mlConstantString.h.

◆ getHash()

size_t ml::ConstantString::getHash ( ) const
inline

Definition at line 190 of file mlConstantString.h.

Referenced by ml::hash_value().

◆ operator const std::string &()

ml::ConstantString::operator const std::string & ( ) const
inline

Definition at line 165 of file mlConstantString.h.

◆ operator std::string()

ml::ConstantString::operator std::string ( ) const
inline

Definition at line 155 of file mlConstantString.h.

◆ operator<()

bool ml::ConstantString::operator< ( const ConstantString & other) const
inline

Definition at line 122 of file mlConstantString.h.

References mlrange_cast().

◆ operator=()

void ml::ConstantString::operator= ( const ConstantString & other)
inline

Definition at line 101 of file mlConstantString.h.

References mlrange_cast().

◆ operator==()

bool ml::ConstantString::operator== ( const ConstantString & other) const
inline

Definition at line 127 of file mlConstantString.h.

References mlrange_cast().

◆ toString()

const std::string & ml::ConstantString::toString ( ) const
inline

Definition at line 175 of file mlConstantString.h.


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