xtd - Reference Guide 0.2.0
xtd::cpp_language Class Referencefinal

#include <cpp_language.h>

Definition

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

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 operating_system class is not a general purpose means of describing an operating system, and you cannot derive a more inclusive type from the operating_system 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.

Constructors

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

Properties

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

Methods

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

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ cpp_language()

xtd::cpp_language::cpp_language ( uint32_t  cpp)
inlineexplicitnoexcept

Initialize a new instance of xtd::cpp_language class.

Member Function Documentation

◆ experimental_language()

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

Gets experimental language id.

Returns
One of xtd::language_id values. 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
inlinenoexcept

Gets if is experimental language.

Returns
true if is experimental language; otherwise false.

◆ is_supported()

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

Gets if is supported by xtd.

Returns
true is supported by xtd; otherwise false.

◆ language()

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

Gets lagnguage id.

Returns
One of xtd::languade_id values.

◆ month()

int32_t xtd::cpp_language::month ( ) const
inlinenoexcept

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
inlinenoexcept

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
inlineoverridevirtualnoexcept

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_t xtd::cpp_language::value ( ) const
inlinenoexcept

Gets the value of cpp language.

Returns
The value of cpp version.

◆ version()

const xtd::version& xtd::cpp_language::version ( ) const
inlinenoexcept

Gets The version of cpp language.

Returns
The version.

◆ version_string()

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

Gets the version string of cpp language.

Returns
The version string.

◆ year()

int32_t xtd::cpp_language::year ( ) const
inlinenoexcept

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: