Fix some copy/paste errors with comments and variable names

This commit is contained in:
Kenneth Moreland 2021-12-16 08:20:42 -07:00
parent 4cb392ca24
commit 030ac1fff4
3 changed files with 12 additions and 12 deletions

@ -69,15 +69,15 @@ public:
/// \brief Create a new cell set of the same type as this.
///
/// This method creates a new array that is the same type as this one and
/// This method creates a new cell set that is the same type as this one and
/// returns a new `UncertainCellSet` for it.
///
VTKM_CONT Thisclass NewInstance() const { return Thisclass(this->Superclass::NewInstance()); }
/// \brief Call a functor using the underlying array type.
/// \brief Call a functor using the underlying cell set type.
///
/// `CastAndCall` attempts to cast the held array to a specific value type,
/// and then calls the given functor with the cast array.
/// `CastAndCall` attempts to cast the held cell set to a specific type,
/// and then calls the given functor with the cast cell set.
///
template <typename Functor, typename... Args>
VTKM_CONT void CastAndCall(Functor&& functor, Args&&... args) const
@ -87,7 +87,7 @@ public:
}
};
// Defined here to avoid circular dependencies between UnknownArrayHandle and UncertainArrayHandle.
// Defined here to avoid circular dependencies between UnknownCellSet and UncertainCellSet.
template <typename NewCellSetList>
VTKM_CONT vtkm::cont::UncertainCellSet<NewCellSetList> UnknownCellSet::ResetCellSetList(
NewCellSetList) const
@ -154,16 +154,16 @@ struct UncertainCellSetDeserializeFunctor
{
template <typename CellSetType>
void operator()(CellSetType,
vtkm::cont::UnknownCellSet& unknownArray,
vtkm::cont::UnknownCellSet& unknownCellSet,
const std::string& typeString,
bool& success,
BinaryBuffer& bb) const
{
if (!success && (typeString == vtkm::cont::SerializableTypeString<CellSetType>::Get()))
{
CellSetType knownArray;
vtkmdiy::load(bb, knownArray);
unknownArray = knownArray;
CellSetType knownCellSet;
vtkmdiy::load(bb, knownCellSet);
unknownCellSet = knownCellSet;
success = true;
}
}

@ -67,7 +67,7 @@ namespace internal
void ThrowCastAndCallException(const vtkm::cont::UnknownCellSet& ref, const std::type_info& type)
{
std::ostringstream out;
out << "Could not find appropriate cast for array in CastAndCall.\n"
out << "Could not find appropriate cast for cell set in CastAndCall.\n"
"CellSet: ";
ref.PrintSummary(out);
out << "TypeList: " << vtkm::cont::TypeToString(type) << "\n";

@ -95,7 +95,7 @@ public:
///
VTKM_CONT UnknownCellSet NewInstance() const;
/// \brief Returns the name of the cell set type stored in the array.
/// \brief Returns the name of the cell set type stored in this class.
///
/// Returns an empty string if no cell set is stored.
///
@ -305,7 +305,7 @@ VTKM_CONT void UnknownCellSet::CastAndCallForTypes(Functor&& functor, Args&&...
// vtkm::cont::UnknownCellSet and the arguments of the functor do not match those
// being passed. This is often because it is calling the functor with a CellSet
// type that was not expected. Either add overloads to the functor to accept all
// possible array types or constrain the types tried for the CastAndCall.
// possible cell set types or constrain the types tried for the CastAndCall.
functor(cellSet, args...);
}
},