Skip to content

Commit

Permalink
copy and move constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed May 4, 2023
1 parent 210a7ed commit 03b8f4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,11 @@ class WebARKitTracker::WebARKitTrackerImpl {

WebARKitTracker::WebARKitTracker() : _trackerImpl(new WebARKitTrackerImpl()) {}

WebARKitTracker::~WebARKitTracker() = default;
WebARKitTracker::~WebARKitTracker() = default; //destructor

WebARKitTracker::WebARKitTracker(WebARKitTracker&&) = default; //copy constructor

WebARKitTracker& WebARKitTracker::operator=(WebARKitTracker&&) = default; //move assignment operator

void WebARKitTracker::initialize(webarkit::TRACKER_TYPE trackerType) { _trackerImpl->initialize(trackerType); }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ namespace webarkit {
class WebARKitTracker {
public:
WebARKitTracker();

~WebARKitTracker();

WebARKitTracker(WebARKitTracker&&);

WebARKitTracker& operator=(WebARKitTracker&&);

void initialize(webarkit::TRACKER_TYPE trackerType);

void initTracker(uchar* refData, size_t refCols, size_t refRows);
Expand Down

0 comments on commit 03b8f4e

Please sign in to comment.