컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
gpg::점수
#include <score.h>
플레이어의 점수에 관한 데이터에 액세스할 수 있는 단일 데이터 구조입니다.
요약
생성자 및 소멸자
|
Score()
|
Score(std::shared_ptr< const ScoreImpl > impl)
명시적 생성자
|
Score(const Score & copy_from)
기존 점수를 새 점수로 복사하기 위한 복사 생성자입니다.
|
Score(Score && move_from)
기존 점수를 새 점수로 이동하는 생성자입니다.
|
~Score()
|
공개 함수
|
Metadata() const
|
const std::string &
이 점수에 설정된 점수 관련 개발자 지정 메타데이터를 반환합니다(있는 경우).
|
Rank() const
|
uint64_t
다른 플레이어의 점수와 비교한 플레이어 점수의 순위를 반환합니다.
|
Valid() const
|
bool
반환된 점수에 데이터가 채워지고 성공적인 응답 상태가 포함된 경우 true를 반환하고, 채워지지 않은 사용자 제작 점수 또는 채워진 점수에 실패한 응답 상태가 포함된 경우에는 false를 반환합니다.
|
Value() const
|
uint64_t
플레이어의 점수를 반환합니다.
|
operator=(const Score & copy_from)
|
다른 점수에서 이 점수의 값을 할당하는 할당 연산자입니다.
|
operator=(Score && move_from)
|
다른 점수에서 이 점수의 값을 할당하는 할당 연산자입니다.
|
공개 함수
const std::string & Metadata() const
이 점수에 설정된 점수 관련 개발자 지정 메타데이터를 반환합니다(있는 경우).
순위
uint64_t Rank() const
다른 플레이어의 점수와 비교한 플레이어 점수의 순위를 반환합니다.
Score
Score()
Score
Score(
std::shared_ptr< const ScoreImpl > impl
)
Score
Score(
const Score & copy_from
)
기존 점수를 새 점수로 복사하기 위한 복사 생성자입니다.
Score
Score(
Score && move_from
)
기존 점수를 새 점수로 이동하는 생성자입니다.
r-value-reference 버전
Valid
bool Valid() const
반환된 점수에 데이터가 채워지고 성공적인 응답 상태가 포함된 경우 true를 반환하고, 채워지지 않은 사용자 제작 점수 또는 채워진 점수에 실패한 응답 상태가 포함된 경우에는 false를 반환합니다.
이 객체의 getter 함수를 사용할 수 있으려면 이 속성이 true여야 합니다.
operator=
Score & operator=(
const Score & copy_from
)
다른 점수에서 이 점수의 값을 할당하는 할당 연산자입니다.
operator=
Score & operator=(
Score && move_from
)
다른 점수에서 이 점수의 값을 할당하는 할당 연산자입니다.
r-value-reference 버전
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# gpg::Score Class Reference\n\ngpg::Score\n==========\n\n`#include \u003cscore.h\u003e`\n\nSingle data structure which allows you to access data about a player's score.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Score](#classgpg_1_1_score_1a53b3761c581242f381d018dc233cf7c5)`()` ||\n| [Score](#classgpg_1_1_score_1a0e53cbec749198699706c8e4b9fbfc39)`(std::shared_ptr\u003c const ScoreImpl \u003e impl)` Explicit constructor. ||\n| [Score](#classgpg_1_1_score_1a9ba7be4c99fe240d79111d728b1f0109)`(const `[Score](/games/services/cpp/api/class/gpg/score#classgpg_1_1_score)` & copy_from)` Copy constructor for copying an existing score into a new one. ||\n| [Score](#classgpg_1_1_score_1a84e4f8a8f31c5ef6bfd6cec0a655653c)`(`[Score](/games/services/cpp/api/class/gpg/score#classgpg_1_1_score)` && move_from)` Constructor for moving an existing score into a new one. ||\n| [~Score](#classgpg_1_1_score_1a36ae2115fdd97b283cdc0351a76145e4)`()` ||\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Metadata](#classgpg_1_1_score_1a29b70de17eaf2d0473907e3709a2011a)`() const ` | `const std::string &` Returns score-related developer-specified metadata, if any was set for this score. |\n| [Rank](#classgpg_1_1_score_1a796a005a5c0fc2d7e6c39d90565a5044)`() const ` | `uint64_t` Returns rank of the player's score compared to those of other players. |\n| [Valid](#classgpg_1_1_score_1a224442f46587850453278184b8acf198)`() const ` | `bool` Returns true when the returned score is populated with data and is accompanied by a successful response status; false for an unpopulated user-created score or for a populated one accompanied by an unsuccessful response status. |\n| [Value](#classgpg_1_1_score_1a16ede201a8fcf7069f6bfaa0f95f2a56)`() const ` | `uint64_t` Returns the player's score. |\n| [operator=](#classgpg_1_1_score_1a5e3e2349fb0f87cdbb546c2c37bd0ad8)`(const `[Score](/games/services/cpp/api/class/gpg/score#classgpg_1_1_score)` & copy_from)` | [Score](/games/services/cpp/api/class/gpg/score#classgpg_1_1_score)` &` Assignment operator for assigning this score's value from another score. |\n| [operator=](#classgpg_1_1_score_1a514fe11e1d876c40276a7cebab5847e3)`(`[Score](/games/services/cpp/api/class/gpg/score#classgpg_1_1_score)` && move_from)` | [Score](/games/services/cpp/api/class/gpg/score#classgpg_1_1_score)` &` Assignment operator for assigning this score's value from another score. |\n\nPublic functions\n----------------\n\n### Metadata\n\n```c++\nconst std::string & Metadata() const \n``` \nReturns score-related developer-specified metadata, if any was set for this score. \n\n### Rank\n\n```c++\nuint64_t Rank() const \n``` \nReturns rank of the player's score compared to those of other players. \n\n### Score\n\n```c++\n Score()\n``` \n\n### Score\n\n```c++\n Score(\n std::shared_ptr\u003c const ScoreImpl \u003e impl\n)\n``` \nExplicit constructor. \n\n### Score\n\n```c++\n Score(\n const Score & copy_from\n)\n``` \nCopy constructor for copying an existing score into a new one. \n\n### Score\n\n```c++\n Score(\n Score && move_from\n)\n``` \nConstructor for moving an existing score into a new one.\n\nr-value-reference version. \n\n### Valid\n\n```c++\nbool Valid() const \n``` \nReturns true when the returned score is populated with data and is accompanied by a successful response status; false for an unpopulated user-created score or for a populated one accompanied by an unsuccessful response status.\n\nIt must be true for the getter functions on this object to be usable. \n\n### Value\n\n```c++\nuint64_t Value() const \n``` \nReturns the player's score. \n\n### operator=\n\n```c++\nScore & operator=(\n const Score & copy_from\n)\n``` \nAssignment operator for assigning this score's value from another score. \n\n### operator=\n\n```c++\nScore & operator=(\n Score && move_from\n)\n``` \nAssignment operator for assigning this score's value from another score.\n\nr-value-reference version. \n\n### \\~Score\n\n```c++\n ~Score()\n```"]]