8#ifndef INCLUDED_BSLTF_MOVESTATE
9#define INCLUDED_BSLTF_MOVESTATE
105#include <bslscm_version.h>
200 return (CopyMoveState::isUnknown(
object) ? MoveState::e_UNKNOWN :
201 CopyMoveState::isMovedFrom(object) ? MoveState::e_MOVED :
202 MoveState::e_NOT_MOVED);
208 return (CopyMoveState::isUnknown(
object) ? MoveState::e_UNKNOWN :
209 CopyMoveState::isMovedInto(object) ? MoveState::e_MOVED :
210 MoveState::e_NOT_MOVED);
216 CopyMoveState::Enum cms = CopyMoveState::e_UNKNOWN;
220 case MoveState::e_NOT_MOVED: cms = CopyMoveState::e_ORIGINAL;
break;
221 case MoveState::e_MOVED: cms = CopyMoveState::e_MOVED_INTO;
break;
222 case MoveState::e_UNKNOWN: cms = CopyMoveState::e_UNKNOWN;
break;
225 CopyMoveState::set(
object, cms);
231 std::printf(
"%s", MoveState::toAscii(value));
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bsltf_allocargumenttype.h:92
void debugprint(const ArgumentType< N > &object)
Definition bsltf_argumenttype.h:551
MoveState::Enum getMovedInto(const AllocArgumentType< N > &object)
Return the move-into state of the specified object.
Definition bsltf_allocargumenttype.h:413
void setMovedInto(MovableTestType *object, MoveState::Enum value)
Definition bsltf_movabletesttype.h:306
MoveState::Enum getMovedFrom(const AllocArgumentType< N > &object)
Return the move-from state of the specified object.
Definition bsltf_allocargumenttype.h:406
Definition bsltf_movestate.h:114
static const char * toAscii(MoveState::Enum value)
Enum
Enumeration of move state.
Definition bsltf_movestate.h:119
@ e_UNKNOWN
Definition bsltf_movestate.h:124
@ e_NOT_MOVED
Definition bsltf_movestate.h:120
@ e_MOVED
Definition bsltf_movestate.h:122