MeVisLab Toolbox Reference
ml::ConstantString Class Reference

A ConstantString which 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 which contains a std::string and its hash.

A copy of a ConstantString shared the same string container.

Definition at line 70 of file mlConstantString.h.

Constructor & Destructor Documentation

◆ ConstantString() [1/3]

ml::ConstantString::ConstantString ( )
inline

Definition at line 73 of file mlConstantString.h.

◆ ConstantString() [2/3]

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

Definition at line 75 of file mlConstantString.h.

◆ ConstantString() [3/3]

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

Definition at line 83 of file mlConstantString.h.

References ml::ConstantStringValue::incRefCount().

◆ ~ConstantString()

ml::ConstantString::~ConstantString ( )
inline

Definition at line 102 of file mlConstantString.h.

Member Function Documentation

◆ empty()

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

Definition at line 161 of file mlConstantString.h.

◆ getHash()

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

Definition at line 165 of file mlConstantString.h.

Referenced by ml::hash_value().

◆ operator const std::string &()

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

Definition at line 145 of file mlConstantString.h.

◆ operator std::string()

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

Definition at line 137 of file mlConstantString.h.

◆ operator<()

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

Definition at line 110 of file mlConstantString.h.

References toString(), and DCMTree::toString().

◆ operator=()

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

Definition at line 90 of file mlConstantString.h.

References ml::ConstantStringValue::incRefCount().

◆ operator==()

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

Definition at line 114 of file mlConstantString.h.

References ml::ConstantStringValue::getHash().

◆ toString()

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

Definition at line 153 of file mlConstantString.h.

Referenced by operator<().


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