8#ifndef INCLUDED_BSLTF_MOVESTATE
9#define INCLUDED_BSLTF_MOVESTATE
105#include <bslscm_version.h>
204 return (CopyMoveState::isUnknown(
object) ? MoveState::e_UNKNOWN :
205 CopyMoveState::isMovedFrom(object) ? MoveState::e_MOVED :
206 MoveState::e_NOT_MOVED);
212 return (CopyMoveState::isUnknown(
object) ? MoveState::e_UNKNOWN :
213 CopyMoveState::isMovedInto(object) ? MoveState::e_MOVED :
214 MoveState::e_NOT_MOVED);
220 CopyMoveState::Enum cms = CopyMoveState::e_UNKNOWN;
224 case MoveState::e_NOT_MOVED: cms = CopyMoveState::e_ORIGINAL;
break;
225 case MoveState::e_MOVED: cms = CopyMoveState::e_MOVED_INTO;
break;
226 case MoveState::e_UNKNOWN: cms = CopyMoveState::e_UNKNOWN;
break;
229 CopyMoveState::set(
object, cms);
235 std::printf(
"%s", MoveState::toAscii(value));
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition bsltf_allocargumenttype.h:92
void debugprint(const ArgumentType< N > &object)
Definition bsltf_argumenttype.h:562
MoveState::Enum getMovedInto(const AllocArgumentType< N > &object)
Return the move-into state of the specified object.
Definition bsltf_allocargumenttype.h:415
void setMovedInto(MovableTestType *object, MoveState::Enum value)
Definition bsltf_movabletesttype.h:315
MoveState::Enum getMovedFrom(const AllocArgumentType< N > &object)
Return the move-from state of the specified object.
Definition bsltf_allocargumenttype.h:408
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