HyperHDG
|
Class for saving some (abstract) data per hyperedge. More...
#include <hy_data_container.hxx>
Public Types | |
typedef data_t | value_type |
Defines the return value of the class. More... | |
Public Member Functions | |
HyDataContainer (const constructor_value_type n_hyEdges) | |
Construct a topology from a given filename. More... | |
value_type & | operator[] (const hyEdge_index_t index) |
Get data of hyperedge of given index. More... | |
value_type & | get_hyEdge (const hyEdge_index_t index) |
Get data of hyperedge of given index. More... | |
Public Attributes | |
decltype(std::declval< vectorT >().size()) typedef | constructor_value_type |
Defines the value type of input argument for standard constructor. More... | |
Private Attributes | |
vectorT | data_container |
The internal overall data container which holds all data of a hypergraph's hyperedges. More... | |
Class for saving some (abstract) data per hyperedge.
For parabolic PDEs, for example, it might be necessary to save some data of the old time step. This data might be related to hypernodes and therefore be saved in a global vector that is administrated by the HypernodeFactory, or it might be related to hypernodes and therefore be administrated by the HyDataContainer.
data_t | The class name of the data which is saved per hyperedge. |
vectorT | Data structure in which the datas are stored. Defaults to std::vector. |
hyEdge_index_t | Index type which is used to identify entries in this data structure. |
typedef data_t HyDataContainer< data_t, vectorT, hyEdge_index_t >::value_type |
Defines the return value of the class.
|
inline |
Construct a topology from a given filename.
n_hyEdges | Number of hyperedges. |
|
inline |
Get data of hyperedge of given index.
index | The index of the hyperedge whose data is to be returned. |
data | The data of the selected hyperedge. |
|
inline |
Get data of hyperedge of given index.
index | The index of the hyperedge whose data is to be returned. |
data | The data of the selected hyperedge. |
decltype(std::declval<vectorT>().size()) typedef HyDataContainer< data_t, vectorT, hyEdge_index_t >::constructor_value_type |
Defines the value type of input argument for standard constructor.
|
private |
The internal overall data container which holds all data of a hypergraph's hyperedges.