KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
Public Types | Public Member Functions | Public Attributes | List of all members
Kratos::ModelPartHelperUtils::SetReduction< TDataType > Class Template Reference
Collaboration diagram for Kratos::ModelPartHelperUtils::SetReduction< TDataType >:

Public Types

using return_type = std::set< TDataType >
 
using value_type = TDataType
 

Public Member Functions

return_type GetValue () const
 access to reduced value More...
 
void LocalReduce (const value_type &rValue)
 NON-THREADSAFE (fast) value of reduction, to be used within a single thread. More...
 
void ThreadSafeReduce (SetReduction< TDataType > &rOther)
 THREADSAFE (needs some sort of lock guard) reduction, to be used to sync threads. More...
 

Public Attributes

return_type mValue
 

Member Typedef Documentation

◆ return_type

template<class TDataType >
using Kratos::ModelPartHelperUtils::SetReduction< TDataType >::return_type = std::set<TDataType>

◆ value_type

template<class TDataType >
using Kratos::ModelPartHelperUtils::SetReduction< TDataType >::value_type = TDataType

Member Function Documentation

◆ GetValue()

template<class TDataType >
return_type Kratos::ModelPartHelperUtils::SetReduction< TDataType >::GetValue ( ) const
inline

access to reduced value

◆ LocalReduce()

template<class TDataType >
void Kratos::ModelPartHelperUtils::SetReduction< TDataType >::LocalReduce ( const value_type rValue)
inline

NON-THREADSAFE (fast) value of reduction, to be used within a single thread.

◆ ThreadSafeReduce()

template<class TDataType >
void Kratos::ModelPartHelperUtils::SetReduction< TDataType >::ThreadSafeReduce ( SetReduction< TDataType > &  rOther)
inline

THREADSAFE (needs some sort of lock guard) reduction, to be used to sync threads.

Member Data Documentation

◆ mValue

template<class TDataType >
return_type Kratos::ModelPartHelperUtils::SetReduction< TDataType >::mValue

The documentation for this class was generated from the following file: