DNA Calib 1.1
Project brief
Classes | Public Member Functions | Private Attributes | List of all members
dnac::RemoveJointCommand Class Reference

RemoveJointCommand is used to remove joints. More...

#include <RemoveJointCommand.h>

Inheritance diagram for dnac::RemoveJointCommand:
Inheritance graph
Collaboration diagram for dnac::RemoveJointCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

DNACAPI RemoveJointCommand (MemoryResource *memRes=nullptr)
 
DNACAPI RemoveJointCommand (std::uint16_t jointIndex, MemoryResource *memRes=nullptr)
 
DNACAPI RemoveJointCommand (ConstArrayView< std::uint16_t > jointIndices, MemoryResource *memRes=nullptr)
 
DNACAPI ~RemoveJointCommand ()
 
 RemoveJointCommand (const RemoveJointCommand &)=delete
 
RemoveJointCommandoperator= (const RemoveJointCommand &)=delete
 
DNACAPI RemoveJointCommand (RemoveJointCommand &&)
 
DNACAPI RemoveJointCommandoperator= (RemoveJointCommand &&)
 
DNACAPI void setJointIndex (std::uint16_t jointIndex)
 Method for setting the index of the joint to remove. More...
 
DNACAPI void setJointIndices (ConstArrayView< std::uint16_t > jointIndices)
 Method for setting the indices of joints to remove. More...
 
DNACAPI void run (DNACalibDNAReader *output) override
 
- Public Member Functions inherited from dnac::Command
virtual ~Command ()
 
virtual void run (DNACalibDNAReader *output)=0
 

Private Attributes

ScopedPtr< ImplpImpl
 

Detailed Description

RemoveJointCommand is used to remove joints.

Constructor & Destructor Documentation

◆ RemoveJointCommand() [1/5]

dnac::RemoveJointCommand::RemoveJointCommand ( MemoryResource memRes = nullptr)
explicit
40 : pImpl{makeScoped<Impl>(memRes)} {
41}
ScopedPtr< Impl > pImpl
Definition: RemoveJointCommand.h:50

◆ RemoveJointCommand() [2/5]

dnac::RemoveJointCommand::RemoveJointCommand ( std::uint16_t  jointIndex,
MemoryResource memRes = nullptr 
)
43 :
44 pImpl{makeScoped<Impl>(memRes)} {
45
46 pImpl->setJointIndex(jointIndex);
47}

References pImpl.

◆ RemoveJointCommand() [3/5]

dnac::RemoveJointCommand::RemoveJointCommand ( ConstArrayView< std::uint16_t >  jointIndices,
MemoryResource memRes = nullptr 
)
49 :
50 pImpl{makeScoped<Impl>(memRes)} {
51
52 pImpl->setJointIndices(jointIndices);
53}

References pImpl.

◆ ~RemoveJointCommand()

dnac::RemoveJointCommand::~RemoveJointCommand ( )
default

◆ RemoveJointCommand() [4/5]

dnac::RemoveJointCommand::RemoveJointCommand ( const RemoveJointCommand )
delete

◆ RemoveJointCommand() [5/5]

dnac::RemoveJointCommand::RemoveJointCommand ( RemoveJointCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

RemoveJointCommand & dnac::RemoveJointCommand::operator= ( const RemoveJointCommand )
delete

◆ operator=() [2/2]

RemoveJointCommand & dnac::RemoveJointCommand::operator= ( RemoveJointCommand &&  )
default

◆ run()

void dnac::RemoveJointCommand::run ( DNACalibDNAReader output)
overridevirtual

Implements dnac::Command.

67 {
68 pImpl->run(static_cast<DNACalibDNAReaderImpl*>(output));
69}

References pImpl.

◆ setJointIndex()

void dnac::RemoveJointCommand::setJointIndex ( std::uint16_t  jointIndex)

Method for setting the index of the joint to remove.

Parameters
jointIndexThe index of the joint.
Note
Call to either setter overwrites previous setter calls. When running the command, the last set joint(s) will be removed.
59 {
60 pImpl->setJointIndex(jointIndex);
61}

References pImpl.

◆ setJointIndices()

void dnac::RemoveJointCommand::setJointIndices ( ConstArrayView< std::uint16_t >  jointIndices)

Method for setting the indices of joints to remove.

Parameters
jointIndicesThe joint indices.
Note
Call to either setter overwrites previous setter calls. When running the command, the last set joint(s) will be removed.
63 {
64 pImpl->setJointIndices(jointIndices);
65}

References pImpl.

Member Data Documentation

◆ pImpl

ScopedPtr<Impl> dnac::RemoveJointCommand::pImpl
private

The documentation for this class was generated from the following files: