https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
LineSegment.C File Reference

Go to the source code of this file.

Functions

void dataStore (std::ostream &stream, LineSegment &l, void *context)
 
void dataLoad (std::istream &stream, LineSegment &l, void *context)
 
void to_json (nlohmann::json &json, const LineSegment &l)
 

Function Documentation

◆ dataLoad()

void dataLoad ( std::istream &  stream,
LineSegment l,
void *  context 
)

Definition at line 275 of file LineSegment.C.

276{
277 Point p0;
278 dataLoad(stream, p0, context);
279 Point p1;
280 dataLoad(stream, p1, context);
281 l.set(p0, p1);
282}
void dataLoad(std::istream &stream, LineSegment &l, void *context)
void set(const Point &p0, const Point &p1)
Sets the points on the line segment.

Referenced by dataLoad(), dataLoad< Moose::LibtorchArtificialNeuralNet >(), ReporterState< T >::loadInternal(), RestartableDataReader::readHeader(), and RedistributeProperties::redistribute().

◆ dataStore()

void dataStore ( std::ostream &  stream,
LineSegment l,
void *  context 
)

Definition at line 268 of file LineSegment.C.

269{
270 dataStore(stream, l.start(), context);
271 dataStore(stream, l.end(), context);
272}
void dataStore(std::ostream &stream, LineSegment &l, void *context)
const Point & end() const
Ending of the line segment.
Definition LineSegment.h:90
const Point & start() const
Beginning of the line segment.
Definition LineSegment.h:85

Referenced by dataStore(), dataStore< Moose::LibtorchArtificialNeuralNet >(), RedistributeProperties::redistribute(), and ReporterState< T >::storeInternal().

◆ to_json()

void to_json ( nlohmann::json &  json,
const LineSegment l 
)

Definition at line 285 of file LineSegment.C.

286{
287 to_json(json["start"], l.start());
288 to_json(json["end"], l.end());
289}
void to_json(nlohmann::json &json, const LineSegment &l)

Referenced by to_json().