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

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

Public Methods

xtd::ustring to_string () const noexcept override
 Converts the value of this operating_system object to its equivalent string representation.
 

Additional Inherited Members

- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t get_hash_code () const noexcept
 Serves as a hash function for a particular type.
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance.
 
template<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const noexcept
 Creates a shallow copy of the current object.
 
- Static Public Member Functions inherited from xtd::object
static bool equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
static bool reference_equals (const object &object_a, const object &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

◆ experimental_language()

language_id xtd::cpp_language::experimental_language ( ) const
noexcept

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.

◆ is_experimental_language()

bool xtd::cpp_language::is_experimental_language ( ) const
noexcept

Gets if is experimental language.

Returns
true if is experimental language; otherwise false.

◆ is_supported()

bool xtd::cpp_language::is_supported ( ) const
noexcept

Gets if is supported by xtd.

Returns
true is supported by xtd; otherwise false.

◆ language()

language_id xtd::cpp_language::language ( ) const
noexcept

Gets lagnguage id.

Returns
One of xtd::languade_id values.

◆ month()

int32 xtd::cpp_language::month ( ) const
noexcept

Gets the month when the cpp language was released.

Returns
The month when the cpp version was released.

◆ name()

xtd::ustring xtd::cpp_language::name ( ) const
noexcept

Gets the offical name of the cpp language.

Returns
The offical name of the cpp version.

◆ to_string()

xtd::ustring xtd::cpp_language::to_string ( ) const
overridevirtualnoexcept

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.

◆ value()

uint32 xtd::cpp_language::value ( ) const
noexcept

Gets the value of cpp language.

Returns
The value of cpp version.

◆ version()

xtd::version xtd::cpp_language::version ( ) const
noexcept

Gets The version of cpp language.

Returns
The version.

◆ version_string()

xtd::ustring xtd::cpp_language::version_string ( ) const
noexcept

Gets the version string of cpp language.

Returns
The version string.

◆ year()

int32 xtd::cpp_language::year ( ) const
noexcept

Gets the year when the cpp language was released.

Returns
The year when the cpp version was released.

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