====== XConstraint ====== **//Inherited from//** [[class::xcondition|XCondition]], **//Inherited by//** NULL **//Friend class//** NULL **//Description//** **//Public interface//** * [[xconstraint#xconstraint1|XConstraint]](ulong id, int type) * [[xconstraint#~xconstraint|~XConstraint]]() * const XConstraint * [[xconstraint#toconstraint|toConstraint]]() const * XConstraint * [[xconstraint#toconstraint|toConstraint]]() * uint8 [[xconstraint#getconstraintdof|getConstraintDoF]]() const * bool [[xconstraint#checktargets|checkTargets]](ConditionContext *context) const * void [[xconstraint#clear|clear]]() * void [[xconstraint#write|write]](XBinaryIO * io) const * ErrorCode [[xconstraint#read|read]](XBinaryIO * io) ---- {{anchor:xconstraint1}} **XConstraint(ulong id, int type)** *function: *parameters: - [i]ulong id: - [i] int type: *return value: {{anchor:~xconstraint}} **~XConstraint()** *function: *parameters: NULL *return value: {{anchor:toconstraint}} **const XConstraint * toConstraint() const** *function: *parameters: NULL *return value: {{anchor:toconstraint}} **XConstraint * toConstraint()** *function: *parameters: NULL *return value: {{anchor:getconstraintdof}} **uint8 getConstraintDoF() const** *function: *parameters: NULL *return value: {{anchor:checktargets}} **bool checkTargets(ConditionContext *context) const** *function: *parameters: - [i]ConditionContext *context: *return value: {{anchor:clear}} **void clear()** *function: *parameters: NULL *return value: {{anchor:write}} **void write(XBinaryIO * io) const** *function: *parameters: - [i]XBinaryIO * io: *return value: {{anchor:read}} **ErrorCode read(XBinaryIO * io)** *function: *parameters: - [i]XBinaryIO * io: *return value: