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.
List of all members
Kratos::partitioned_vector< TVectorType > Class Template Reference

Short class definition. More...

#include <partitioned_vector.h>

Collaboration diagram for Kratos::partitioned_vector< TVectorType >:

Public Member Functions

Life Cycle
 partitioned_vector ()
 Default constructor. More...
 
template<class TSizesVectorType >
 partitioned_vector (TSizesVectorType const &PartitionSizes)
 
Operators
const_reference operator() (size_type i) const
 
reference operator() (size_type i)
 
const_reference operator[] (size_type i) const
 
reference operator[] (size_type i)
 
partitioned_vectoroperator= (const partitioned_vector &v)
 
Operations
template<class TSizesVectorType >
void resize (TSizesVectorType const &PartitionSizes)
 
void swap (partitioned_vector &v)
 
Access
size_type size () const
 
const VectorsContainerTypedata () const
 
VectorsContainerTypedata ()
 
const VectorTypepartition (size_type i) const
 
VectorTypepartition (size_type i)
 
const VectorTypepartition_index (size_type i) const
 

Type Definitions

typedef std::size_t size_type
 
typedef TVectorType VectorType
 
typedef VectorType::value_type value_type
 
typedef value_typereference
 
typedef value_type const & const_reference
 
typedef std::vector< VectorTypeVectorsContainerType
 
typedef std::vector< size_typePartitionsIndicesVectorType
 
 KRATOS_CLASS_POINTER_DEFINITION (partitioned_vector)
 Pointer definition of partitioned_vector. More...
 

Detailed Description

template<class TVectorType>
class Kratos::partitioned_vector< TVectorType >

Short class definition.

Detail class definition.

Member Typedef Documentation

◆ const_reference

template<class TVectorType >
typedef value_type const& Kratos::partitioned_vector< TVectorType >::const_reference

◆ PartitionsIndicesVectorType

template<class TVectorType >
typedef std::vector<size_type> Kratos::partitioned_vector< TVectorType >::PartitionsIndicesVectorType

◆ reference

template<class TVectorType >
typedef value_type& Kratos::partitioned_vector< TVectorType >::reference

◆ size_type

template<class TVectorType >
typedef std::size_t Kratos::partitioned_vector< TVectorType >::size_type

◆ value_type

template<class TVectorType >
typedef VectorType::value_type Kratos::partitioned_vector< TVectorType >::value_type

◆ VectorsContainerType

template<class TVectorType >
typedef std::vector<VectorType> Kratos::partitioned_vector< TVectorType >::VectorsContainerType

◆ VectorType

template<class TVectorType >
typedef TVectorType Kratos::partitioned_vector< TVectorType >::VectorType

Constructor & Destructor Documentation

◆ partitioned_vector() [1/2]

template<class TVectorType >
Kratos::partitioned_vector< TVectorType >::partitioned_vector ( )
inline

Default constructor.

◆ partitioned_vector() [2/2]

template<class TVectorType >
template<class TSizesVectorType >
Kratos::partitioned_vector< TVectorType >::partitioned_vector ( TSizesVectorType const &  PartitionSizes)
inline

Member Function Documentation

◆ data() [1/2]

template<class TVectorType >
VectorsContainerType& Kratos::partitioned_vector< TVectorType >::data ( )
inline

◆ data() [2/2]

template<class TVectorType >
const VectorsContainerType& Kratos::partitioned_vector< TVectorType >::data ( ) const
inline

◆ KRATOS_CLASS_POINTER_DEFINITION()

template<class TVectorType >
Kratos::partitioned_vector< TVectorType >::KRATOS_CLASS_POINTER_DEFINITION ( partitioned_vector< TVectorType >  )

Pointer definition of partitioned_vector.

◆ operator()() [1/2]

template<class TVectorType >
reference Kratos::partitioned_vector< TVectorType >::operator() ( size_type  i)
inline

◆ operator()() [2/2]

template<class TVectorType >
const_reference Kratos::partitioned_vector< TVectorType >::operator() ( size_type  i) const
inline

◆ operator=()

template<class TVectorType >
partitioned_vector& Kratos::partitioned_vector< TVectorType >::operator= ( const partitioned_vector< TVectorType > &  v)
inline

◆ operator[]() [1/2]

template<class TVectorType >
reference Kratos::partitioned_vector< TVectorType >::operator[] ( size_type  i)
inline

◆ operator[]() [2/2]

template<class TVectorType >
const_reference Kratos::partitioned_vector< TVectorType >::operator[] ( size_type  i) const
inline

◆ partition() [1/2]

template<class TVectorType >
VectorType& Kratos::partitioned_vector< TVectorType >::partition ( size_type  i)
inline

◆ partition() [2/2]

template<class TVectorType >
const VectorType& Kratos::partitioned_vector< TVectorType >::partition ( size_type  i) const
inline

◆ partition_index()

template<class TVectorType >
const VectorType& Kratos::partitioned_vector< TVectorType >::partition_index ( size_type  i) const
inline

◆ resize()

template<class TVectorType >
template<class TSizesVectorType >
void Kratos::partitioned_vector< TVectorType >::resize ( TSizesVectorType const &  PartitionSizes)
inline

◆ size()

template<class TVectorType >
size_type Kratos::partitioned_vector< TVectorType >::size ( ) const
inline

◆ swap()

template<class TVectorType >
void Kratos::partitioned_vector< TVectorType >::swap ( partitioned_vector< TVectorType > &  v)
inline

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