[#BloombergLP-bsltf-TemplateTestFacility] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::TemplateTestFacility :relfileprefix: ../../ :mrdocs: 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. == Synopsis Declared in `<bsltf_templatetestfacility.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TemplateTestFacility; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsltf/TemplateTestFacility/FunctionPtr.adoc[`FunctionPtr`] | This `typedef` is an alias for a pointer to a function pointer. | xref:BloombergLP/bsltf/TemplateTestFacility/MethodPtr.adoc[`MethodPtr`] | This `typedef` is an alias for a pointer to a method of `TemplateTestFacility_StubClass` taking no arguments and returning an `int`. | xref:BloombergLP/bsltf/TemplateTestFacility/ObjectPtr.adoc[`ObjectPtr`] | This `typedef` is an alias for a pointer to a `TemplateTestFacility_StubClass` object. |=== == Member Functions [cols="1"] |=== | Name | xref:BloombergLP/bsltf/TemplateTestFacility/getIdentifier-0d1a.adoc[`getIdentifier`] |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsltf/TemplateTestFacility/create.adoc[`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`. | xref:BloombergLP/bsltf/TemplateTestFacility/emplace-0421.adoc[`emplace`] | `emplace` overloads | xref:BloombergLP/bsltf/TemplateTestFacility/getIdentifier-0c7.adoc[`getIdentifier`] | `getIdentifier` overloads | xref:BloombergLP/bsltf/TemplateTestFacility/getMovedFromState.adoc[`getMovedFromState`] | Return the moved‐from state of the specified `object, or `e_UNKNOWN' if (template parameter) `TYPE` does not support such a query. | xref:BloombergLP/bsltf/TemplateTestFacility/getMovedIntoState.adoc[`getMovedIntoState`] | Return the moved‐into state of the specified `object, or `e_UNKNOWN' if (template parameter) `TYPE` does not support such a query. | xref:BloombergLP/bsltf/TemplateTestFacility/setMovedIntoState.adoc[`setMovedIntoState`] | Set the moved‐into state of the specified 'object to the specified `value` if (template parameter) `TYPE` does supports move states. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#