pairpal
Loading...
Searching...
No Matches
Pair Class Reference

A class to manage user pairs and their similarities. More...

#include <pair.hpp>

Public Member Functions

 Pair ()
 Constructor for the Pair class.
 
virtual ~Pair ()
 Destructor for the Pair class.
 
void setStorage (const Storage &storage)
 Sets the storage object.
 
auto getPair (const std::string &username) -> std::vector< std::string >
 Gets a pair of usernames for the given username.
 

Friends

class MockPair
 Allows MockPair to access private members.
 

Detailed Description

A class to manage user pairs and their similarities.

Member Function Documentation

◆ getPair()

auto Pair::getPair ( const std::string & username) -> std::vector< std::string >
nodiscard

Gets a pair of usernames for the given username.

Parameters
usernameThe username for which to get the pair.
Returns
A vector of paired usernames.

◆ setStorage()

void Pair::setStorage ( const Storage & storage)

Sets the storage object.

Parameters
storageThe storage object to be set.

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