Data Structures & Algorithms in C++
Goodrich, Tamassia, Mount and Goldwasser
Loading...
Searching...
No Matches
Public Member Functions
dsac::array::GameEntry Class Reference

A representation of an entry on a scoreboard. More...

#include <game_entry.h>

Collaboration diagram for dsac::array::GameEntry:
Collaboration graph

Public Member Functions

 GameEntry (const std::string &n="", int s=0)
 
const std::string & get_name () const
 
int get_score () const
 

Detailed Description

A representation of an entry on a scoreboard.

Constructor & Destructor Documentation

◆ GameEntry()

dsac::array::GameEntry::GameEntry ( const std::string &  n = "",
int  s = 0 
)
inline

Constructs a game entry with given arguments

Parameters
nthe user's name ("" by default)
sthe user's score (0 by default)

Member Function Documentation

◆ get_name()

const std::string & dsac::array::GameEntry::get_name ( ) const
inline

Returns the user's name

Returns
the user's name

◆ get_score()

int dsac::array::GameEntry::get_score ( ) const
inline

Returns the user's score

Returns
the user's score

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