Aspose.Tasks for C++
Aspose::Tasks::NullableBool Class Reference

A class for boolean values with possibility to check whether the value was defined or not. More...

#include <NullableBool.h>

Inherits System::IEquatable< Aspose::Tasks::NullableBool >, and System::Details::BoxableObjectBase.

Public Member Functions

bool get_Value () const
 Gets a value indicating whether current value is true or false. More...
 
void set_Value (bool value)
 Sets a value indicating whether current value is true or false. More...
 
bool get_IsDefined () const
 Gets a value indicating whether the value was defined; otherwise, false. More...
 
 NullableBool (bool value)
 Initializes a new instance of the NullableBool struct with the specified boolean value. More...
 
 NullableBool (bool value, bool isDefined)
 Initializes a new instance of the NullableBool struct. More...
 
bool Equals (NullableBool other) override
 Returns a flag indicating whether this instance is equal to the specified instance of the NullableBool class. More...
 
bool Equals (System::SharedPtr< System::Object > obj) override
 Returns a flag indicating whether this instance is equal to the specified object. More...
 
int32_t GetHashCode () const override
 Returns a hash code value for the instance of the NullableBool class. More...
 
System::String ToString () const override
 Returns a string that represents the current object. More...
 

Detailed Description

A class for boolean values with possibility to check whether the value was defined or not.

Constructor & Destructor Documentation

◆ NullableBool() [1/2]

Aspose::Tasks::NullableBool::NullableBool ( bool  value)

Initializes a new instance of the NullableBool struct with the specified boolean value.

Parameters
valuethe specified boolean value.

◆ NullableBool() [2/2]

Aspose::Tasks::NullableBool::NullableBool ( bool  value,
bool  isDefined 
)

Initializes a new instance of the NullableBool struct.

Parameters
valueThe current value.
isDefinedThe value indicating whether current value is defined.

Member Function Documentation

◆ Equals() [1/2]

bool Aspose::Tasks::NullableBool::Equals ( NullableBool  other)
override

Returns a flag indicating whether this instance is equal to the specified instance of the NullableBool class.

Parameters
otherthe specified object to compare to this instance.
Returns
a flag indicating whether this instance is equal to the specified instance of the NullableBool class.

◆ Equals() [2/2]

bool Aspose::Tasks::NullableBool::Equals ( System::SharedPtr< System::Object >  obj)
override

Returns a flag indicating whether this instance is equal to the specified object.

Parameters
objthe specified object to compare to this instance.
Returns
a flag indicating whether this instance is equal to the specified object.

◆ get_IsDefined()

bool Aspose::Tasks::NullableBool::get_IsDefined ( ) const

Gets a value indicating whether the value was defined; otherwise, false.

◆ get_Value()

bool Aspose::Tasks::NullableBool::get_Value ( ) const

Gets a value indicating whether current value is true or false.

◆ GetHashCode()

int32_t Aspose::Tasks::NullableBool::GetHashCode ( ) const
override

Returns a hash code value for the instance of the NullableBool class.

Returns
returns a hash code value for this object.

◆ set_Value()

void Aspose::Tasks::NullableBool::set_Value ( bool  value)

Sets a value indicating whether current value is true or false.

◆ ToString()

System::String Aspose::Tasks::NullableBool::ToString ( ) const
override

Returns a string that represents the current object.

Returns
A string that represents the current object.