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

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.

Public 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.
 

Public Properties

xtd::string additional_information () const noexcept
 Gets additional information.
 
xtd::build_type build_type () const noexcept
 Gets the build type.
 
xtd::compiler_id compiler_id () const noexcept
 Gets the compiler id.
 
bool is_build_type_debug () const noexcept
 Gets build type is debug.
 
bool is_64_bit () noexcept
 Gets is 64 bits.
 
xtd::string name () const noexcept
 Gets compiler name.
 
xtd::string version_string () const noexcept
 Gets compiler version string.
 
const xtd::versionversion () const noexcept
 Gets compiler version.
 

Public Methods

xtd::string 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.
 
virtual 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 >
xtd::uptr< object_t > memberwise_clone () const
 Creates a shallow copy of the current object.
 
- Static Public Member Functions inherited from xtd::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

◆ 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

◆ additional_information()

xtd::string xtd::compiler::additional_information ( ) const
noexcept

Gets additional information.

Returns
Additional information.

◆ 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_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.

◆ is_64_bit()

bool xtd::compiler::is_64_bit ( )
noexcept

Gets is 64 bits.

Returns
true if 64 bits; otherwise false.

◆ name()

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

Gets compiler name.

Returns
The compiler name.

◆ version_string()

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

Gets compiler version string.

Returns
The compiler version string.

◆ version()

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

Gets compiler version.

Returns
The compiler version.

◆ to_string()

xtd::string 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.


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