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 271 of file LineSegment.C.

272{
273 Point p0;
274 dataLoad(stream, p0, context);
275 Point p1;
276 dataLoad(stream, p1, context);
277 l.set(p0, p1);
278}
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 264 of file LineSegment.C.

265{
266 dataStore(stream, l.start(), context);
267 dataStore(stream, l.end(), context);
268}
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 PenetrationLocator::backup(), dataStore(), dataStore< Moose::LibtorchArtificialNeuralNet >(), RedistributeProperties::redistribute(), and ReporterState< T >::storeInternal().

◆ to_json()

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

Definition at line 281 of file LineSegment.C.

282{
283 to_json(json["start"], l.start());
284 to_json(json["end"], l.end());
285}
void to_json(nlohmann::json &json, const LineSegment &l)

Referenced by to_json().