Keywords are predefined, reserved identifiers that have special meanings to the compiler.
Macros | |
#define | export_ |
Define shared library export. | |
#define | abstract_ |
This keyword is used to represents an abstract class. | |
#define | abstract_object_ |
This keyword is used to represents an abstract class. | |
#define | block_scope_(...) |
The specified expression is cleared automatically when the scope is ended. | |
#define | call_once_ |
The xtd keyword call_once_ can be used to execute a routine exactly once. This can be used to initialise data in a thread-safe way. | |
#define | core_export_ |
Define shared library export. | |
#define | current_stack_frame_ |
Provides information about the current stack frame. | |
#define | csf_ |
Provides information about the current stack frame. | |
#define | add_current_stack_frame_(...) |
Add current stack frame to the VA_ARGS with a comma separator. | |
#define | add_csf_ |
Add current stack frame to the VA_ARGS with a comma separator. | |
#define | enum_ut_(namespace_name, enum_t, underlying_t, ...) |
Provides the registration struct for enum with specified underlying type. | |
#define | enum_(namespace_name, enum_t, ...) |
Provides the registration struct for enum. | |
#define | enum_class_ut_(namespace_name, enum_class_t, underlying_t, ...) |
Provides the registration struct for enum class with specified underlying type. | |
#define | enum_class_(namespace_name, enum_class_t, ...) |
Provides the registration struct for enum class. | |
#define | enum_struct_ut_(namespace_name, enum_struct_t, underlying_t, ...) |
Provides the registration struct for enum with specified underlying type. | |
#define | enum_struct_(namespace_name, enum_struct_t, ...) |
Provides the registration struct for enum struct. | |
#define | flags_attribute_(namespace_name, enum_type) |
Provides the set attribute struct for enumerations helper. | |
#define | interface_ |
This keyword is use to represent an interface. | |
#define | lock_(object) |
The lock_ keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. The following example includes a lock statement. | |
#define | nameof_(...) |
Used to obtain the simple (unqualified) string name of a variable, type, or member. | |
#define | assembly_company_(company) |
Sets the assembly company information. Must be called once in your application. | |
#define | assembly_configuration_(configuration) |
Sets the assembly configuration information. Must be called once in your application. | |
#define | assembly_copyright_(copyright) |
Sets the assembly copoyright information. Must be called once in your application. | |
#define | assembly_culture_(culture) |
Sets the assembly culture information. Must be called once in your application. | |
#define | assembly_description_(description) |
Sets the assembly description information. Must be called once in your application. | |
#define | assembly_file_version_(version) |
Sets the assembly file version information. Must be called once in your application. | |
#define | assembly_guid_(guid) |
Sets the assembly guid information. Must be called once in your application. | |
#define | assembly_identifier_(identifier) |
Sets the assembly identifier information. Must be called once in your application. | |
#define | assembly_name_(name) |
Sets the assembly name information. Must be called once in your application. | |
#define | assembly_product_(product) |
Sets the assembly product information. Must be called once in your application. | |
#define | assembly_title_(title) |
Sets the assembly title information. Must be called once in your application. | |
#define | assembly_trademark_(trademark) |
Sets the assembly trademark information. Must be called once in your application. | |
#define | assembly_version_(version) |
Sets the assembly version information. Must be called once in your application. | |
#define | scope_exit_ |
Nowadays, every C++ developer is familiar with the Resource Acquisition Is Initialization (RAII) technique. It binds resource acquisition and release to initialization and destruction of a variable that holds the resource. There are times when writing a special class for such a variable is not worth the effort. This is when xtd scope_exit_ comes into play. | |
#define | self_ |
The self_ expression is a reference value expression whose value is the reference of the implicit object parameter (the object on which the non-static member function (up to C++23) implicit object member function (since C++23) is called). | |
#define | startup_(main_method) |
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. | |
#define | startup_class_(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. | |
#define | static_ |
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted). | |
#define | static_object_ |
This keyword is use to represent a static object. A static object can't be instantiated (constructors are deleted). | |
#define | lock_guard_(object) |
The lock_guard_ keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. The following example includes a lock statement. | |
#define | typeof_ |
Used to obtain the type object of a specified type or object. | |
#define | 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. | |
#define | using_(...) |
The specified expression is cleared automatically when the scope is ended. | |
#define | drawing_export_ |
Define shared library export. | |
#define | forms_export_ |
Define shared library export. | |
#define | tunit_export_ |
Define shared library export. | |
#define export_ |
#define abstract_ |
#include <xtd.core/include/xtd/abstract.h>
This keyword is used to represents an abstract class.
#define abstract_object_ |
#include <xtd.core/include/xtd/abstract_object.h>
This keyword is used to represents an abstract class.
#define block_scope_ | ( | ... | ) |
#include <xtd.core/include/xtd/block_scope.h>
The specified expression is cleared automatically when the scope is ended.
#define call_once_ |
#include <xtd.core/include/xtd/call_once.h>
The xtd keyword call_once_ can be used to execute a routine exactly once. This can be used to initialise data in a thread-safe way.
#define core_export_ |
#include <xtd.core/include/xtd/core_export.h>
Define shared library export.
#define current_stack_frame_ |
#include <xtd.core/include/xtd/diagnostics/current_stack_frame.h>
Provides information about the current stack frame.
#define csf_ |
#include <xtd.core/include/xtd/diagnostics/current_stack_frame.h>
Provides information about the current stack frame.
#define add_current_stack_frame_ | ( | ... | ) |
#include <xtd.core/include/xtd/diagnostics/current_stack_frame.h>
Add current stack frame to the VA_ARGS with a comma separator.
#define add_csf_ |
#include <xtd.core/include/xtd/diagnostics/current_stack_frame.h>
Add current stack frame to the VA_ARGS with a comma separator.
#define enum_ut_ | ( | namespace_name, | |
enum_t, | |||
underlying_t, | |||
... | |||
) |
#include <xtd.core/include/xtd/enum.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 enumeration list. |
#define enum_ | ( | namespace_name, | |
enum_t, | |||
... | |||
) |
#include <xtd.core/include/xtd/enum.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 enumeration list. |
#define enum_class_ut_ | ( | namespace_name, | |
enum_class_t, | |||
underlying_t, | |||
... | |||
) |
#include <xtd.core/include/xtd/enum_class.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 enumeration list. |
#define enum_class_ | ( | namespace_name, | |
enum_class_t, | |||
... | |||
) |
#include <xtd.core/include/xtd/enum_class.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 enumeration list. |
#define enum_struct_ut_ | ( | namespace_name, | |
enum_struct_t, | |||
underlying_t, | |||
... | |||
) |
#include <xtd.core/include/xtd/enum_struct.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 enumeration list. |
#define enum_struct_ | ( | namespace_name, | |
enum_struct_t, | |||
... | |||
) |
#include <xtd.core/include/xtd/enum_struct.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 enumeration list. |
#define flags_attribute_ | ( | namespace_name, | |
enum_type | |||
) |
#include <xtd.core/include/xtd/flags_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. |
Operator | Name |
---|---|
^= | Bitwise XOR assignment |
&= | Bitwise AND assignment |
|= | Bitwise OR assignment |
+= | Addition assignment |
-= | Subtraction assignment |
Bitwise XOR | |
& | Bitwise AND |
| | Bitwise OR |
+ | Addition |
- | Subtraction |
~ | Bitwise NOT |
#define interface_ |
#include <xtd.core/include/xtd/interface.h>
This keyword is use to represent an interface.
#define lock_ | ( | object | ) |
#include <xtd.core/include/xtd/lock.h>
The lock_ keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. The following example includes a lock statement.
For more information, see Thread Synchronization.
#define nameof_ | ( | ... | ) |
#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 assembly_company_ | ( | company | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 | ) |
#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 scope_exit_ |
#include <xtd.core/include/xtd/scope_exit.h>
Nowadays, every C++ developer is familiar with the Resource Acquisition Is Initialization (RAII) technique. It binds resource acquisition and release to initialization and destruction of a variable that holds the resource. There are times when writing a special class for such a variable is not worth the effort. This is when xtd scope_exit_ comes into play.
#define self_ |
#include <xtd.core/include/xtd/self.h>
The self_ expression is a reference value expression whose value is the reference of the implicit object parameter (the object on which the non-static member function (up to C++23) implicit object member function (since C++23) is called).
#define startup_ | ( | main_method | ) |
#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_method | The main method. |
#define startup_class_ | ( | 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.
#define static_ |
#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_ |
#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 lock_guard_ | ( | object | ) |
#include <xtd.core/include/xtd/threading/lock_guard.h>
The lock_guard_ keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock. The following example includes a lock statement.
For more information, see Thread Synchronization.
#define typeof_ |
#include <xtd.core/include/xtd/typeof.h>
Used to obtain the type object of a specified type or object.
#define 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.
#define drawing_export_ |
#include <xtd.drawing/include/xtd/drawing_export.h>
Define shared library export.
#define forms_export_ |
#include <xtd.forms/include/xtd/forms_export.h>
Define shared library export.
#define tunit_export_ |
#include <xtd.tunit/include/xtd/tunit_export.h>
Define shared library export.