컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
gpg::ScorePage::Entry
#include <score_page.h>
점수 페이지에 항목을 만드는 클래스입니다.
요약
생성자 및 소멸자
|
Entry()
|
Entry(std::shared_ptr< const EntryImpl > impl)
명시적 생성자
|
Entry(const Entry & copy_from)
기존 항목을 새 항목으로 복사하기 위한 복사 생성자입니다.
|
Entry(Entry && move_from)
기존 항목을 새 항목으로 이동하는 생성자입니다.
|
~Entry()
|
공개 함수
|
LastModified() const
|
지원 중단되었습니다.
LastModifiedTime을 사용하는 것이 좋습니다. |
LastModifiedTime() const
|
항목이 마지막으로 수정된 시간을 반환합니다 (Unix 에포크 이후 밀리초로 표시됨).
|
PlayerId() const
|
const std::string &
플레이어 ID를 반환합니다.
|
Score() const
|
플레이어 점수를 반환합니다.
|
Valid() const
|
bool
반환된 항목에 데이터가 채워지고 성공적인 응답 상태가 포함된 경우 true를 반환하고, 채워지지 않은 사용자 생성 항목 또는 채워진 항목에 실패한 응답 상태가 포함된 경우 false를 반환합니다.
|
operator=(const Entry & copy_from)
|
다른 항목에서 이 항목의 값을 할당하는 할당 연산자입니다.
|
operator=(Entry && move_from)
|
다른 항목에서 이 항목의 값을 할당하는 할당 연산자입니다.
|
공개 함수
항목
Entry()
항목
Entry(
std::shared_ptr< const EntryImpl > impl
)
항목
Entry(
const Entry & copy_from
)
기존 항목을 새 항목으로 복사하기 위한 복사 생성자입니다.
항목
Entry(
Entry && move_from
)
기존 항목을 새 항목으로 이동하는 생성자입니다.
r-value-reference 버전
LastModified
Timestamp LastModified() const
LastModifiedTime
Timestamp LastModifiedTime() const
항목이 마지막으로 수정된 시간을 반환합니다 (Unix 에포크 이후 밀리초로 표시됨).
PlayerId
const std::string & PlayerId() const
Score
const gpg::Score & Score() const
Valid
bool Valid() const
반환된 항목에 데이터가 채워지고 성공적인 응답 상태가 포함된 경우 true를 반환하고, 채워지지 않은 사용자 생성 항목 또는 채워진 항목에 실패한 응답 상태가 포함된 경우에는 false를 반환합니다.
이 항목의 getter 함수 (PlayerId, Score 등)를 사용할 수 있으려면 이 속성이 true여야 합니다.
operator=
Entry & operator=(
const Entry & copy_from
)
다른 항목에서 이 항목의 값을 할당하는 할당 연산자입니다.
operator=
Entry & operator=(
Entry && move_from
)
다른 항목에서 이 항목의 값을 할당하는 할당 연산자입니다.
r-value-reference 버전
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-08-22(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-08-22(UTC)"],[],[],null,["# gpg::ScorePage::Entry Class Reference\n\ngpg::ScorePage::Entry\n=====================\n\n`#include \u003cscore_page.h\u003e`\n\nA class that creates an entry on a score page.\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Entry](#classgpg_1_1_score_page_1_1_entry_1a819da6506beadf0cbf8c3ad98017a8c6)`()` ||\n| [Entry](#classgpg_1_1_score_page_1_1_entry_1a0459dbe666b3234a464dec9f65a47adc)`(std::shared_ptr\u003c const EntryImpl \u003e impl)` Explicit constructor. ||\n| [Entry](#classgpg_1_1_score_page_1_1_entry_1a6ac998737573b3ea58130df7daf58d04)`(const `[Entry](/games/services/cpp/api/class/gpg/score-page/entry#classgpg_1_1_score_page_1_1_entry)` & copy_from)` Copy constructor for copying an existing entry into a new one. ||\n| [Entry](#classgpg_1_1_score_page_1_1_entry_1a97f71047dfe8c6fb14ac1bf067de9828)`(`[Entry](/games/services/cpp/api/class/gpg/score-page/entry#classgpg_1_1_score_page_1_1_entry)` && move_from)` Constructor for moving an existing entry into a new one. ||\n| [~Entry](#classgpg_1_1_score_page_1_1_entry_1a45717132994736f8142b3486ddd93774)`()` ||\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [LastModified](#classgpg_1_1_score_page_1_1_entry_1a6be6eda3076e935355791d931adfb90b)`() const ` | [Timestamp](/games/services/cpp/api/namespace/gpg#namespacegpg_1a5668d538180e09da17413d5e1c275544) **[Deprecated.](/games/services/cpp/api/deprecated/deprecated)**Prefer LastModifiedTime. |\n| [LastModifiedTime](#classgpg_1_1_score_page_1_1_entry_1a7b1bec91e44f25a31568090abf041823)`() const ` | [Timestamp](/games/services/cpp/api/namespace/gpg#namespacegpg_1a5668d538180e09da17413d5e1c275544) Returns time at which the entry was last modified (expressed as milliseconds since the Unix epoch). |\n| [PlayerId](#classgpg_1_1_score_page_1_1_entry_1aa076d3fb7cceb4dc04a1ce765bec49a5)`() const ` | `const std::string &` Returns player ID. |\n| [Score](#classgpg_1_1_score_page_1_1_entry_1a64d90f26f5ba0a3e0ed57f97b3141a1c)`() const ` | `const `[gpg::Score](/games/services/cpp/api/class/gpg/score#classgpg_1_1_score)` &` Returns player score. |\n| [Valid](#classgpg_1_1_score_page_1_1_entry_1a8ed52640c602772e5fb440e73ebdd418)`() const ` | `bool` Returns true when the returned entry is populated with data and is accompanied by a successful response status; false for an unpopulated user-created entry or for a populated one accompanied by an unsuccessful response status. |\n| [operator=](#classgpg_1_1_score_page_1_1_entry_1a7804f339b8cfe02c180a3c841e7ce202)`(const `[Entry](/games/services/cpp/api/class/gpg/score-page/entry#classgpg_1_1_score_page_1_1_entry)` & copy_from)` | [Entry](/games/services/cpp/api/class/gpg/score-page/entry#classgpg_1_1_score_page_1_1_entry)` &` Assignment operator for assigning this entry's value from another entry. |\n| [operator=](#classgpg_1_1_score_page_1_1_entry_1a660b519d1dcd64a9f92d415e21ad2982)`(`[Entry](/games/services/cpp/api/class/gpg/score-page/entry#classgpg_1_1_score_page_1_1_entry)` && move_from)` | [Entry](/games/services/cpp/api/class/gpg/score-page/entry#classgpg_1_1_score_page_1_1_entry)` &` Assignment operator for assigning this entry's value from another entry. |\n\nPublic functions\n----------------\n\n### Entry\n\n```c++\n Entry()\n``` \n\n### Entry\n\n```c++\n Entry(\n std::shared_ptr\u003c const EntryImpl \u003e impl\n)\n``` \nExplicit constructor. \n\n### Entry\n\n```c++\n Entry(\n const Entry & copy_from\n)\n``` \nCopy constructor for copying an existing entry into a new one. \n\n### Entry\n\n```c++\n Entry(\n Entry && move_from\n)\n``` \nConstructor for moving an existing entry into a new one.\n\nr-value-reference version. \n\n### LastModified\n\n```c++\nTimestamp LastModified() const \n``` \n**[Deprecated.](/games/services/cpp/api/deprecated/deprecated)**Prefer LastModifiedTime. \n\n### LastModifiedTime\n\n```c++\nTimestamp LastModifiedTime() const \n``` \nReturns time at which the entry was last modified (expressed as milliseconds since the Unix epoch). \n\n### PlayerId\n\n```c++\nconst std::string & PlayerId() const \n``` \nReturns player ID. \n\n### Score\n\n```c++\nconst gpg::Score & Score() const \n``` \nReturns player score. \n\n### Valid\n\n```c++\nbool Valid() const \n``` \nReturns true when the returned entry is populated with data and is accompanied by a successful response status; false for an unpopulated user-created entry or for a populated one accompanied by an unsuccessful response status.\n\nIt must be true for the getter functions on this entry (PlayerId, [Score](/games/services/cpp/api/class/gpg/score#classgpg_1_1_score), etc.) to be usable. \n\n### operator=\n\n```c++\nEntry & operator=(\n const Entry & copy_from\n)\n``` \nAssignment operator for assigning this entry's value from another entry. \n\n### operator=\n\n```c++\nEntry & operator=(\n Entry && move_from\n)\n``` \nAssignment operator for assigning this entry's value from another entry.\n\nr-value-reference version. \n\n### \\~Entry\n\n```c++\n ~Entry()\n```"]]