Deskflow 1.27.0.7
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ComputerList Class Reference

#include <ComputerList.h>

Inheritance diagram for ComputerList:
Collaboration diagram for ComputerList:

Public Member Functions

 ComputerList (int width=5)
void addComputerByPriority (const Computer &newComputer)
 addComputerByPriority adds a new computer according to the following priority: 1.left side of the server 2.right side of the server 3.top 4.down 5.top left-hand diagonally 6.top right-hand diagonally 7.bottom right-hand diagonally 8.bottom left-hand diagonally 9.In case all places from the list have already booked, place in any spare place
void addComputerToFirstEmpty (const Computer &newComputer)
 addComputerToFirstEmpty adds computer into the first empty place
bool operator== (const ComputerList &sc) const
 Returns true if computers are equal.

Constructor & Destructor Documentation

◆ ComputerList()

ComputerList::ComputerList ( int width = 5)
explicit

Member Function Documentation

◆ addComputerByPriority()

void ComputerList::addComputerByPriority ( const Computer & newComputer)

addComputerByPriority adds a new computer according to the following priority: 1.left side of the server 2.right side of the server 3.top 4.down 5.top left-hand diagonally 6.top right-hand diagonally 7.bottom right-hand diagonally 8.bottom left-hand diagonally 9.In case all places from the list have already booked, place in any spare place

Parameters
newComputer

◆ addComputerToFirstEmpty()

void ComputerList::addComputerToFirstEmpty ( const Computer & newComputer)

addComputerToFirstEmpty adds computer into the first empty place

Parameters
newComputer

◆ operator==()

bool ComputerList::operator== ( const ComputerList & sc) const

Returns true if computers are equal.

Parameters
sc

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