• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • TDevelop Interfaces Library
 

TDevelop Interfaces Library

Public Member Functions | Static Public Member Functions | Friends | List of all members
HashedString Class Reference

#include <hashedstring.h>

Public Member Functions

 HashedString (const TQString &str)
 HashedString (const char *str)
size_t hash () const
TQString str () const
bool operator== (const HashedString &rhs) const
bool operator< (const HashedString &rhs) const

Static Public Member Functions

static size_t hashString (const TQString &str)

Friends

TQDataStream & operator<< (TQDataStream &stream, const HashedString &str)
TQDataStream & operator>> (TQDataStream &stream, HashedString &str)

Detailed Description

A simple class that stores a string together with it's appropriate hash-key.

Definition at line 26 of file hashedstring.h.

Constructor & Destructor Documentation

◆ HashedString() [1/3]

HashedString::HashedString ( )
inline

Definition at line 28 of file hashedstring.h.

◆ HashedString() [2/3]

HashedString::HashedString ( const TQString & str)
inline

Definition at line 30 of file hashedstring.h.

◆ HashedString() [3/3]

HashedString::HashedString ( const char * str)
inline

Definition at line 34 of file hashedstring.h.

Member Function Documentation

◆ hash()

size_t HashedString::hash ( ) const
inline

Definition at line 38 of file hashedstring.h.

◆ hashString()

size_t HashedString::hashString ( const TQString & str)
static

Definition at line 38 of file hashedstring.cpp.

◆ operator<()

bool HashedString::operator< ( const HashedString & rhs) const
inline

Does not compare alphabetically, uses the hash-key for ordering.

Definition at line 53 of file hashedstring.h.

◆ operator==()

bool HashedString::operator== ( const HashedString & rhs) const
inline

Definition at line 46 of file hashedstring.h.

◆ str()

TQString HashedString::str ( ) const
inline

Definition at line 42 of file hashedstring.h.

Friends And Related Symbol Documentation

◆ operator<<

TQDataStream & operator<< ( TQDataStream & stream,
const HashedString & str )
friend

Definition at line 275 of file hashedstring.cpp.

◆ operator>>

TQDataStream & operator>> ( TQDataStream & stream,
HashedString & str )
friend

Definition at line 281 of file hashedstring.cpp.


The documentation for this class was generated from the following files:
  • hashedstring.h
  • hashedstring.cpp

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

TDevelop Interfaces Library

Skip menu "TDevelop Interfaces Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for TDevelop Interfaces Library by doxygen 1.15.0
This website is maintained by Timothy Pearson.