// // GlobalVector.cpp // HappyHeart // // Created by Sebastien Gilles on 27/04/15. // Copyright (c) 2015 Inria. All rights reserved. // #include "Core/LinearAlgebra/GlobalVector.hpp" #include "Core/NumberingSubset.hpp" namespace HappyHeart { GlobalVector::GlobalVector(const NumberingSubset& numbering_subset) : numbering_subset_(numbering_subset) { } GlobalVector::GlobalVector(const GlobalVector& rhs) : Parent(rhs), numbering_subset_(rhs.numbering_subset_) { } void Swap(GlobalVector& A, GlobalVector& B) { assert(A.GetNumberingSubset() == B.GetNumberingSubset()); using Parent = GlobalVector::Parent; Swap(static_cast(A), static_cast(B)); } } // namespace HappyHeart