Awali
Another Weighted Automata library
Data Structures | Functions
awali::utils Namespace Reference

Data Structures

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

Functions

ATTRIBUTE_CONST unsigned int gcd (unsigned int a, unsigned int b)
 
template<typename F , typename S >
std::size_t hash_value (const std::pair< F, S > &p)
 
template<class T >
std::size_t hash_value (const T &v)
 
ATTRIBUTE_CONST unsigned int lcm (unsigned int a, unsigned int b)
 
ATTRIBUTE_CONST int max (int a, int b)
 
ATTRIBUTE_CONST int min (int a, int b)
 

Function Documentation

◆ gcd()

ATTRIBUTE_CONST unsigned int awali::utils::gcd ( unsigned int  a,
unsigned int  b 
)

◆ hash_value() [1/2]

template<typename F , typename S >
std::size_t awali::utils::hash_value ( const std::pair< F, S > &  p)

◆ hash_value() [2/2]

template<class T >
std::size_t awali::utils::hash_value ( const T &  v)

◆ lcm()

ATTRIBUTE_CONST unsigned int awali::utils::lcm ( unsigned int  a,
unsigned int  b 
)

◆ max()

ATTRIBUTE_CONST int awali::utils::max ( int  a,
int  b 
)

◆ min()

ATTRIBUTE_CONST int awali::utils::min ( int  a,
int  b 
)