HPCToolkit
HPC::StringTable Class Reference

#include <StringTable.hpp>

Collaboration diagram for HPC::StringTable:

Public Member Functions

 StringTable ()
 
 ~StringTable ()
 
long str2index (const std::string &str)
 
const std::string & index2str (long index)
 
long size ()
 

Private Types

typedef std::map< const std::string *, long, StringCompareStringMap
 
typedef std::vector< const std::string * > StringVec
 

Private Attributes

StringMap m_map
 
StringVec m_vec
 
std::string m_invalid
 

Detailed Description

Definition at line 84 of file StringTable.hpp.

Member Typedef Documentation

◆ StringMap

typedef std::map<const std::string *, long, StringCompare> HPC::StringTable::StringMap
private

Definition at line 85 of file StringTable.hpp.

◆ StringVec

typedef std::vector<const std::string *> HPC::StringTable::StringVec
private

Definition at line 86 of file StringTable.hpp.

Constructor & Destructor Documentation

◆ StringTable()

HPC::StringTable::StringTable ( )
inline

Definition at line 94 of file StringTable.hpp.

◆ ~StringTable()

HPC::StringTable::~StringTable ( )
inline

Definition at line 102 of file StringTable.hpp.

Member Function Documentation

◆ index2str()

const std::string& HPC::StringTable::index2str ( long  index)
inline

Definition at line 127 of file StringTable.hpp.

Here is the caller graph for this function:

◆ size()

long HPC::StringTable::size ( )
inline

Definition at line 135 of file StringTable.hpp.

◆ str2index()

long HPC::StringTable::str2index ( const std::string &  str)
inline

Definition at line 110 of file StringTable.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_invalid

std::string HPC::StringTable::m_invalid
private

Definition at line 91 of file StringTable.hpp.

◆ m_map

StringMap HPC::StringTable::m_map
private

Definition at line 89 of file StringTable.hpp.

◆ m_vec

StringVec HPC::StringTable::m_vec
private

Definition at line 90 of file StringTable.hpp.


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