[#BloombergLP-bsltf-TemplateTestFacility] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::TemplateTestFacility :relfileprefix: ../../ :mrdocs: Namespace providing helpers for creating and identifying test objects. == Synopsis Declared in `<bsltf_templatetestfacility.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TemplateTestFacility; ---- == Description 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. == 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,4"] |=== | Name| Description | xref:BloombergLP/bsltf/TemplateTestFacility/getIdentifier-0d1a.adoc[`getIdentifier`] | `getIdentifier` overloads |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bsltf/TemplateTestFacility/create.adoc[`create`] | Return a new object of `TYPE` unique for the specified `identifier`. | xref:BloombergLP/bsltf/TemplateTestFacility/emplace-0421.adoc[`emplace`] | `emplace` overloads | xref:BloombergLP/bsltf/TemplateTestFacility/getIdentifier-0c7.adoc[`getIdentifier`] | Return the integer identifier that uniquely identifies `object`. | xref:BloombergLP/bsltf/TemplateTestFacility/getMovedFromState.adoc[`getMovedFromState`] | Return the moved‐from state of `object`, or `e_UNKNOWN`. | xref:BloombergLP/bsltf/TemplateTestFacility/getMovedIntoState.adoc[`getMovedIntoState`] | Return the moved‐into state of `object`, or `e_UNKNOWN`. | xref:BloombergLP/bsltf/TemplateTestFacility/setMovedIntoState.adoc[`setMovedIntoState`] | Set the moved‐into state of `object` to the specified `value`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#