This struct provides a namespace that contains three aliases for types intended to be used as template parameters for testing templates. The namespace also contain two class method templates, create and getIdentifier, that respectively provides a consistent interface to (1) create a specified object of a parameterized type from an integer identifier and (2) get the identifier value of a specified object. The identifier value returned from the getIdentifier method is undefined unless the specified object was originally created with the create class method template.
Declared in <bsltf_templatetestfacility.h>
struct TemplateTestFacility;
| Name | Description |
|---|---|
FunctionPtr | This typedef is an alias for a pointer to a function pointer. |
MethodPtr | This typedef is an alias for a pointer to a method of TemplateTestFacility_StubClass taking no arguments and returning an int. |
ObjectPtr | This typedef is an alias for a pointer to a TemplateTestFacility_StubClass object. |
| Name |
|---|
getIdentifier |
| Name | Description |
|---|---|
create | Return a new object of the parameterized TYPE whose state is unique for the specified identifier. The behavior is undefined unless 0 <= value < 128 and TYPE is contained in the macro BSLTF_TEMPLATETESTFACILITY_TEST_TYPES_ALL. |
emplace | emplace overloads |
getIdentifier | getIdentifier overloads |
getMovedFromState | Return the moved-from state of the specified object, or e_UNKNOWN' if (template parameter) TYPE does not support such a query. |
getMovedIntoState | Return the moved-into state of the specified object, or e_UNKNOWN' if (template parameter) TYPE does not support such a query. |
setMovedIntoState | Set the moved-into state of the specified 'object to the specified value if (template parameter) TYPE does supports move states. |