xtd 0.2.0
Loading...
Searching...
No Matches
xtd::cpp_language Class Referencefinal
Inheritance diagram for xtd::cpp_language:
xtd::object

Definition

Represents information about c++ libraries, such as the version and language identifier. This class cannot be inherited.

Header
#include <xtd/cpp_language>
Namespace
xtd
Library
xtd.core
Remarks
The cpp_language class contains information about c++ libraries.
For information about current c++ libraries, retrieve the cpp_language object returned by the xtd::environment::cpp_language_version method.
By design, the xtd::cpp_language class is not a general purpose means of describing c++ language, and you cannot derive a more inclusive type from the xtd::cpp_language class. If you need a type to contain other information about C++ libraries, create your own type, then include a field of type cpp_language and any additional fields or methods that you require.
For more info about c++ see cppreference.

Public Constructors

 cpp_language (int32 cpp) noexcept
 Initialize a new instance of xtd::cpp_language class.

Public Properties

auto is_experimental_language () const noexcept -> bool
 Gets if is experimental language.
auto is_supported () const noexcept -> bool
 Gets if is supported by xtd.
auto language () const noexcept -> language_id
 Gets lagnguage id.
auto experimental_language () const noexcept -> language_id
 Gets experimental language id.
auto month () const noexcept -> int32
 Gets the month when the cpp language was released.
auto name () const noexcept -> xtd::string
 Gets the offical name of the cpp language.
auto value () const noexcept -> uint32
 Gets the value of cpp language.
auto version_string () const noexcept -> xtd::string
 Gets the version string of cpp language.
auto version () const noexcept -> xtd::version
 Gets The version of cpp language.
auto year () const noexcept -> int32
 Gets the year when the cpp language was released.

Public Methods

auto get_hash_code () const noexcept -> xtd::usize override
 Serves as a hash function for a particular type.
auto to_string () const noexcept -> xtd::string override
 Converts the value of this operating_system object to its equivalent string representation.

Additional Inherited Members

 object ()=default
 Create a new instance of the ultimate base class object.
virtual bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
template<typename object_t>
xtd::unique_ptr_object< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
template<typename object_a_t, typename object_b_t>
static bool equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are considered equal.
template<typename object_a_t, typename object_b_t>
static bool reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept
 Determines whether the specified object instances are the same instance.

Constructor & Destructor Documentation

◆ cpp_language()

xtd::cpp_language::cpp_language ( int32 cpp)
explicitnoexcept

Initialize a new instance of xtd::cpp_language class.

Member Function Documentation

◆ is_experimental_language()

auto xtd::cpp_language::is_experimental_language ( ) const -> bool
nodiscardnoexcept

Gets if is experimental language.

Returns
true if is experimental language; otherwise false.

◆ is_supported()

auto xtd::cpp_language::is_supported ( ) const -> bool
nodiscardnoexcept

Gets if is supported by xtd.

Returns
true is supported by xtd; otherwise false.

◆ language()

auto xtd::cpp_language::language ( ) const -> language_id
nodiscardnoexcept

Gets lagnguage id.

Returns
One of xtd::languade_id values.

◆ experimental_language()

auto xtd::cpp_language::experimental_language ( ) const -> language_id
nodiscardnoexcept

Gets experimental language id.

Returns
One of xtd::language_id values.
Remarks
If is not experimental, the xtd::language_id is the same as xtd::cpp_language::language property.

◆ month()

auto xtd::cpp_language::month ( ) const -> int32
nodiscardnoexcept

Gets the month when the cpp language was released.

Returns
The month when the cpp version was released.

◆ name()

auto xtd::cpp_language::name ( ) const -> xtd::string
nodiscardnoexcept

Gets the offical name of the cpp language.

Returns
The offical name of the cpp version.

◆ value()

auto xtd::cpp_language::value ( ) const -> uint32
nodiscardnoexcept

Gets the value of cpp language.

Returns
The value of cpp version.

◆ version_string()

auto xtd::cpp_language::version_string ( ) const -> xtd::string
nodiscardnoexcept

Gets the version string of cpp language.

Returns
The version string.

◆ version()

auto xtd::cpp_language::version ( ) const -> xtd::version
nodiscardnoexcept

Gets The version of cpp language.

Returns
The version.

◆ year()

auto xtd::cpp_language::year ( ) const -> int32
nodiscardnoexcept

Gets the year when the cpp language was released.

Returns
The year when the cpp version was released.

◆ get_hash_code()

auto xtd::cpp_language::get_hash_code ( ) const -> xtd::usize
nodiscardoverridevirtualnoexcept

Serves as a hash function for a particular type.

Returns
A hash code for the current object.

Reimplemented from xtd::object.

◆ to_string()

auto xtd::cpp_language::to_string ( ) const -> xtd::string
nodiscardoverridevirtualnoexcept

Converts the value of this operating_system object to its equivalent string representation.

Returns
The string representation of the values returned by the platform, version, and service_pack methods.

Reimplemented from xtd::object.


The documentation for this class was generated from the following file: