Skip to content

Commit

Permalink
Move implementations to cpp files
Browse files Browse the repository at this point in the history
  • Loading branch information
avolkov-intel committed Dec 17, 2024
1 parent 21e1278 commit dc12469
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cpp/daal/include/algorithms/covariance/covariance_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ namespace interface1
class DAAL_EXPORT InputIface : public daal::algorithms::Input
{
public:
InputIface(size_t nElements) : daal::algorithms::Input(nElements) {}
InputIface(const InputIface & other) = default;
InputIface & operator=(const InputIface & other) = default;
virtual size_t getNumberOfFeatures() const = 0;
virtual ~InputIface() {}
InputIface(size_t nElements);
InputIface(const InputIface & other);
InputIface & operator=(const InputIface & other);
virtual size_t getNumberOfFeatures() const = 0;
virtual ~InputIface();
};

/**
Expand All @@ -140,10 +140,10 @@ class DAAL_EXPORT Input : public InputIface
{
public:
Input();
Input(const Input & other) = default;
Input & operator=(const Input & other) = default;
Input(const Input & other);
Input & operator=(const Input & other);

virtual ~Input() {}
virtual ~Input();

/**
* Returns number of columns in the input data set
Expand Down Expand Up @@ -404,10 +404,10 @@ class DAAL_EXPORT DistributedInput<step2Master> : public InputIface
{
public:
DistributedInput();
DistributedInput(const DistributedInput & other) = default;
DistributedInput & operator=(const DistributedInput & other) = default;
DistributedInput(const DistributedInput & other);
DistributedInput & operator=(const DistributedInput & other);

virtual ~DistributedInput() {}
virtual ~DistributedInput();

/**
* Returns number of columns in the input data set
Expand Down
9 changes: 9 additions & 0 deletions cpp/daal/src/algorithms/covariance/covariance_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,16 @@ namespace covariance
{
namespace interface1
{

InputIface::InputIface(size_t nElements) : daal::algorithms::Input(nElements) {}
InputIface::InputIface(const InputIface & other) = default;
InputIface & InputIface::operator=(const InputIface & other) = default;
InputIface::~InputIface() = default;

Input::Input() : InputIface(lastInputId + 1) {}
Input::Input(const Input & other) = default;
Input & Input::operator=(const Input & other) = default;
Input::~Input() {}

/**
* Returns number of columns in the input data set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ DistributedInput<step2Master>::DistributedInput() : InputIface(lastMasterInputId
Argument::set(partialResults, DataCollectionPtr(new DataCollection()));
}

DistributedInput<step2Master>::DistributedInput(const DistributedInput & other) = default;
DistributedInput<step2Master> & DistributedInput<step2Master>::operator=(const DistributedInput & other) = default;
DistributedInput<step2Master>::~DistributedInput() = default;

size_t DistributedInput<step2Master>::getNumberOfFeatures() const
{
DataCollectionPtr collectionOfPartialResults = staticPointerCast<DataCollection, SerializationIface>(Argument::get(partialResults));
Expand Down

0 comments on commit dc12469

Please sign in to comment.