|
BDE 4.39.x Production Release
|
#include <bsltf_templatetestfacility.h>
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.
Public Types | |
| typedef TemplateTestFacility_StubClass * | ObjectPtr |
| typedef void(* | FunctionPtr) () |
| typedef int(TemplateTestFacility_StubClass::* | MethodPtr) () |
Public Member Functions | |
| template<class TYPE > | |
| MoveState::Enum | getMovedFromState (const TYPE &object) |
| template<class TYPE > | |
| MoveState::Enum | getMovedIntoState (const TYPE &object) |
Static Public Member Functions | |
| template<class TYPE > | |
| static TYPE | create (int identifier) |
| template<class TYPE , class ALLOCATOR > | |
| static void | emplace (TYPE *address, int identifier, ALLOCATOR allocator) |
| template<class TYPE , class ALLOCATOR > | |
| static void | emplace (TYPE *address, int identifier, ALLOCATOR *allocator) |
| template<class TYPE , class ALLOCATOR > | |
| static void | emplace (TYPE **address, int identifier, ALLOCATOR allocator) |
| template<class TYPE , class ALLOCATOR > | |
| static void | emplace (TYPE **address, int identifier, ALLOCATOR *allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (const char **address, int identifier, ALLOCATOR allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (const char **address, int identifier, ALLOCATOR *allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (char *address, int identifier, ALLOCATOR allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (char *address, int identifier, ALLOCATOR *allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (signed char *address, int identifier, ALLOCATOR allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (signed char *address, int identifier, ALLOCATOR *allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (unsigned char *address, int identifier, ALLOCATOR allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (unsigned char *address, int identifier, ALLOCATOR *allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (EmplacableTestType *address, int identifier, ALLOCATOR allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (EmplacableTestType *address, int identifier, ALLOCATOR *allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (AllocEmplacableTestType *address, int identifier, ALLOCATOR allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (AllocEmplacableTestType *address, int identifier, ALLOCATOR *allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (EnumeratedTestType::Enum *address, int identifier, ALLOCATOR allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (EnumeratedTestType::Enum *address, int identifier, ALLOCATOR *allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (MethodPtr *address, int identifier, ALLOCATOR allocator) |
| template<class ALLOCATOR > | |
| static void | emplace (MethodPtr *address, int identifier, ALLOCATOR *allocator) |
| template<class TYPE > | |
| static int | getIdentifier (const TYPE &object) |
| template<class TYPE > | |
| static int | getIdentifier (TYPE *const &object) |
| static int | getIdentifier (const char *const &object) |
| template<class ALLOC > | |
| static int | getIdentifier (const StdAllocTestType< ALLOC > &object) |
| template<class TYPE > | |
| static bsltf::MoveState::Enum | getMovedFromState (const TYPE &object) |
| template<class TYPE > | |
| static bsltf::MoveState::Enum | getMovedIntoState (const TYPE &object) |
| template<class TYPE > | |
| static void | setMovedIntoState (TYPE *object, bsltf::MoveState::Enum value) |
| typedef void(* bsltf::TemplateTestFacility::FunctionPtr) () |
This typedef is an alias for a pointer to a function pointer.
| typedef int(TemplateTestFacility_StubClass::* bsltf::TemplateTestFacility::MethodPtr) () |
This typedef is an alias for a pointer to a method of TemplateTestFacility_StubClass taking no arguments and returning an int.
This typedef is an alias for a pointer to a TemplateTestFacility_StubClass object.
|
inlinestatic |
Return a new object of the parameterized TYPE whose state is unique for the specified identifier.
0 <= value < 128 and TYPE is contained in the macro BSLTF_TEMPLATETESTFACILITY_TEST_TYPES_ALL.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
|
static |
Create at the specified address a pointer to a null-terminated string that will parse as having the same value as the specified identifier. The specified allocator is not used.
0 <= identifier < 128.
|
inlinestatic |
|
inlinestatic |
Set the character object at the specified address to the value of the specified identifier. The specified allocator is not used.
0 <= identifier < 128.
|
inlinestatic |
|
inlinestatic |
Set the enumeration at the specified address to the value of the specified identifier. The specified allocator is not used.
0 <= identifier < 128.
|
inlinestatic |
|
inlinestatic |
Set the pointer-to-method at the specified address to the value of the specified identifier. The specified allocator is not used.
0 <= identifier < 128.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Create a pointer to the parameterized TYPE at the specified address whose value is unique for the specified identifier.
0 <= identifier < 128. identifier value.
|
inlinestatic |
|
inlinestatic |
Create an object of the parameterized TYPE at the specified address whose state is unique for the specified identifier.
0 <= identifier < 128 and TYPE is contained in the macro BSLTF_TEMPLATETESTFACILITY_TEST_TYPES_ALL.
|
static |
|
static |
|
inlinestatic |
Return the integer identifier that uniquely identifies the specified object.
object could be created from the TemplateTestFacility::create class method template.
|
inlinestatic |
Return the integer identifier that uniquely identifies the specified object.
object could be created from the TemplateTestFacility::create class method template.
|
inlinestatic |
Return the integer identifier that uniquely identifies the specified object.
object could be created from the TemplateTestFacility::create class method template.
|
inlinestatic |
Return the integer identifier that uniquely identifies the specified object.
object was created by a call to the TemplateTestFacility::create class method template, or is a copy of such an object.
|
static |
Return the moved-from state of the specified object, ore_UNKNOWN' if (template parameter) TYPE does not support such a query.
| MoveState::Enum bsltf::TemplateTestFacility::getMovedFromState | ( | const TYPE & | object | ) |
|
static |
Return the moved-into state of the specified object, ore_UNKNOWN' if (template parameter) TYPE does not support such a query.
| MoveState::Enum bsltf::TemplateTestFacility::getMovedIntoState | ( | const TYPE & | object | ) |
|
static |
Set the moved-into state of the specified 'object to the specified value if (template parameter) TYPE does supports move states.