name_storage< I > Struct Template Reference

partial specialization for unique storage of names More...

#include <name_storage.h>

Inheritance diagram for name_storage< I >:
Inheritance graph
[legend]
Collaboration diagram for name_storage< I >:
Collaboration graph
[legend]

Public Types

typedef unique_storage< I,
stored_name >::id_value 
id_value
typedef std::vector< stored_namestored_values

Public Member Functions

std::string const & name (id_value const &id) const
id_value const create (stored_nameconst &value)
 ensure this value is available
stored_nameconst & get (id_value const &id) const
 return the stored value for the given ID

Detailed Description

template<typename I>
struct name_storage< I >

partial specialization for unique storage of names

Definition at line 36 of file name_storage.h.


Member Typedef Documentation

template<typename I>
typedef unique_storage<I, stored_name>::id_value name_storage< I >::id_value

Definition at line 38 of file name_storage.h.

typedef std::vector<stored_name > unique_storage< I , stored_name >::stored_values [inherited]

Definition at line 43 of file unique_storage.h.


Member Function Documentation

id_value const unique_storage< I , stored_name >::create ( stored_name const &  value  )  [inline, inherited]

ensure this value is available

Definition at line 80 of file unique_storage.h.

stored_name const& unique_storage< I , stored_name >::get ( id_value const &  id  )  const [inline, inherited]

return the stored value for the given ID

Definition at line 92 of file unique_storage.h.

Referenced by name_storage< debug_name_tag >::name().

Here is the caller graph for this function:

template<typename I>
std::string const& name_storage< I >::name ( id_value const &  id  )  const [inline]

Definition at line 40 of file name_storage.h.


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

Generated on 8 Nov 2012 for Oprofile by  doxygen 1.6.1