clingo
|
#include <flyweight.hh>
Classes | |
struct | Equal |
struct | Hash |
Public Types | |
using | value_type = T |
using | key_iterator = typename std::unordered_set< unsigned, Hash, Equal >::const_iterator |
using | return_type = T & |
Public Member Functions | |
Flyweight (value_type &&val) | |
Flyweight (unsigned uid) | |
template<typename... Args> | |
Flyweight (Args...args) | |
unsigned | uid () const |
return_type | operator* () const |
bool | operator== (Flyweight const &other) const |
bool | operator!= (Flyweight const &other) const |
bool | operator< (Flyweight const &other) const |
bool | operator> (Flyweight const &other) const |
bool | operator<= (Flyweight const &other) const |
bool | operator>= (Flyweight const &other) const |
Static Public Member Functions | |
static unsigned | uid (value_type &&val) |
static key_iterator | beginKey () |
static key_iterator | endKey () |
static void | erase (unsigned uid) |
static void | clear () |
using Gringo::Flyweight< T >::key_iterator = typename std::unordered_set<unsigned, Hash, Equal>::const_iterator |
using Gringo::Flyweight< T >::return_type = T& |
using Gringo::Flyweight< T >::value_type = T |
Gringo::Flyweight< T >::Flyweight | ( | value_type && | val | ) |
Gringo::Flyweight< T >::Flyweight | ( | unsigned | uid | ) |
|
static |
|
static |
|
static |
|
static |
bool Gringo::Flyweight< T >::operator!= | ( | Flyweight< T > const & | other | ) | const |
Flyweight< T >::return_type Gringo::Flyweight< T >::operator* | ( | ) | const |
bool Gringo::Flyweight< T >::operator< | ( | Flyweight< T > const & | other | ) | const |
bool Gringo::Flyweight< T >::operator<= | ( | Flyweight< T > const & | other | ) | const |
bool Gringo::Flyweight< T >::operator== | ( | Flyweight< T > const & | other | ) | const |
bool Gringo::Flyweight< T >::operator> | ( | Flyweight< T > const & | other | ) | const |
bool Gringo::Flyweight< T >::operator>= | ( | Flyweight< T > const & | other | ) | const |
|
static |
unsigned Gringo::Flyweight< T >::uid | ( | ) | const |