36 #ifndef MAP_VECTOR_HPP 37 #define MAP_VECTOR_HPP 39 #include <lifev/core/LifeV.hpp> 60 template<
typename MapType>
163 void showMe ( std::ostream& output = std::cout)
const;
194 template<
typename MapType>
200 template<
typename MapType>
206 template<
typename MapType>
212 template<
typename MapType>
217 M_vector.push_back (map1);
218 M_vector.push_back (map2);
221 template<
typename MapType>
226 M_vector.push_back (map);
229 template<
typename MapType>
238 template<
typename MapType>
243 M_vector = vector.M_vector;
247 template<
typename MapType>
252 ASSERT ( i < M_vector.size() ,
"Index out of bound, no map to access (Read only)");
256 template<
typename MapType>
261 ASSERT ( i < M_vector.size() ,
"Index out of bound, no map to access (Read write)");
265 template<
typename MapType>
277 template<
typename MapType>
282 return M_vector.size();
285 template<
typename MapType>
290 ASSERT ( i < M_vector.size() ,
"Index out of bound, no map to return");
291 return M_vector[i].mapSize();
294 template<
typename MapType>
299 output <<
" Number of map stored : " << M_vector.size() << std::endl;
302 template<
typename MapType>
307 ASSERT ( M_vector.size() != 0 ,
"No map to concatenate for the total map");
310 for (UInt i (1); i < M_vector.size(); ++i)
312 total += M_vector[i];
317 template<
typename MapType>
322 M_vector.push_back (newMap);
329 template<
typename MapType>
334 ASSERT ( i < M_vector.size() ,
"Index out of bound, no map to return");
MapVector(const map_Type &map1, const map_Type &map2)
Constructor with two maps.
UInt nbMap() const
Returns the number of maps stored.
void addMap(const map_Type &newMap)
Add a map into this vector (at the end of the vector)
std::vector< map_Type > M_vector
MapVector(const map_Type &map)
Constructor with one map.
const map_Type & operator[](UInt i) const
Access to the ith map (read only)
MapVector< map_Type > operator|(const map_Type &map) const
Juxtaposition operator for a vector of maps and a map.
MapVector< map_Type > operator=(const MapVector< map_Type > &vector)
Assignement operator.
map_Type totalMap() const
Return the map made by concatenating all the maps of the vector.
MapVector()
Empty constructor.
void updateInverseJacobian(const UInt &iQuadPt)
MapType map_Type
Type of the map.
void showMe(std::ostream &output=std::cout) const
Display internal state.
MapVector(const MapVector< map_Type > &otherMapVector)
Copy constructor.
MapVector(const MapVector< map_Type > &vector, const map_Type &map)
Concatenation constructor.
const map_Type & map(const UInt &i) const
Getter for the ith map stored.
This class is used to store maps that will be used for block defined problems.
uint32_type UInt
generic unsigned integer (used mainly for addressing)
map_Type & operator[](UInt i)
Access to the ith map (read-write)
UInt mapSize(UInt i) const
Returns the size of the ith map stored (global number of ids)