xtd 0.2.0
xtd::compiler Class Referencefinal

Definition

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

Header
#include <xtd/compiler>
Namespace
xtd
Library
xtd.core
Remarks
The compiler class contains information about c++ libraries.
For information about current c++ libraries, retrieve the compiler object returned by the xtd::environment::compiler_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 compiler type and any additional fields or methods that you require.

Constructors

 compiler (xtd::compiler_id compiler_id, const xtd::version &version, xtd::build_type build_type, bool is_64_bit)
 Initialise a new xtd::compiler class. More...
 

Properties

xtd::build_type build_type () const noexcept
 Gets the build type. More...
 
xtd::compiler_id compiler_id () const noexcept
 Gets the compiler id. More...
 
bool is_build_type_debug () const noexcept
 Gets build type is debug. More...
 
bool is_64_bit () noexcept
 Gets is 64 bits. More...
 
xtd::ustring name () const noexcept
 Gets compiler name. More...
 
xtd::ustring version_string () const noexcept
 Gets compiler version string. More...
 
const xtd::versionversion () const noexcept
 Gets compiler version. 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...
 
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...
 
virtual type_object get_type () const noexcept
 Gets the type of the current instance. More...
 
template<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const noexcept
 Creates a shallow copy of the current object. 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

◆ compiler()

xtd::compiler::compiler ( xtd::compiler_id  compiler_id,
const xtd::version version,
xtd::build_type  build_type,
bool  is_64_bit 
)

Initialise a new xtd::compiler class.

Parameters
compiler_idOne of xtd::compiler_id values.
versionThe compiler version.
build_typeOne of xtd::build_type values.
is_64_bittrue if 64 bits; otherwise false.

Member Function Documentation

◆ build_type()

xtd::build_type xtd::compiler::build_type ( ) const
noexcept

Gets the build type.

Returns
One of xtd::build_type values.

◆ compiler_id()

xtd::compiler_id xtd::compiler::compiler_id ( ) const
noexcept

Gets the compiler id.

Returns
One of xtd::compiler_id values.

◆ is_64_bit()

bool xtd::compiler::is_64_bit ( )
noexcept

Gets is 64 bits.

Returns
true if 64 bits; otherwise false.

◆ is_build_type_debug()

bool xtd::compiler::is_build_type_debug ( ) const
noexcept

Gets build type is debug.

Returns
true if build type debug; otherwise false.

◆ name()

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

Gets compiler name.

Returns
The compiler name.

◆ to_string()

xtd::ustring xtd::compiler::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.

◆ version()

const xtd::version& xtd::compiler::version ( ) const
noexcept

Gets compiler version.

Returns
The compiler version.

◆ version_string()

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

Gets compiler version string.

Returns
The compiler version string.

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