#include <bsltf_copymovestate.h>
◆ Enum
Enumerator |
---|
e_ORIGINAL | |
e_COPIED_INTO | |
e_COPIED_CONST_INTO | |
e_COPIED_NONCONST_INTO | |
e_MOVED_INTO | |
e_MOVED_FROM | |
e_UNKNOWN | |
e_MAX_ENUM | |
◆ get()
For the specified obj
return copyMoveState(obj)
. Note that getCopyMoveState
is an ADL customization point; if not customized for a specific TYPE
, a default implementation returning e_UNKNOWN
is invoked.
◆ isCopiedConstInto()
template<class TYPE >
bool bsltf::CopyMoveState::isCopiedConstInto |
( |
const TYPE & |
v | ) |
|
|
inlinestatic |
Return true
if, for the specified v
, CopyMoveState::get(v)
includes the e_COPIED_CONST_INTO
bits but not e_UNKNOWN
.
◆ isCopiedInto()
template<class TYPE >
bool bsltf::CopyMoveState::isCopiedInto |
( |
const TYPE & |
v | ) |
|
|
inlinestatic |
Return true
if, for the specified v
, CopyMoveState::get(v)
includes the e_COPIED_INTO
bit but not e_UNKNOWN
; otherwise return false
.
◆ isCopiedNonconstInto()
template<class TYPE >
bool bsltf::CopyMoveState::isCopiedNonconstInto |
( |
const TYPE & |
v | ) |
|
|
inlinestatic |
Return true
if, for the specified v
, CopyMoveState::get(v)
includes the e_COPIED_NONCONST_INTO
bits but not e_UNKNOWN
.
◆ isMovedFrom()
template<class TYPE >
bool bsltf::CopyMoveState::isMovedFrom |
( |
const TYPE & |
v | ) |
|
|
inlinestatic |
Return true
if, for the specified v
, CopyMoveState::get(v)
includes the e_MOVED_FROM
bit but not e_UNKNOWN
; otherwise return false
.
◆ isMovedInto()
template<class TYPE >
bool bsltf::CopyMoveState::isMovedInto |
( |
const TYPE & |
v | ) |
|
|
inlinestatic |
Return true
if, for the specified v
, CopyMoveState::get(v)
includes the e_MOVED_INTO
bit but not e_UNKNOWN
; otherwise return false
.
◆ isOriginal()
template<class TYPE >
bool bsltf::CopyMoveState::isOriginal |
( |
const TYPE & |
v | ) |
|
|
inlinestatic |
Return true
if, for the specified v
, CopyMoveState::get(v)
does not include any of the e_COPIED_INTO
, e_MOVED_INTO
, or e_UNKNOWN
bits; otherwise return 'false. Note that this function's return value is unaffected by the e_MOVED_FROM
bit.
◆ isUnknown()
template<class TYPE >
bool bsltf::CopyMoveState::isUnknown |
( |
const TYPE & |
v | ) |
|
|
inlinestatic |
Return true
if, for the specified v
, CopyMoveState::get(v)
includes the e_UNKNOWN
bit; otherwise return 'false.
◆ isValid()
bool bsltf::CopyMoveState::isValid |
( |
Enum |
val | ) |
|
|
inlinestatic |
Return true
if the specified val
is a valid value of Enum
; otherwise false
. A valid value is any of the enumerators or the bitwise OR of any of the enumerators except e_UNKNOWN
with e_MOVED_FROM
.
◆ set()
template<class TYPE >
void bsltf::CopyMoveState::set |
( |
TYPE * |
obj_p, |
|
|
Enum |
state |
|
) |
| |
|
inlinestatic |
For the specified obj_p
address and specified state
, invoke setCopyMoveState(obj_p, state)
. Note that setCopyMoveState
is an ADL customization point; if not customized for a specific TYPE
, a no-op default implementation is invoked.
◆ toAscii()
Return the non-modifiable string representation corresponding to the specified enumeration value
, if it exists, and a unique (error) string otherwise. The string representation of value
matches its corresponding enumerator name with the "e_" prefix elided. For example:
@ e_COPIED_INTO
Definition bsltf_copymovestate.h:226
static const char * toAscii(CopyMoveState::Enum value)
will print the following on standard output:
Any of the *_INTO enums can be bitwise ORed with e_MOVED_FROM
, in which case the resulting string will be a comma-separated list of two names, e.g., "COPIED_CONST_INTO, MOVED_FROM". Note that specifying a value
that does not match any valid combination of enumerators will result in a string representation that is distinct from any of those corresponding to the enumerators, but is otherwise unspecified.
The documentation for this struct was generated from the following file: