System::Nullable class
Contents
[
Hide
]Nullable class
Forward declaration.
template<typename T>class Nullable
Parameter | Description |
---|---|
T | The underlying value type which is extended by the Nullable class |
Methods
Method | Description |
---|---|
Equals(const T1&) const | Determines if the value represented by the current object is equal to the value represented by the specified Nullable object. |
get_HasValue() const | Determines whether the current object represents any value. |
get_Value() const | Returns a copy of the value represented by the current object. |
GetHashCode() const | Returns a hash code for the current object. |
GetValueOrDefault(T) | Returns the value represented by the current object or the specified value if the value represented by the current object is null. |
GetValueOrDefault() | |
IsNull() const | Determines if the current object represents a null-value. |
Nullable() | Constructs an instance that represents null-value. |
Nullable(std::nullptr_t) | Constructs an instance that represents null. |
Nullable(const T1&) | Constructs an instance of Nullable class that represents the specified value converted (if necessary) to the value of the underlying type T. |
Nullable(const Nullable<T1>&) | Constructs an instance that represents a value that is represented by the specified Nullable object. The specified nullable object may represent a value of different type than the underlying type of the constructed instance in which case the represented value is converted to a value of type T. |
NullableBoolHelper(const T1&, const std::function<bool()>&, bool) const | Helper function to check if this and other are both not nulls and call a lambda if so. Used in implementation.s. |
operator const T &() const | Returns a constant reference to the value represented by the current object. |
operator!=(std::nullptr_t) const | Determines if the value represented by the current object is not null. |
operator!=(const T1&) const | Determines if the value represented by the current object is not equal to the specified value. |
operator!=(const Nullable<T1>&) const | Determines if the value represented by the current object is not equal to the value represented by the specified Nullable object. |
operator&=(bool) | Applies operator&=() to the value represented by the current object using the specified value as a right-side argument. |
operator+(std::nullptr_t) const | Returns a default constructed instance of Nullable |
operator+(const T1&) const | Sums nullable and non-nullable values. |
operator+(const Nullable<T1>&) const | Sums nullable values. |
operator+=(std::nullptr_t) | Resets the current object so that it represents a null-value. |
operator+=(const T1&) | Applies operator+=() to the value represented by the current object using the specified value as a right-side argument. |
operator+=(const Nullable<T1>&) | Applies operator+=() to the value represented by the current object using the value represented by the specified Nullable object as the right-side argument. |
operator-(T1) const | Subtracts nullable and null-pointed values. |
operator-(const T1&) const | Subtracts nullable and non-nullable values. |
operator-(const Nullable<T1>&) const | Subtracts nullable values. |
operator-=(T1) | Returns an instance of Nullable class that represents a null-value. |
operator-=(const T1&) | Applies operator-=() to the value represented by the current object using the specified value as a right-side argument. |
operator-=(const Nullable<T1>&) | Applies operator-=() to the value represented by the current object using the value represented by the specified Nullable object as the right-side argument. |
operator<(std::nullptr_t) const | Always returns false. |
operator<(const T1&) const | Determines if the value represented by the current object is less than the specified value by applying operator<() to these values. |
operator<(const Nullable<T1>&) const | Determines if the value represented by the current object is less than the value represented by the specified Nullable object by applying operator<() to these values. |
operator<=(std::nullptr_t) const | Always returns false. |
operator<=(const T1&) const | Determines if the value represented by the current object is less or equal to the specified value by applying operator<=() to these values. |
operator<=(const Nullable<T1>&) const | Determines if the value represented by the current object is less or equal to the value represented by the specified Nullable object by applying operator<=() to these values. |
operator=(std::nullptr_t) | Assigns a null to the current object. |
operator=(const T1&) | Replaces the object’s currently represented value with the specified one. |
operator=(const Nullable<T1>&) | Replaces the object’s currently represented value with the specified one. |
operator==(std::nullptr_t) const | Determines if the value represented by the current object is null. |
operator==(const T1&) const | Determines if the value represented by the current object is equal to the specified value. |
operator==(const Nullable<T1>&) const | Determines if the value represented by the current object is equal to the value represented by the specified Nullable object. |
operator>(std::nullptr_t) const | Always returns false. |
operator>(const T1&) const | Determines if the value represented by the current object is greater than the specified value by applying operator>() to these values. |
operator>(const Nullable<T1>&) const | Determines if the value represented by the current object is greater than the value represented by the specified Nullable object by applying operator>() to these values. |
operator>=(std::nullptr_t) const | Always returns false. |
operator>=(const T1&) const | Determines if the value represented by the current object is greater or equal to the value represented by the specified object by applying operator>=() to these values. |
operator>=(const Nullable<T1>&) const | Determines if the value represented by the current object is greater or equal to the value represented by the specified Nullable object by applying operator>=() to these values. |
[operator | =](./operator_=/)(bool) |
reset() | Sets the currently represented value to null. |
ToString() const | Converts the value represented by the current object to string. |
Typedefs
Typedef | Description |
---|---|
ValueType | An alias for a type of the value represented by this class. |
Remarks
Represents a value of the specified type that can be assigned null. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.
See Also
- Namespace System
- Library Aspose.PDF for C++