Updates will be applied April 15th at 12pm EDT (UTC-0400). GitLab could be a little slow between 12 - 12:45pm EDT.

XdmfTopology.hpp 1.36 KB
Newer Older
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
1 2 3
#ifndef XDMFTOPOLOGY_HPP_
#define XDMFTOPOLOGY_HPP_

4
// Includes
5
#include "XdmfDataItem.hpp"
6
#include "XdmfTopologyType.hpp"
7

8 9 10 11 12 13 14
/**
 * @brief Handles the connectivity information in an XdmfGrid.
 *
 * XdmfTopology is a required part of an XdmfGrid.  It stores the connectivty information
 * between all points contained in an XdmfGrid.  XdmfTopology contains an XdmfTopologyType property
 * which should be set that specifies the element type stored.
 */
15
class XdmfTopology : public XdmfDataItem {
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
16 17 18 19

public:

	XdmfNewMacro(XdmfTopology);
20
	LOKI_DEFINE_VISITABLE(XdmfTopology, XdmfDataItem)
21

22 23 24 25 26
	/**
	 * Get the number of elements this Topology contains.
	 *
	 * @return int of number elements in the Topology.
	 */
27
	unsigned int getNumberElements() const;
28

29
	/**
30
	 * Get the XdmfTopologyType associated with this topology.
31
	 *
32
	 * @return XdmfTopologyType of the topology.
33
	 */
34
	XdmfTopologyType getTopologyType() const;
35

36
	/**
37
	 * Set the XdmfTopologyType associated with this topology.
38
	 *
39
	 * @param topologyType the XdmfTopologyType to set.
40
	 */
41
	void setTopologyType(const XdmfTopologyType & topologyType);
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
42 43 44 45 46 47 48 49

protected:

	XdmfTopology();
	virtual ~XdmfTopology();

private:

50 51
	XdmfTopology(const XdmfTopology & topology);  // Not implemented.
	void operator=(const XdmfTopology & topology);  // Not implemented.
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
52

53
	int mNumberElements;
54
	XdmfTopologyType mTopologyType;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
55 56 57
};

#endif /* XDMFTOPOLOGY_HPP_ */