lime
Lime is a C++ library implementing Open Whisper System Signal protocol
Loading...
Searching...
No Matches
lime::DeviceId Class Reference

#include <lime.hpp>

Public Member Functions

 DeviceId (const std::string &username, const lime::CurveId baseAlgo)
const std::string & getUsername () const
const lime::CurveId & getAlgo () const
const std::string getAlgoString () const
 operator std::string () const
bool operator== (const DeviceId &other) const

Static Public Member Functions

static std::size_t hash (const lime::DeviceId &d)

Detailed Description

a class to identify properly a device based on its user Id and its base algorithm from a lime perspective these are separate users. LimeManager deals with users allowing operations on several base algorithms

Constructor & Destructor Documentation

◆ DeviceId()

lime::DeviceId::DeviceId ( const std::string & username,
const lime::CurveId baseAlgo )
inline

Member Function Documentation

◆ getAlgo()

const lime::CurveId & lime::DeviceId::getAlgo ( ) const
inline

◆ getAlgoString()

const std::string lime::DeviceId::getAlgoString ( ) const
inline

◆ getUsername()

const std::string & lime::DeviceId::getUsername ( ) const
inline

◆ hash()

std::size_t lime::DeviceId::hash ( const lime::DeviceId & d)
inlinestatic

◆ operator std::string()

lime::DeviceId::operator std::string ( ) const
inlineexplicit

◆ operator==()

bool lime::DeviceId::operator== ( const DeviceId & other) const
inline

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