class
#include <UniverseJavaDomain.hpp>
UniverseJavaDomain Contents
The UniverseJavaDomain class defines an adapter for an IUniverseDomain written in Java (and implementing the interface provided by JUniverse).
Base classes
- class IUniverseDomain
Public static functions
-
static auto of(easyjni::JavaObject domain) -> Universe::
IUniverseDomain*
Constructors, destructors, conversion operators
- ~UniverseJavaDomain() defaulted override
Public functions
- auto operator*() -> easyjni::JavaObject
- auto size() const -> size_t override
- auto currentSize() const -> size_t override
-
auto min() const -> Universe::
BigInteger override -
auto max() const -> Universe::
BigInteger override -
auto getValues() -> const std::vector<Universe::
BigInteger>& override -
auto getCurrentValues() -> const std::vector<Universe::
BigInteger>& override -
void keepValues(const Universe::
BigInteger& min, const Universe:: BigInteger& max) override -
void keepValues(const std::vector<Universe::
BigInteger>& values) override -
void removeValues(const Universe::
BigInteger& min, const Universe:: BigInteger& max) override -
void removeValues(const std::vector<Universe::
BigInteger>& values) override
Function documentation
static Universe:: IUniverseDomain* Universe:: UniverseJavaDomain:: of(easyjni::JavaObject domain)
Parameters | |
---|---|
domain | The existing Java object. |
Returns | The wrapper for the object. |
Creates a new UniverseJavaDomain from an existing Java object that is an instance of IUniverseDomain.
Universe:: UniverseJavaDomain:: ~UniverseJavaDomain() override defaulted
Destroys this UniverseJavaDomain.
easyjni::JavaObject Universe:: UniverseJavaDomain:: operator*()
Returns | The wrapped Java object. |
---|
Gives the Java object that is wrapped in this UniverseJavaDomain.
size_t Universe:: UniverseJavaDomain:: size() const override
Returns | The size of this domain. |
---|
Gives the size of this domain, measured in number of values.
size_t Universe:: UniverseJavaDomain:: currentSize() const override
Returns | The current size of this domain. |
---|
Gives the current size of this domain, measured in number of values.
Universe:: BigInteger Universe:: UniverseJavaDomain:: min() const override
Returns | The minimum value. |
---|
Gives the minimum value of this domain.
Universe:: BigInteger Universe:: UniverseJavaDomain:: max() const override
Returns | The maximum value. |
---|
Gives the maximum value of this domain.
const std::vector<Universe:: BigInteger>& Universe:: UniverseJavaDomain:: getValues() override
Returns | The list of initial values. |
---|
Gives the list of initial values of this domain.
const std::vector<Universe:: BigInteger>& Universe:: UniverseJavaDomain:: getCurrentValues() override
Returns | The list of current values. |
---|
Gives the list of current values of this domain.
void Universe:: UniverseJavaDomain:: keepValues(const Universe:: BigInteger& min,
const Universe:: BigInteger& max) override
Parameters | |
---|---|
min | The minimum value to keep (included). |
max | The maximum value to keep (excluded). |
Keeps in this domain only the values between min and max.
void Universe:: UniverseJavaDomain:: keepValues(const std::vector<Universe:: BigInteger>& values) override
Parameters | |
---|---|
values | The list of values to keep. |
Keeps in this domain only the given values.
void Universe:: UniverseJavaDomain:: removeValues(const Universe:: BigInteger& min,
const Universe:: BigInteger& max) override
Parameters | |
---|---|
min | The minimum value to remove (included). |
max | The maximum value to remove (excluded). |
Removes from this domain all the values between min and max.
void Universe:: UniverseJavaDomain:: removeValues(const std::vector<Universe:: BigInteger>& values) override
Parameters | |
---|---|
values | The list of values to remove. |
Removes from this domain all the given values.