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

RemoveMeshCommand is used to remove a mesh. More...

#include <RemoveMeshCommand.h>

Inheritance diagram for dnac::RemoveMeshCommand:
Inheritance graph
Collaboration diagram for dnac::RemoveMeshCommand:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

DNACAPI RemoveMeshCommand (MemoryResource *memRes=nullptr)
 
DNACAPI RemoveMeshCommand (std::uint16_t meshIndex, MemoryResource *memRes=nullptr)
 
DNACAPI ~RemoveMeshCommand ()
 
 RemoveMeshCommand (const RemoveMeshCommand &)=delete
 
RemoveMeshCommandoperator= (const RemoveMeshCommand &)=delete
 
DNACAPI RemoveMeshCommand (RemoveMeshCommand &&)
 
DNACAPI RemoveMeshCommandoperator= (RemoveMeshCommand &&)
 
DNACAPI void setMeshIndex (std::uint16_t meshIndex)
 Method for setting the index of the mesh 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

RemoveMeshCommand is used to remove a mesh.

Constructor & Destructor Documentation

◆ RemoveMeshCommand() [1/4]

dnac::RemoveMeshCommand::RemoveMeshCommand ( MemoryResource memRes = nullptr)
explicit
35 : pImpl{makeScoped<Impl>(memRes)} {
36}
ScopedPtr< Impl > pImpl
Definition: RemoveMeshCommand.h:41

◆ RemoveMeshCommand() [2/4]

dnac::RemoveMeshCommand::RemoveMeshCommand ( std::uint16_t  meshIndex,
MemoryResource memRes = nullptr 
)
38 :
39 pImpl{makeScoped<Impl>(memRes)} {
40
41 pImpl->setMeshIndex(meshIndex);
42}

References pImpl.

◆ ~RemoveMeshCommand()

dnac::RemoveMeshCommand::~RemoveMeshCommand ( )
default

◆ RemoveMeshCommand() [3/4]

dnac::RemoveMeshCommand::RemoveMeshCommand ( const RemoveMeshCommand )
delete

◆ RemoveMeshCommand() [4/4]

dnac::RemoveMeshCommand::RemoveMeshCommand ( RemoveMeshCommand &&  )
default

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ run()

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

Implements dnac::Command.

52 {
53 pImpl->run(static_cast<DNACalibDNAReaderImpl*>(output));
54}

References pImpl.

◆ setMeshIndex()

void dnac::RemoveMeshCommand::setMeshIndex ( std::uint16_t  meshIndex)

Method for setting the index of the mesh to remove.

Parameters
meshIndexThe index of the mesh.
48 {
49 pImpl->setMeshIndex(meshIndex);
50}

References pImpl.

Member Data Documentation

◆ pImpl

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

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