Keywords are predefined, reserved identifiers that have special meanings to the compiler.
Macros | |
#define | abstract_ : public abstract_object |
This keyword is used to represents an abstract class. More... | |
#define | abstract_object_ : xtd::abstract_object |
This keyword is used to represents an abstract class. More... | |
#define | assembly_company_(company) xtd::reflection::assembly_company_attribute __assembly_company_attribute {company, xtd::object()} |
Sets the assembly company information. Must be called once in your application. More... | |
#define | assembly_configuration_(configuration) xtd::reflection::assembly_configuration_attribute __assembly_configuration_attribute {configuration, xtd::object()} |
Sets the assembly configuration information. Must be called once in your application. More... | |
#define | assembly_copyright_(copyright) xtd::reflection::assembly_copyright_attribute __assembly_copyright_attribute {copyright, xtd::object()} |
Sets the assembly copoyright information. Must be called once in your application. More... | |
#define | assembly_culture_(culture) xtd::reflection::assembly_culture_attribute __assembly_culture_attribute {culture, xtd::object()} |
Sets the assembly culture information. Must be called once in your application. More... | |
#define | assembly_description_(description) xtd::reflection::assembly_description_attribute __assembly_description_attribute {description, xtd::object()} |
Sets the assembly description information. Must be called once in your application. More... | |
#define | assembly_file_version_(version) xtd::reflection::assembly_file_version_attribute __assembly_file_version_attribute {version, xtd::object()} |
Sets the assembly file version information. Must be called once in your application. More... | |
#define | assembly_guid_(guid) xtd::reflection::assembly_guid_attribute __assembly_guid_attribute {guid, xtd::object()} |
Sets the assembly guid information. Must be called once in your application. More... | |
#define | assembly_identifier_(identifier) xtd::reflection::assembly_identifier_attribute __assembly_identifier_attribute {identifier, xtd::object()} |
Sets the assembly identifier information. Must be called once in your application. More... | |
#define | assembly_name_(name) xtd::reflection::assembly_name_attribute __assembly_name_attribute {name, xtd::object()} |
Sets the assembly name information. Must be called once in your application. More... | |
#define | assembly_product_(product) xtd::reflection::assembly_product_attribute __assembly_product_attribute {product, xtd::object()} |
Sets the assembly product information. Must be called once in your application. More... | |
#define | assembly_title_(title) xtd::reflection::assembly_title_attribute __assembly_title_attribute {title, xtd::object()} |
Sets the assembly title information. Must be called once in your application. More... | |
#define | assembly_trademark_(trademark) xtd::reflection::assembly_trademark_attribute __assembly_trademark_attribute {trademark, xtd::object()} |
Sets the assembly trademark information. Must be called once in your application. More... | |
#define | assembly_version_(version) xtd::reflection::assembly_version_attribute __assembly_version_attribute {xtd::ustring(version) == "" || xtd::ustring(version) == "*" ? __XTD_ASSEMBLY_VERSION__ : version, xtd::object()} |
Sets the assembly version information. Must be called once in your application. More... | |
#define | block_scope_(...) |
The specified expression is cleared automatically when the scope is ended. More... | |
#define | csf_ current_stack_frame_ |
Provides information about the current stack frame. More... | |
#define | current_stack_frame_ xtd::diagnostics::stack_frame {__FILE__, __LINE__, __func__} |
Provides information about the current stack frame. More... | |
#define | enum_(namespace_name, enum_t, ...) enum_ut_(namespace_name, enum_t, xtd::int32, __VA_ARGS__) |
Provides the registration struct for enum. More... | |
#define | enum_class_(namespace_name, enum_class_t, ...) enum_class_ut_(namespace_name, enum_class_t, xtd::int32, __VA_ARGS__) |
Provides the registration struct for enum class. More... | |
#define | enum_class_ut_(namespace_name, enum_class_t, underlying_t, ...) |
Provides the registration struct for enum class with specified underlying type. More... | |
#define | enum_struct_(namespace_name, enum_struct_t, ...) enum_struct_ut_(namespace_name, enum_struct_t, xtd::int32, __VA_ARGS__) |
Provides the registration struct for enum struct. More... | |
#define | enum_struct_ut_(namespace_name, enum_struct_t, underlying_t, ...) |
Provides the registration struct for enum with specified underlying type. More... | |
#define | enum_ut_(namespace_name, enum_t, underlying_t, ...) |
Provides the registration struct for enum with specified underlying type. More... | |
#define | flags_attribute_(namespace_name, enum_type) |
Provides the set attribute struct for enumerations helper. More... | |
#define | interface_ : public xtd::interface |
This keyword is use to represent an interface. More... | |
#define | nameof_(...) std::string(#__VA_ARGS__) |
Used to obtain the simple (unqualified) string name of a variable, type, or member. More... | |
#define | startup_(main_class) |
Defines the entry point to be called when the application loads. Generally this is set either to the main form in your application or to the main procedure that should run when the application starts. More... | |
#define | static_ : xtd::static_object |
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted). More... | |
#define | static_object_ : xtd::static_object |
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted). More... | |
#define | typeof_ xtd::__s__::__typeof_ |
Used to obtain the type string for a type. A typeof_ expression takes the following form: More... | |
#define | unused_ xtd::unused |
It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when the variable or typedef can't be removed or commented out, e.g. when some blocks of the code are conditionally activated. More... | |
#define | using_(...) |
The specified expression is cleared automatically when the scope is ended. More... | |
#define abstract_ : public abstract_object |
#include <xtd.core/include/xtd/abstract.h>
This keyword is used to represents an abstract class.
#define abstract_object_ : xtd::abstract_object |
#include <xtd.core/include/xtd/abstract.h>
This keyword is used to represents an abstract class.
#define assembly_company_ | ( | company | ) | xtd::reflection::assembly_company_attribute __assembly_company_attribute {company, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_company_attribute.h>
Sets the assembly company information. Must be called once in your application.
version | The version information. |
#define assembly_configuration_ | ( | configuration | ) | xtd::reflection::assembly_configuration_attribute __assembly_configuration_attribute {configuration, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_configuration_attribute.h>
Sets the assembly configuration information. Must be called once in your application.
version | The version information. |
#define assembly_copyright_ | ( | copyright | ) | xtd::reflection::assembly_copyright_attribute __assembly_copyright_attribute {copyright, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_copyright_attribute.h>
Sets the assembly copoyright information. Must be called once in your application.
version | The version information. |
#define assembly_culture_ | ( | culture | ) | xtd::reflection::assembly_culture_attribute __assembly_culture_attribute {culture, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_culture_attribute.h>
Sets the assembly culture information. Must be called once in your application.
version | The version information. |
#define assembly_description_ | ( | description | ) | xtd::reflection::assembly_description_attribute __assembly_description_attribute {description, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_description_attribute.h>
Sets the assembly description information. Must be called once in your application.
version | The version information. |
#define assembly_file_version_ | ( | version | ) | xtd::reflection::assembly_file_version_attribute __assembly_file_version_attribute {version, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_file_version_attribute.h>
Sets the assembly file version information. Must be called once in your application.
version | The version information. |
#define assembly_guid_ | ( | guid | ) | xtd::reflection::assembly_guid_attribute __assembly_guid_attribute {guid, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_guid_attribute.h>
Sets the assembly guid information. Must be called once in your application.
version | The version information. |
#define assembly_identifier_ | ( | identifier | ) | xtd::reflection::assembly_identifier_attribute __assembly_identifier_attribute {identifier, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_identifier_attribute.h>
Sets the assembly identifier information. Must be called once in your application.
version | The version information. |
#define assembly_name_ | ( | name | ) | xtd::reflection::assembly_name_attribute __assembly_name_attribute {name, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_name_attribute.h>
Sets the assembly name information. Must be called once in your application.
version | The version information. |
#define assembly_product_ | ( | product | ) | xtd::reflection::assembly_product_attribute __assembly_product_attribute {product, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_product_attribute.h>
Sets the assembly product information. Must be called once in your application.
version | The version information. |
#define assembly_title_ | ( | title | ) | xtd::reflection::assembly_title_attribute __assembly_title_attribute {title, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_title_attribute.h>
Sets the assembly title information. Must be called once in your application.
version | The version information. |
#define assembly_trademark_ | ( | trademark | ) | xtd::reflection::assembly_trademark_attribute __assembly_trademark_attribute {trademark, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_trademark_attribute.h>
Sets the assembly trademark information. Must be called once in your application.
version | The version information. |
#define assembly_version_ | ( | version | ) | xtd::reflection::assembly_version_attribute __assembly_version_attribute {xtd::ustring(version) == "" || xtd::ustring(version) == "*" ? __XTD_ASSEMBLY_VERSION__ : version, xtd::object()} |
#include <xtd.core/include/xtd/reflection/assembly_version_attribute.h>
Sets the assembly version information. Must be called once in your application.
version | The version information. |
#define block_scope_ | ( | ... | ) |
#include <xtd.core/include/xtd/block_scope.h>
The specified expression is cleared automatically when the scope is ended.
#define csf_ current_stack_frame_ |
#include <xtd.core/include/xtd/diagnostics/stack_frame.h>
Provides information about the current stack frame.
#define current_stack_frame_ xtd::diagnostics::stack_frame {__FILE__, __LINE__, __func__} |
#include <xtd.core/include/xtd/diagnostics/stack_frame.h>
Provides information about the current stack frame.
#define enum_ | ( | namespace_name, | |
enum_t, | |||
... | |||
) | enum_ut_(namespace_name, enum_t, xtd::int32, __VA_ARGS__) |
#include <xtd.core/include/xtd/enum_register.h>
Provides the registration struct for enum.
namespace_name | The name of the the namespace. Empty if no namespace. |
enum_type | The name of the enum. |
... | The nemumeration lists. This helper is created to facilitate to set the xtd::enum_register with the enumeration identifiers. |
#define enum_class_ | ( | namespace_name, | |
enum_class_t, | |||
... | |||
) | enum_class_ut_(namespace_name, enum_class_t, xtd::int32, __VA_ARGS__) |
#include <xtd.core/include/xtd/enum_register.h>
Provides the registration struct for enum class.
namespace_name | The name of the the namespace. Empty if no namespace. |
enum_class_type | The name of the enum class. |
... | The nemumeration lists. This helper is created to facilitate to set the xtd::enum_register with the enumeration identifiers. |
#define enum_class_ut_ | ( | namespace_name, | |
enum_class_t, | |||
underlying_t, | |||
... | |||
) |
#include <xtd.core/include/xtd/enum_register.h>
Provides the registration struct for enum class with specified underlying type.
namespace_name | The name of the the namespace. Empty if no namespace. |
enum_class_type | The name of the enum class. |
underlying_type | The underying type. |
... | The nemumeration lists. This helper is created to facilitate to set the xtd::enum_register with the enumeration identifiers. |
#define enum_struct_ | ( | namespace_name, | |
enum_struct_t, | |||
... | |||
) | enum_struct_ut_(namespace_name, enum_struct_t, xtd::int32, __VA_ARGS__) |
#include <xtd.core/include/xtd/enum_register.h>
Provides the registration struct for enum struct.
namespace_name | The name of the the namespace. Empty if no namespace. |
enum_struct_type | The name of the enum struct. |
... | The nemumeration lists. This helper is created to facilitate to set the xtd::enum_register with the enumeration identifiers. |
#define enum_struct_ut_ | ( | namespace_name, | |
enum_struct_t, | |||
underlying_t, | |||
... | |||
) |
#include <xtd.core/include/xtd/enum_register.h>
Provides the registration struct for enum with specified underlying type.
namespace_name | The name of the the namespace. Empty if no namespace. |
enum_struct_type | The name of the enum struct. |
underlying_type | The underying type. |
... | The nemumeration lists. This helper is created to facilitate to set the xtd::enum_register with the enumeration identifiers. |
#define enum_ut_ | ( | namespace_name, | |
enum_t, | |||
underlying_t, | |||
... | |||
) |
#include <xtd.core/include/xtd/enum_register.h>
Provides the registration struct for enum with specified underlying type.
namespace_name | The name of the the namespace. Empty if no namespace. |
enum_type | The name of the enum. |
underlying_type | The underying type. |
... | The nemumeration lists. This helper is created to facilitate to set the xtd::enum_register with the enumeration identifiers. |
#define flags_attribute_ | ( | namespace_name, | |
enum_type | |||
) |
#include <xtd.core/include/xtd/enum_set_attribute.h>
Provides the set attribute struct for enumerations helper.
namespace_name | The name of the the namespace. Empty if no namespace. | ||||||||||||||||||||||||
enum_type | The name of the enum flags. This helper is created to facilitate to set the xtd::enum_set_attribute with the xtd::enum_attribute::flags atribute and the implementation of the following operators for enum flags:
|
#define interface_ : public xtd::interface |
#include <xtd.core/include/xtd/interface.h>
This keyword is use to represent an interface.
#define nameof_ | ( | ... | ) | std::string(#__VA_ARGS__) |
#include <xtd.core/include/xtd/nameof.h>
Used to obtain the simple (unqualified) string name of a variable, type, or member.
When reporting errors in code, hooking up model-view-controller (MVC) links, firing property changed events, etc., you often want to capture the string name of a method. Using nameof helps keep your code valid when renaming definitions. Before, you had to use string literals to refer to definitions, which is brittle when renaming code elements because tools do not know to check these string literals.
A nameof expression has this form:
#define startup_ | ( | main_class | ) |
#include <xtd.core/include/xtd/startup.h>
Defines the entry point to be called when the application loads. Generally this is set either to the main form in your application or to the main procedure that should run when the application starts.
main_class | The class that contains the static main method. |
#define static_ : xtd::static_object |
#include <xtd.core/include/xtd/static.h>
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted).
#define static_object_ : xtd::static_object |
#include <xtd.core/include/xtd/static.h>
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted).
#define typeof_ xtd::__s__::__typeof_ |
#include <xtd.core/include/xtd/typeof.h>
Used to obtain the type string for a type. A typeof_ expression takes the following form:
#define unused_ xtd::unused |
#include <xtd.core/include/xtd/unused.h>
It may be used to suppress the "unused variable" or "unused local typedefs" compiler warnings when the variable or typedef can't be removed or commented out, e.g. when some blocks of the code are conditionally activated.
args | variables to suppress the unused warning |
#define using_ | ( | ... | ) |
#include <xtd.core/include/xtd/using.h>
The specified expression is cleared automatically when the scope is ended.