diff --git a/src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms/ComputeMisorientations.cpp b/src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms/ComputeMisorientations.cpp index 5dc0261780..d8773ce4a3 100644 --- a/src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms/ComputeMisorientations.cpp +++ b/src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms/ComputeMisorientations.cpp @@ -105,7 +105,7 @@ Result<> ComputeMisorientations::operator()() auto& outMisorientationList = m_DataStructure.getDataRefAs>(m_InputValues->MisorientationListArrayName); outMisorientationList.setLists(tempMisorientationLists); // Set the vector for each list into the NeighborList Object - //for(size_t i = 1; i < totalFeatures; i++) + // for(size_t i = 1; i < totalFeatures; i++) //{ // // Construct a shared vector through the std::vector<> copy constructor. // NeighborList::SharedVectorType sharedMisorientationList(new std::vector(tempMisorientationLists[i])); diff --git a/src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms/ComputeSlipTransmissionMetrics.cpp b/src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms/ComputeSlipTransmissionMetrics.cpp index 553c4fa671..fe383659c1 100644 --- a/src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms/ComputeSlipTransmissionMetrics.cpp +++ b/src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/Algorithms/ComputeSlipTransmissionMetrics.cpp @@ -105,10 +105,10 @@ Result<> ComputeSlipTransmissionMetrics::operator()() F7L.setLists(F7Lists); mPrimeL.setLists(mPrimeLists); - //for(usize i = 1; i < totalFeatures; i++) + // for(usize i = 1; i < totalFeatures; i++) //{ - // Float32NeighborList::SharedVectorType f1L(new std::vector(F1Lists[i])); - // F1L.setList(static_cast(i), f1L); + // Float32NeighborList::SharedVectorType f1L(new std::vector(F1Lists[i])); + // F1L.setList(static_cast(i), f1L); // Float32NeighborList::SharedVectorType f1sptL(new std::vector(F1sPtLists[i])); // F1sptL.setList(static_cast(i), f1sptL); diff --git a/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/ComputeFeatureClustering.cpp b/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/ComputeFeatureClustering.cpp index 1998abb493..1b23cd5d2d 100644 --- a/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/ComputeFeatureClustering.cpp +++ b/src/Plugins/SimplnxCore/src/SimplnxCore/Filters/Algorithms/ComputeFeatureClustering.cpp @@ -282,12 +282,12 @@ Result<> ComputeFeatureClustering::operator()() clusteringList.setLists(clusters); - //for(usize i = 1; i < totalFeatures; i++) + // for(usize i = 1; i < totalFeatures; i++) //{ - // // Set the vector for each list into the Clustering Object - // NeighborList::SharedVectorType sharedClusterLst(new std::vector); - // sharedClusterLst->assign(clusters[i].begin(), clusters[i].end()); - // clusteringList.setList(static_cast(i), sharedClusterLst); - //} + // // Set the vector for each list into the Clustering Object + // NeighborList::SharedVectorType sharedClusterLst(new std::vector); + // sharedClusterLst->assign(clusters[i].begin(), clusters[i].end()); + // clusteringList.setList(static_cast(i), sharedClusterLst); + // } return {}; } diff --git a/src/simplnx/DataStructure/AbstractDataStore.hpp b/src/simplnx/DataStructure/AbstractDataStore.hpp index 749e8869f8..c546c227e4 100644 --- a/src/simplnx/DataStructure/AbstractDataStore.hpp +++ b/src/simplnx/DataStructure/AbstractDataStore.hpp @@ -310,7 +310,7 @@ class AbstractDataStore : public IDataStore index_type numComponents = getNumberOfComponents(); index_type offset = tupleIndex * numComponents; usize count = values.size(); - for (usize i = 0; i < count; i++) + for(usize i = 0; i < count; i++) { setValue(offset + i, values[i]); } diff --git a/src/simplnx/DataStructure/AbstractListStore.hpp b/src/simplnx/DataStructure/AbstractListStore.hpp index 77e327e7dc..26efc2b059 100644 --- a/src/simplnx/DataStructure/AbstractListStore.hpp +++ b/src/simplnx/DataStructure/AbstractListStore.hpp @@ -337,7 +337,7 @@ class AbstractListStore { usize count = lists.size(); usize maxSize = 0; - for (const auto& list : lists) + for(const auto& list : lists) { maxSize = std::max(maxSize, list.size()); } diff --git a/src/simplnx/DataStructure/AbstractStringStore.cpp b/src/simplnx/DataStructure/AbstractStringStore.cpp index 1a7ffa50de..f6c0190161 100644 --- a/src/simplnx/DataStructure/AbstractStringStore.cpp +++ b/src/simplnx/DataStructure/AbstractStringStore.cpp @@ -72,9 +72,9 @@ bool AbstractStringStore::operator==(const std::vector& values) con { return false; } - for (usize i = 0; i < count; i++) + for(usize i = 0; i < count; i++) { - if (values[i] != getValue(i)) + if(values[i] != getValue(i)) { return false; } @@ -86,4 +86,4 @@ bool AbstractStringStore::operator!=(const std::vector& values) con bool equals = (*this) == values; return !equals; } -} +} // namespace nx::core diff --git a/src/simplnx/DataStructure/DataMap.cpp b/src/simplnx/DataStructure/DataMap.cpp index 6bd1cfd41d..b09d46535f 100644 --- a/src/simplnx/DataStructure/DataMap.cpp +++ b/src/simplnx/DataStructure/DataMap.cpp @@ -143,7 +143,7 @@ bool DataMap::contains(const std::string& name) const { for(auto& iter : m_Map) { - if (iter.second == nullptr) + if(iter.second == nullptr) { continue; } diff --git a/src/simplnx/DataStructure/ListStore.hpp b/src/simplnx/DataStructure/ListStore.hpp index 7a8cf2c72e..da0e99aec2 100644 --- a/src/simplnx/DataStructure/ListStore.hpp +++ b/src/simplnx/DataStructure/ListStore.hpp @@ -25,9 +25,9 @@ class ListStore : public AbstractListStore using shape_type = typename std::vector; /** - * @brief Constructs a ListStore using the specified tuple shape and list size. - * @param tupleShape - * @param listSize + * @brief Constructs a ListStore using the specified tuple shape and list size. + * @param tupleShape + * @param listSize */ ListStore(shape_type tupleShape, usize listSize = 10) : parent_type() @@ -37,9 +37,9 @@ class ListStore : public AbstractListStore } /** - * @brief Creates a ListStore from a vector of vectors. - * @param vectors - */ + * @brief Creates a ListStore from a vector of vectors. + * @param vectors + */ ListStore(const typename std::vector& vectors) : parent_type() { @@ -47,8 +47,8 @@ class ListStore : public AbstractListStore } /** - * @brief Copy constructor - */ + * @brief Copy constructor + */ ListStore(const ListStore& other) : parent_type(other) , m_XtensorListSize(other.m_XtensorListSize) @@ -57,8 +57,8 @@ class ListStore : public AbstractListStore } /** - * @brief Move constructor - */ + * @brief Move constructor + */ ListStore(ListStore&& copy) noexcept : parent_type(std::move(copy)) , m_Array(std::move(copy.m_Array)) @@ -68,8 +68,8 @@ class ListStore : public AbstractListStore ~ListStore() = default; /** - * @brief Returns a reference to the underlying xtensor array. - * @return xarray_type& + * @brief Returns a reference to the underlying xtensor array. + * @return xarray_type& */ xarray_type& xarray() override { @@ -77,9 +77,9 @@ class ListStore : public AbstractListStore } /** - * @brief Returns a const reference to the underlying xtensor array. - * @return const xarray_type& - */ + * @brief Returns a const reference to the underlying xtensor array. + * @return const xarray_type& + */ const xarray_type& xarray() const override { return *m_Array.get(); @@ -107,7 +107,7 @@ class ListStore : public AbstractListStore usize numTuples = this->getNumberOfLists(); usize newTupleCount = std::accumulate(tupleShape.begin(), tupleShape.end(), static_cast(1), std::multiplies()); - + // Avoid size 0 if(newTupleCount == 0) { @@ -126,7 +126,7 @@ class ListStore : public AbstractListStore { for(usize tuple = 0; tuple < numTuples && tuple < newTupleCount; tuple++) { - usize offset = tuple * (internalSize); // New xarray + usize offset = tuple * (internalSize); // New xarray usize offset2 = tuple * (m_XtensorListSize); // Current xarray // Copy individual list at tuple for(usize i = 0; i < m_XtensorListSize && i < internalSize; i++) @@ -154,12 +154,12 @@ class ListStore : public AbstractListStore usize newTupleCount = std::accumulate(tupleShape.begin(), tupleShape.end(), static_cast(1), std::multiplies()); // Avoid size 0 - if (newTupleCount == 0) + if(newTupleCount == 0) { tupleShape = {1}; newTupleCount = 1; } - if (internalSize == 0) + if(internalSize == 0) { internalSize = 1; } diff --git a/src/simplnx/DataStructure/NeighborList.cpp b/src/simplnx/DataStructure/NeighborList.cpp index ab85414be8..c6a3236cd1 100644 --- a/src/simplnx/DataStructure/NeighborList.cpp +++ b/src/simplnx/DataStructure/NeighborList.cpp @@ -397,7 +397,7 @@ std::vector::VectorType> NeighborList::getVectors() { usize count = m_Store->size(); std::vector::VectorType> vectors(count); - for (usize i = 0; i < count; i++) + for(usize i = 0; i < count; i++) { vectors[i] = m_Store->at(i); } diff --git a/src/simplnx/DataStructure/StringArray.hpp b/src/simplnx/DataStructure/StringArray.hpp index 68d9f97d70..8b7546c0c5 100644 --- a/src/simplnx/DataStructure/StringArray.hpp +++ b/src/simplnx/DataStructure/StringArray.hpp @@ -1,7 +1,7 @@ #pragma once -#include "simplnx/DataStructure/IArray.hpp" #include "simplnx/DataStructure/AbstractStringStore.hpp" +#include "simplnx/DataStructure/IArray.hpp" #include diff --git a/src/simplnx/DataStructure/StringStore.cpp b/src/simplnx/DataStructure/StringStore.cpp index 291b2791b0..230abd602b 100644 --- a/src/simplnx/DataStructure/StringStore.cpp +++ b/src/simplnx/DataStructure/StringStore.cpp @@ -13,7 +13,7 @@ StringStore::StringStore(const std::vector& strings) { usize count = strings.size(); m_xarray.resize({count}); - for (usize i = 0; i < count; i++) + for(usize i = 0; i < count; i++) { m_xarray.flat(i) = strings[i]; } @@ -35,7 +35,7 @@ void StringStore::resize(usize count) { usize oldSize = size(); auto data = xt::xarray::from_shape({count}); - for (usize i = 0; i < count && i < oldSize; i++) + for(usize i = 0; i < count && i < oldSize; i++) { data.flat(i) = m_xarray.flat(i); } @@ -58,7 +58,7 @@ AbstractStringStore& StringStore::operator=(const std::vector& valu { usize count = values.size(); m_xarray = xt::xarray::from_shape({count}); - for (usize i = 0; i < count; i++) + for(usize i = 0; i < count; i++) { m_xarray.flat(i) = values[i]; }