संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
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
सही नतीजे तब दिखते हैं, जब लौटाए गए स्कोर में डेटा की जानकारी अपने-आप भर जाती है और इस जानकारी के साथ रिस्पॉन्स की स्थिति भी दिखती है; गलत, अपने-आप भरे हुए उपयोगकर्ता के बनाए गए स्कोर के लिए या अपने-आप भरे हुए उस स्कोर के लिए जिसे गलत जवाब की स्थिति के साथ सबमिट किया गया है.
|
Value() const
|
uint64_t
खिलाड़ी का स्कोर लौटाता है.
|
operator=(const Score & copy_from)
|
किसी अन्य स्कोर से इस स्कोर की वैल्यू असाइन करने के लिए, असाइनमेंट ऑपरेटर.
|
operator=(Score && move_from)
|
किसी अन्य स्कोर से इस स्कोर की वैल्यू असाइन करने के लिए, असाइनमेंट ऑपरेटर.
|
सार्वजनिक फ़ंक्शन
const std::string & Metadata() const
अगर इस स्कोर के लिए कोई सेट किया गया था, तो स्कोर से जुड़ा वह मेटाडेटा दिखाता है जिसे डेवलपर ने तय किया है.
रैंक
uint64_t Rank() const
यह फ़ंक्शन अन्य खिलाड़ियों की तुलना में खिलाड़ी के स्कोर की रैंक दिखाता है.
स्कोर
Score()
स्कोर
Score(
std::shared_ptr< const ScoreImpl > impl
)
स्कोर
Score(
const Score & copy_from
)
मौजूदा स्कोर को नए में कॉपी करने के लिए, कंस्ट्रक्टर को कॉपी करें.
स्कोर
Score(
Score && move_from
)
मौजूदा स्कोर को नए स्कोर में ले जाने का कंस्ट्रक्टर.
r-value-reference वर्शन का इस्तेमाल करें.
वैध
bool Valid() const
सही नतीजे तब दिखते हैं, जब लौटाए गए स्कोर में डेटा की जानकारी अपने-आप भर जाती है और इस जानकारी के साथ रिस्पॉन्स की स्थिति भी दिखती है; गलत, अपने-आप भरे हुए उपयोगकर्ता के बनाए गए स्कोर के लिए या अपने-आप भरे हुए उस स्कोर के लिए जिसे गलत जवाब की स्थिति के साथ सबमिट किया गया है.
इस ऑब्जेक्ट पर गैटर फ़ंक्शन के इस्तेमाल किए जाने लायक होने के लिए यह सही होना चाहिए.
मान
uint64_t Value() const
खिलाड़ी का स्कोर लौटाता है.
operator=
Score & operator=(
const Score & copy_from
)
किसी अन्य स्कोर से इस स्कोर की वैल्यू असाइन करने के लिए, असाइनमेंट ऑपरेटर.
operator=
Score & operator=(
Score && move_from
)
किसी अन्य स्कोर से इस स्कोर की वैल्यू असाइन करने के लिए, असाइनमेंट ऑपरेटर.
r-value-reference वर्शन का इस्तेमाल करें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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```"]]