Namespace providing helpers for creating and identifying test objects.

Synopsis

Declared in <bsltf_templatetestfacility.h>

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

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.

Member Functions

Name

Description

getIdentifier

getIdentifier overloads

Static Member Functions

Name

Description

create

Return a new object of TYPE unique for the specified identifier.

emplace

emplace overloads

getIdentifier

Return the integer identifier that uniquely identifies object.

getMovedFromState

Return the moved‐from state of object, or e_UNKNOWN.

getMovedIntoState

Return the moved‐into state of object, or e_UNKNOWN.

setMovedIntoState

Set the moved‐into state of object to the specified value.

Created with MrDocs