mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Improving documentation.
This commit is contained in:
parent
ec266e3e0b
commit
8ebfdc3eb7
2 changed files with 8 additions and 1 deletions
|
|
@ -214,15 +214,20 @@ protected:
|
|||
static BoundingBox bounding_box_complex(std::vector<int32_t> rpn);
|
||||
|
||||
//! Applies DeMorgan's laws to a section of the RPN
|
||||
//! \param start Starting point for token modification
|
||||
//! \param stop Stopping point for token modification
|
||||
static void apply_demorgan(std::vector<int32_t>::iterator start,
|
||||
std::vector<int32_t>::iterator stop);
|
||||
|
||||
//! Removes complement operators from the RPN
|
||||
//! \param rpn The rpn to remove complement operators from.
|
||||
static void remove_complement_ops(std::vector<int32_t>& rpn);
|
||||
|
||||
//! Returns the beginning position of a parenthesis block (immediately before
|
||||
//! two surface tokens) in the RPN given a starting position at the end of
|
||||
//! that block (immediately after two surface tokens)
|
||||
//! \param start Starting position of the search
|
||||
//! \param rpn The rpn being searched
|
||||
static std::vector<int32_t>::iterator
|
||||
find_left_parenthesis(std::vector<int32_t>::iterator start,
|
||||
const std::vector<int32_t>& rpn);
|
||||
|
|
@ -230,6 +235,8 @@ protected:
|
|||
//! Returns the ending position of a parenthesis block (immediately after two
|
||||
//! operator tokens) in the RPN given a starting position at the beginning of
|
||||
//! that block (immediately before two surface tokens)
|
||||
//! \param start Starting position of the search
|
||||
//! \param rpn The rpn being searched
|
||||
static std::vector<int32_t>::iterator
|
||||
find_right_parenthesis(std::vector<int32_t>::iterator start,
|
||||
const std::vector<int32_t>& rpn);
|
||||
|
|
|
|||
|
|
@ -601,7 +601,7 @@ BoundingBox CSGCell::bounding_box_simple() const {
|
|||
void CSGCell::apply_demorgan(std::vector<int32_t>::iterator start,
|
||||
std::vector<int32_t>::iterator stop)
|
||||
{
|
||||
while(start < stop) {
|
||||
while (start < stop) {
|
||||
if (*start < OP_UNION) { *start *= -1; }
|
||||
else if (*start == OP_UNION) { *start = OP_INTERSECTION; }
|
||||
else if (*start == OP_INTERSECTION) { *start = OP_UNION; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue