25 template<
class F,
class G>
43 template<
typename T,
typename traits = spaceTraits<T> >
45 static inline uint positionConnection() {
46 return traits::positionConnection();
48 static inline uint boundary() {
49 return traits::boundaryElements();
129 bool pc =
false,
bool boundary =
false,
const uint dim = 2);
142 const std::string& name);
153 const std::string& name);
159 std::string filename_;
174 std::forward_list<std::string> names_;
177 std::unique_ptr<VertexList> vtxList_;
188 const uint dim = 2) {
222 void add(uint a) { counts_ += a; }
269 void add(uint a) { counts_ += a; }
272 void inc() { cntCoords_++; }
333 void add(uint a) { counts_ += a; }
379 const uint count,
const std::string& name,
390 const uint count,
const std::string& name,
401 const uint count,
const std::string& name,
423 std::unique_ptr<const concepts::Formula<Real> > frm_;
DataDXConnections(std::ostream &os, const uint count, VertexList *vtxList=0, const uint dim=2)
void add(uint a)
Increments the counter for the quads or cubes by a.
void write(const int x) const
Writes integer in binary format to the output stream.
void write(const float x) const
Writes a float in binary format to the output stream.
void inc()
Increments cntCoords_ by 1.
DataDXCoordinates(std::ostream &os, const uint count, VertexList *vtxList=0, const uint dim=2)
void add(uint a)
Increments the counter for the quads or cubes by a.
DataDXCounts(VertexList *vtxList=0)
uint counts() const
Returns the number of points.
void add(uint a)
Increments the counter for the points by a.
DataDXData(std::ostream &os, const concepts::ElementFormula< Real > &frm, const uint count, const std::string &name, VertexList *vtxList=0)
DataDXData(std::ostream &os, const concepts::Vector< Real > &solution, const uint count, const std::string &name, VertexList *vtxList=0)
DataDXData(std::ostream &os, const concepts::Formula< Real > &frm, const uint count, const std::string &name, VertexList *vtxList=0)
void write(const float x) const
Writes a float in binary format to the output stream.
void operator()(const concepts::Formula< Real > &frm, const std::string &name)
DataDX(concepts::Space< F > &spc, const std::string filename, bool pc=false, bool boundary=false, const uint dim=2)
DataDX(const DataDX< F > &dx)
Copy constructor.
DataDX< F > & operator=(const DataDX< F > &dx)
Assignement operator.
void operator()(const concepts::ElementFormula< F > &frm, const std::string &name)
void operator()(const concepts::Vector< Real > &solution, const std::string &name)
DataDX< Real > drawDataDX(T &spc, const std::string filename, const uint dim=2)
bool spacePosCon(const T &spc)
bool spaceBoundary(const T &spc)