XdmfTopology.hpp 1.42 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 20

public:

	XdmfNewMacro(XdmfTopology);

21 22
	virtual void accept(boost::shared_ptr<XdmfVisitor> visitor) const;

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

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

37
	virtual std::string printSelf() const;
38 39

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

protected:

	XdmfTopology();
	virtual ~XdmfTopology();

private:

53 54
	XdmfTopology(const XdmfTopology & topology);  // Not implemented.
	void operator=(const XdmfTopology & topology);  // Not implemented.
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
55

56
	int mNumberElements;
57
	XdmfTopologyType mTopologyType;
Ken Leiter (Civ's avatar
Ken Leiter (Civ committed
58 59 60
};

#endif /* XDMFTOPOLOGY_HPP_ */