|
cesium-native 0.55.0
|
Represents a source of credits, such as a tileset or raster overlay, provided to a CreditSystem. More...
#include <CesiumUtility/CreditSystem.h>
Public Member Functions | |
| CreditSource (CreditSystem &creditSystem) noexcept | |
| Constructs a new credit source associated with a given credit system. | |
| CreditSource (const std::shared_ptr< CreditSystem > &pCreditSystem) noexcept | |
| Constructs a new credit source associated with a given credit system. | |
| CreditSystem * | getCreditSystem () noexcept |
| Gets the CreditSystem associated with this source. | |
| const CreditSystem * | getCreditSystem () const noexcept |
| Gets the CreditSystem associated with this source. | |
Friends | |
| class | CreditSystem |
Represents a source of credits, such as a tileset or raster overlay, provided to a CreditSystem.
While the CreditSystem does not directly map credit source instances to tilesets or raster overlays (or vice-versa), a tileset or raster overlay can be queried for its credit source instance and that instance can be compared against one known to the credit system.
When the last reference to a credit source is released, all credits associated with that source are invalidated as well.
Definition at line 91 of file CreditSystem.h.
|
noexcept |
Constructs a new credit source associated with a given credit system.
| creditSystem | The credit system to associate with this source. |
|
noexcept |
Constructs a new credit source associated with a given credit system.
| pCreditSystem | The credit system to associate with this source. This is allowed to be nullptr in order to enable simpler client code when working with an optional credit system. |
|
noexcept |
Gets the CreditSystem associated with this source.
This may be nullptr if this source was never associated with a credit system, or if the credit system has been destroyed.
|
noexcept |
Gets the CreditSystem associated with this source.
This may be nullptr if this source was never associated with a credit system, or if the credit system has been destroyed.
|
friend |
Definition at line 131 of file CreditSystem.h.