Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
gpg::ScorePage::ScorePageToken
#include <score_page.h>
Struktur data yang merupakan jenis hampir buram yang mewakili kueri untuk ScorePage (atau kosong).
Ringkasan
ScorePageToken digunakan dalam berbagai fungsi Papan Peringkat yang memungkinkan paging melalui halaman skor. Token yang dibuat oleh fungsi ini akan selalu dimulai di awal rentang yang diminta. Klien dapat memperoleh token dari Papan Peringkat, yang dalam hal ini mewakili kueri untuk halaman awal hasil kueri tersebut, atau dari ScorePage yang diperoleh sebelumnya, yang dalam hal ini mewakili kelanjutan (paging) kueri tersebut.
Fungsi publik
|
Valid() const
|
bool
Menampilkan benar jika token halaman skor yang ditampilkan diisi dengan data dan disertai dengan status respons yang berhasil; salah untuk token buatan pengguna yang tidak diisi atau untuk token yang diisi yang disertai dengan status respons yang gagal.
|
operator=(const ScorePageToken & copy_from)
|
Operator penetapan untuk menetapkan nilai token halaman skor ini dari token halaman skor lain.
|
operator=(ScorePageToken && move_from)
|
Operator penetapan untuk menetapkan nilai token halaman skor ini dari token halaman skor lain.
|
Fungsi publik
ScorePageToken
ScorePageToken()
ScorePageToken
ScorePageToken(
std::shared_ptr< const ScorePageTokenImpl > impl
)
ScorePageToken
ScorePageToken(
const ScorePageToken & copy_from
)
Salin konstruktor untuk menyalin token halaman skor yang ada ke token baru.
ScorePageToken
ScorePageToken(
ScorePageToken && move_from
)
Konstruktor untuk memindahkan token halaman skor yang ada ke token baru.
versi r-value-reference.
Berlaku
bool Valid() const
Menampilkan benar jika token halaman skor yang ditampilkan diisi dengan data dan disertai dengan status respons yang berhasil; salah untuk token buatan pengguna yang tidak diisi atau untuk token yang diisi disertai dengan status respons yang gagal.
Nilai ini harus benar agar fungsi pengambil di token ini (LeaderboardId, Start, dll.) dapat digunakan.
operator=
ScorePageToken & operator=(
const ScorePageToken & copy_from
)
Operator penetapan untuk menetapkan nilai token halaman skor ini dari token halaman skor lain.
operator=
ScorePageToken & operator=(
ScorePageToken && move_from
)
Operator penetapan untuk menetapkan nilai token halaman skor ini dari token halaman skor lain.
versi r-value-reference.
~ScorePageToken
~ScorePageToken()
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-22 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-22 UTC."],[],[],null,["# gpg::ScorePage::ScorePageToken Class Reference\n\ngpg::ScorePage::ScorePageToken\n==============================\n\n`#include \u003cscore_page.h\u003e`\n\nA data structure that is a nearly-opaque type representing a query for a [ScorePage](/games/services/cpp/api/class/gpg/score-page#classgpg_1_1_score_page) (or is empty).\n\nSummary\n-------\n\n[ScorePageToken](/games/services/cpp/api/class/gpg/score-page/score-page-token#classgpg_1_1_score_page_1_1_score_page_token) is used in various [Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard) functions that allow paging through pages of scores. Tokens created by this function will always start at the beginning of the requested range. The client may obtain a token either from a [Leaderboard](/games/services/cpp/api/class/gpg/leaderboard#classgpg_1_1_leaderboard), in which case it represents a query for the initial page of results for that query, or from a previously-obtained [ScorePage](/games/services/cpp/api/class/gpg/score-page#classgpg_1_1_score_page), in which case it represents a continuation (paging) of that query.\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ScorePageToken](#classgpg_1_1_score_page_1_1_score_page_token_1a74fb3ae88facbb172bfae12c53ea20e1)`()` ||\n| [ScorePageToken](#classgpg_1_1_score_page_1_1_score_page_token_1acbe9a55e21e5dc253a83b25c035efd34)`(std::shared_ptr\u003c const `[ScorePageTokenImpl](/games/services/cpp/api/class/gpg/score-page/score-page-token#classgpg_1_1_score_page_1_1_score_page_token_1af3d660a323938fb5353f1b487408af42)` \u003e impl)` Explicit constructor. ||\n| [ScorePageToken](#classgpg_1_1_score_page_1_1_score_page_token_1a135117027fcbb9a79c55ecc1db07951a)`(const `[ScorePageToken](/games/services/cpp/api/class/gpg/score-page/score-page-token#classgpg_1_1_score_page_1_1_score_page_token)` & copy_from)` Copy constructor for copying an existing score page token into a new one. ||\n| [ScorePageToken](#classgpg_1_1_score_page_1_1_score_page_token_1af05f1f5538759a71b186d3efa18585c9)`(`[ScorePageToken](/games/services/cpp/api/class/gpg/score-page/score-page-token#classgpg_1_1_score_page_1_1_score_page_token)` && move_from)` Constructor for moving an existing score page token into a new one. ||\n| [~ScorePageToken](#classgpg_1_1_score_page_1_1_score_page_token_1abb34feaceca114b53ee5de8fa8c4b339)`()` ||\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Valid](#classgpg_1_1_score_page_1_1_score_page_token_1af7b57edc2a429597e2daa1ac1ffe2af0)`() const ` | `bool` Returns true when the returned score page token is populated with data and is accompanied by a successful response status; false for an unpopulated user-created token or for a populated one accompanied by an unsuccessful response status. |\n| [operator=](#classgpg_1_1_score_page_1_1_score_page_token_1a1c8986654d34fa9b45e5bfa78c82d0de)`(const `[ScorePageToken](/games/services/cpp/api/class/gpg/score-page/score-page-token#classgpg_1_1_score_page_1_1_score_page_token)` & copy_from)` | [ScorePageToken](/games/services/cpp/api/class/gpg/score-page/score-page-token#classgpg_1_1_score_page_1_1_score_page_token)` &` Assignment operator for assigning this score page token's value from another score page token. |\n| [operator=](#classgpg_1_1_score_page_1_1_score_page_token_1a34fee10e97d8ff9a713110c5816206b5)`(`[ScorePageToken](/games/services/cpp/api/class/gpg/score-page/score-page-token#classgpg_1_1_score_page_1_1_score_page_token)` && move_from)` | [ScorePageToken](/games/services/cpp/api/class/gpg/score-page/score-page-token#classgpg_1_1_score_page_1_1_score_page_token)` &` Assignment operator for assigning this score page token's value from another score page token. |\n\nPublic functions\n----------------\n\n### ScorePageToken\n\n```c++\n ScorePageToken()\n``` \n\n### ScorePageToken\n\n```c++\n ScorePageToken(\n std::shared_ptr\u003c const ScorePageTokenImpl \u003e impl\n)\n``` \nExplicit constructor. \n\n### ScorePageToken\n\n```c++\n ScorePageToken(\n const ScorePageToken & copy_from\n)\n``` \nCopy constructor for copying an existing score page token into a new one. \n\n### ScorePageToken\n\n```c++\n ScorePageToken(\n ScorePageToken && move_from\n)\n``` \nConstructor for moving an existing score page token 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 page token is populated with data and is accompanied by a successful response status; false for an unpopulated user-created token or for a populated one accompanied by an unsuccessful response status.\n\nIt must be true for the getter functions on this token (LeaderboardId, Start, etc.) to be usable. \n\n### operator=\n\n```c++\nScorePageToken & operator=(\n const ScorePageToken & copy_from\n)\n``` \nAssignment operator for assigning this score page token's value from another score page token. \n\n### operator=\n\n```c++\nScorePageToken & operator=(\n ScorePageToken && move_from\n)\n``` \nAssignment operator for assigning this score page token's value from another score page token.\n\nr-value-reference version. \n\n### \\~ScorePageToken\n\n```c++\n ~ScorePageToken()\n```"]]