15#ifndef MD_Vector_included
16#define MD_Vector_included
18#include <MD_Vector_base.h>
26enum Mp_vect_options { VECT_SEQUENTIAL_ITEMS, VECT_REAL_ITEMS, VECT_ALL_ITEMS };
65 explicit operator bool() const noexcept
68 return (ptr_ !=
nullptr);
89 std::shared_ptr<MD_Vector_base> ptr_;
Base class for distributed vectors parallel descriptors.
: This class is an OWN_PTR but the pointed object is shared among multiple
void copy(const MD_Vector_base &)
Constructs an MD_Vector object by copying an existing object.
const MD_Vector_base * operator->() const
MD_Vector & operator=(const MD_Vector &)
Same as attach(src).
const MD_Vector_base & valeur() const
void detach()
Detaches the pointer from the pointed object.
int operator!=(const MD_Vector &) const
Inverse of ==.
int operator==(const MD_Vector &) const
Returns 1 if the structures are identical, 0 otherwise.
void attach(const MD_Vector &)
Detaches the pointer and attaches to the same object as src.