Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vcsn::hash< ValueSet > Class Template Reference

This is useful to make hashes with labels or weights as keys without using non-default constructors; to be used along with vcsn::equal_to. More...

#include <hash.hh>

Collaboration diagram for vcsn::hash< ValueSet >:

Public Types

using valueset_t = ValueSet
 
using value_t = typename valueset_t::value_t
 
using result_type = size_t
 
using argument_type = value_t
 

Public Member Functions

size_t operator() (const value_t &v) const
 

Detailed Description

template<typename ValueSet>
class vcsn::hash< ValueSet >

This is useful to make hashes with labels or weights as keys without using non-default constructors; to be used along with vcsn::equal_to.

Definition at line 42 of file hash.hh.

Member Typedef Documentation

template<typename ValueSet >
using vcsn::hash< ValueSet >::argument_type = value_t

Definition at line 56 of file hash.hh.

template<typename ValueSet >
using vcsn::hash< ValueSet >::result_type = size_t

Definition at line 55 of file hash.hh.

template<typename ValueSet >
using vcsn::hash< ValueSet >::value_t = typename valueset_t::value_t

Definition at line 46 of file hash.hh.

template<typename ValueSet >
using vcsn::hash< ValueSet >::valueset_t = ValueSet

Definition at line 45 of file hash.hh.

Member Function Documentation

template<typename ValueSet >
size_t vcsn::hash< ValueSet >::operator() ( const value_t v) const
inline

Definition at line 48 of file hash.hh.


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