mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-06 09:17:42 +02:00
Some useful aliases for RBA as in-place operators do not really do what they are supposed to in Ruby.
This commit is contained in:
@@ -425,7 +425,7 @@ Class<db::EdgePairs> decl_EdgePairs (decl_dbShapeCollection, "db", "EdgePairs",
|
||||
"\n"
|
||||
"This method has been added in version 0.26."
|
||||
) +
|
||||
method ("+", &db::EdgePairs::operator+, gsi::arg ("other"),
|
||||
method ("+|join", &db::EdgePairs::operator+, gsi::arg ("other"),
|
||||
"@brief Returns the combined edge pair collection of self and the other one\n"
|
||||
"\n"
|
||||
"@return The resulting edge pair collection\n"
|
||||
@@ -433,8 +433,9 @@ Class<db::EdgePairs> decl_EdgePairs (decl_dbShapeCollection, "db", "EdgePairs",
|
||||
"This operator adds the edge pairs of the other collection to self and returns a new combined set.\n"
|
||||
"\n"
|
||||
"This method has been introduced in version 0.24.\n"
|
||||
) +
|
||||
method ("+=", &db::EdgePairs::operator+=, gsi::arg ("other"),
|
||||
"The 'join' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("+=|join_with", &db::EdgePairs::operator+=, gsi::arg ("other"),
|
||||
"@brief Adds the edge pairs of the other edge pair collection to self\n"
|
||||
"\n"
|
||||
"@return The edge pair collection after modification (self)\n"
|
||||
@@ -442,7 +443,12 @@ Class<db::EdgePairs> decl_EdgePairs (decl_dbShapeCollection, "db", "EdgePairs",
|
||||
"This operator adds the edge pairs of the other collection to self.\n"
|
||||
"\n"
|
||||
"This method has been introduced in version 0.24.\n"
|
||||
) +
|
||||
"\n"
|
||||
"Note that in Ruby, the '+=' operator actually does not exist, but is emulated by '+' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'join_with' instead.\n"
|
||||
"\n"
|
||||
"The 'join_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method_ext ("move", &move_p, gsi::arg ("p"),
|
||||
"@brief Moves the edge pair collection\n"
|
||||
"\n"
|
||||
|
||||
+80
-34
@@ -769,7 +769,7 @@ Class<db::Edges> decl_Edges (decl_dbShapeCollection, "db", "Edges",
|
||||
"Crossing edges are not merged.\n"
|
||||
"In contrast to \\merge, this method does not modify the edge collection but returns a merged copy.\n"
|
||||
) +
|
||||
method ("&", (db::Edges (db::Edges::*)(const db::Edges &) const) &db::Edges::operator&, gsi::arg ("other"),
|
||||
method ("&|and", (db::Edges (db::Edges::*)(const db::Edges &) const) &db::Edges::operator&, gsi::arg ("other"),
|
||||
"@brief Returns the boolean AND between self and the other edge collection\n"
|
||||
"\n"
|
||||
"@return The result of the boolean AND operation\n"
|
||||
@@ -777,17 +777,24 @@ Class<db::Edges> decl_Edges (decl_dbShapeCollection, "db", "Edges",
|
||||
"The boolean AND operation will return all parts of the edges in this collection which "
|
||||
"are coincident with parts of the edges in the other collection."
|
||||
"The result will be a merged edge collection.\n"
|
||||
) +
|
||||
method ("&=", (db::Edges &(db::Edges::*)(const db::Edges &)) &db::Edges::operator&=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean AND between self and the other edge collection\n"
|
||||
"\n"
|
||||
"The 'and' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("&=|and_with", (db::Edges &(db::Edges::*)(const db::Edges &)) &db::Edges::operator&=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean AND between self and the other edge collection in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The edge collection after modification (self)\n"
|
||||
"\n"
|
||||
"The boolean AND operation will return all parts of the edges in this collection which "
|
||||
"are coincident with parts of the edges in the other collection."
|
||||
"The result will be a merged edge collection.\n"
|
||||
) +
|
||||
method ("&", (db::Edges (db::Edges::*)(const db::Region &) const) &db::Edges::operator&, gsi::arg ("other"),
|
||||
"\n"
|
||||
"Note that in Ruby, the '&=' operator actually does not exist, but is emulated by '&' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'and_with' instead.\n"
|
||||
"\n"
|
||||
"The 'and_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("&|and", (db::Edges (db::Edges::*)(const db::Region &) const) &db::Edges::operator&, gsi::arg ("other"),
|
||||
"@brief Returns the parts of the edges inside the given region\n"
|
||||
"\n"
|
||||
"@return The edges inside the given region\n"
|
||||
@@ -798,9 +805,10 @@ Class<db::Edges> decl_Edges (decl_dbShapeCollection, "db", "Edges",
|
||||
"edges intersect.\n"
|
||||
"\n"
|
||||
"This method has been introduced in version 0.24."
|
||||
) +
|
||||
method ("&=", (db::Edges &(db::Edges::*)(const db::Region &)) &db::Edges::operator&=, gsi::arg ("other"),
|
||||
"@brief Selects the parts of the edges inside the given region\n"
|
||||
"The 'and' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("&=|and_with", (db::Edges &(db::Edges::*)(const db::Region &)) &db::Edges::operator&=, gsi::arg ("other"),
|
||||
"@brief Selects the parts of the edges inside the given region in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The edge collection after modification (self)\n"
|
||||
"\n"
|
||||
@@ -810,8 +818,13 @@ Class<db::Edges> decl_Edges (decl_dbShapeCollection, "db", "Edges",
|
||||
"edges intersect.\n"
|
||||
"\n"
|
||||
"This method has been introduced in version 0.24."
|
||||
) +
|
||||
method ("-", (db::Edges (db::Edges::*)(const db::Edges &) const) &db::Edges::operator-, gsi::arg ("other"),
|
||||
"\n"
|
||||
"Note that in Ruby, the '&=' operator actually does not exist, but is emulated by '&' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'and_with' instead.\n"
|
||||
"\n"
|
||||
"The 'and_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("-|not", (db::Edges (db::Edges::*)(const db::Edges &) const) &db::Edges::operator-, gsi::arg ("other"),
|
||||
"@brief Returns the boolean NOT between self and the other edge collection\n"
|
||||
"\n"
|
||||
"@return The result of the boolean NOT operation\n"
|
||||
@@ -819,17 +832,24 @@ Class<db::Edges> decl_Edges (decl_dbShapeCollection, "db", "Edges",
|
||||
"The boolean NOT operation will return all parts of the edges in this collection which "
|
||||
"are not coincident with parts of the edges in the other collection."
|
||||
"The result will be a merged edge collection.\n"
|
||||
) +
|
||||
method ("-=", (db::Edges &(db::Edges::*)(const db::Edges &)) &db::Edges::operator-=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean NOT between self and the other edge collection\n"
|
||||
"\n"
|
||||
"The 'not' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("-=|not_with", (db::Edges &(db::Edges::*)(const db::Edges &)) &db::Edges::operator-=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean NOT between self and the other edge collection in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The edge collection after modification (self)\n"
|
||||
"\n"
|
||||
"The boolean NOT operation will return all parts of the edges in this collection which "
|
||||
"are not coincident with parts of the edges in the other collection."
|
||||
"The result will be a merged edge collection.\n"
|
||||
) +
|
||||
method ("-", (db::Edges (db::Edges::*)(const db::Region &) const) &db::Edges::operator-, gsi::arg ("other"),
|
||||
"\n"
|
||||
"Note that in Ruby, the '-=' operator actually does not exist, but is emulated by '-' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'not_with' instead.\n"
|
||||
"\n"
|
||||
"The 'not_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("-|not", (db::Edges (db::Edges::*)(const db::Region &) const) &db::Edges::operator-, gsi::arg ("other"),
|
||||
"@brief Returns the parts of the edges outside the given region\n"
|
||||
"\n"
|
||||
"@return The edges outside the given region\n"
|
||||
@@ -840,9 +860,10 @@ Class<db::Edges> decl_Edges (decl_dbShapeCollection, "db", "Edges",
|
||||
"edges intersect.\n"
|
||||
"\n"
|
||||
"This method has been introduced in version 0.24."
|
||||
) +
|
||||
method ("-=", (db::Edges &(db::Edges::*)(const db::Region &)) &db::Edges::operator-=, gsi::arg ("other"),
|
||||
"@brief Selects the parts of the edges outside the given region\n"
|
||||
"The 'not' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("-=|not_with", (db::Edges &(db::Edges::*)(const db::Region &)) &db::Edges::operator-=, gsi::arg ("other"),
|
||||
"@brief Selects the parts of the edges outside the given region in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The edge collection after modification (self)\n"
|
||||
"\n"
|
||||
@@ -851,8 +872,12 @@ Class<db::Edges> decl_Edges (decl_dbShapeCollection, "db", "Edges",
|
||||
"As a side effect, the edges are made non-intersecting by introducing cut points where\n"
|
||||
"edges intersect.\n"
|
||||
"\n"
|
||||
"Note that in Ruby, the '-=' operator actually does not exist, but is emulated by '-' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'not_with' instead.\n"
|
||||
"\n"
|
||||
"This method has been introduced in version 0.24."
|
||||
) +
|
||||
"The 'not_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method_ext ("andnot", &andnot_with_edges, gsi::arg ("other"),
|
||||
"@brief Returns the boolean AND and NOT between self and the other edge set\n"
|
||||
"\n"
|
||||
@@ -873,7 +898,7 @@ Class<db::Edges> decl_Edges (decl_dbShapeCollection, "db", "Edges",
|
||||
"\n"
|
||||
"This method has been added in version 0.28.\n"
|
||||
) +
|
||||
method ("^", &db::Edges::operator^, gsi::arg ("other"),
|
||||
method ("^|xor", &db::Edges::operator^, gsi::arg ("other"),
|
||||
"@brief Returns the boolean XOR between self and the other edge collection\n"
|
||||
"\n"
|
||||
"@return The result of the boolean XOR operation\n"
|
||||
@@ -881,48 +906,69 @@ Class<db::Edges> decl_Edges (decl_dbShapeCollection, "db", "Edges",
|
||||
"The boolean XOR operation will return all parts of the edges in this and the other collection except "
|
||||
"the parts where both are coincident.\n"
|
||||
"The result will be a merged edge collection.\n"
|
||||
) +
|
||||
method ("^=", &db::Edges::operator^=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean XOR between self and the other edge collection\n"
|
||||
"\n"
|
||||
"The 'xor' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("^=|xor_with", &db::Edges::operator^=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean XOR between self and the other edge collection in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The edge collection after modification (self)\n"
|
||||
"\n"
|
||||
"The boolean XOR operation will return all parts of the edges in this and the other collection except "
|
||||
"the parts where both are coincident.\n"
|
||||
"The result will be a merged edge collection.\n"
|
||||
) +
|
||||
method ("\\|", &db::Edges::operator|, gsi::arg ("other"),
|
||||
"\n"
|
||||
"Note that in Ruby, the '^=' operator actually does not exist, but is emulated by '^' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'xor_with' instead.\n"
|
||||
"\n"
|
||||
"The 'xor_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("\\||or", &db::Edges::operator|, gsi::arg ("other"),
|
||||
"@brief Returns the boolean OR between self and the other edge set\n"
|
||||
"\n"
|
||||
"@return The resulting edge collection\n"
|
||||
"\n"
|
||||
"The boolean OR is implemented by merging the edges of both edge sets. To simply join the edge collections "
|
||||
"without merging, the + operator is more efficient."
|
||||
) +
|
||||
method ("\\|=", &db::Edges::operator|=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean OR between self and the other edge set\n"
|
||||
"\n"
|
||||
"The 'or' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("\\|=|or_with", &db::Edges::operator|=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean OR between self and the other edge set in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The edge collection after modification (self)\n"
|
||||
"\n"
|
||||
"The boolean OR is implemented by merging the edges of both edge sets. To simply join the edge collections "
|
||||
"without merging, the + operator is more efficient."
|
||||
) +
|
||||
method ("+", &db::Edges::operator+, gsi::arg ("other"),
|
||||
"\n"
|
||||
"Note that in Ruby, the '|=' operator actually does not exist, but is emulated by '|' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'or_with' instead.\n"
|
||||
"\n"
|
||||
"The 'or_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("+|join", &db::Edges::operator+, gsi::arg ("other"),
|
||||
"@brief Returns the combined edge set of self and the other one\n"
|
||||
"\n"
|
||||
"@return The resulting edge set\n"
|
||||
"\n"
|
||||
"This operator adds the edges of the other edge set to self and returns a new combined edge set. "
|
||||
"This usually creates unmerged edge sets and edges may overlap. Use \\merge if you want to ensure the result edge set is merged.\n"
|
||||
) +
|
||||
method ("+=", &db::Edges::operator+=, gsi::arg ("other"),
|
||||
"\n"
|
||||
"The 'join' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("+=|join_with", &db::Edges::operator+=, gsi::arg ("other"),
|
||||
"@brief Adds the edges of the other edge collection to self\n"
|
||||
"\n"
|
||||
"@return The edge set after modification (self)\n"
|
||||
"\n"
|
||||
"This operator adds the edges of the other edge set to self. "
|
||||
"This usually creates unmerged edge sets and edges may overlap. Use \\merge if you want to ensure the result edge set is merged.\n"
|
||||
) +
|
||||
"\n"
|
||||
"Note that in Ruby, the '+=' operator actually does not exist, but is emulated by '+' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'join_with' instead.\n"
|
||||
"\n"
|
||||
"The 'join_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("interacting", (db::Edges (db::Edges::*) (const db::Edges &) const) &db::Edges::selected_interacting, gsi::arg ("other"),
|
||||
"@brief Returns the edges of this edge collection which overlap or touch edges from the other edge collection\n"
|
||||
"\n"
|
||||
|
||||
@@ -1647,15 +1647,18 @@ Class<db::Region> decl_Region (decl_dbShapeCollection, "db", "Region",
|
||||
"This variant has been introduced in version 0.28.4."
|
||||
) +
|
||||
method ("&=", &db::Region::operator&=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean AND between self and the other region\n"
|
||||
"@brief Performs the boolean AND between self and the other region in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The region after modification (self)\n"
|
||||
"\n"
|
||||
"This method will compute the boolean AND (intersection) between two regions. "
|
||||
"The result is often but not necessarily always merged.\n"
|
||||
"\n"
|
||||
"Note that in Ruby, the '&=' operator actually does not exist, but is emulated by '&' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'and_with' instead."
|
||||
) +
|
||||
method ("and_with", &db::Region::bool_and_with, gsi::arg ("other"), gsi::arg ("property_constraint", db::IgnoreProperties, "IgnoreProperties"),
|
||||
"@brief Performs the boolean AND between self and the other region\n"
|
||||
"@brief Performs the boolean AND between self and the other region in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The region after modification (self)\n"
|
||||
"\n"
|
||||
@@ -1687,15 +1690,18 @@ Class<db::Region> decl_Region (decl_dbShapeCollection, "db", "Region",
|
||||
"This variant has been introduced in version 0.28.4."
|
||||
) +
|
||||
method ("-=", &db::Region::operator-=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean NOT between self and the other region\n"
|
||||
"@brief Performs the boolean NOT between self and the other region in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The region after modification (self)\n"
|
||||
"\n"
|
||||
"This method will compute the boolean NOT (intersection) between two regions. "
|
||||
"The result is often but not necessarily always merged.\n"
|
||||
"\n"
|
||||
"Note that in Ruby, the '-=' operator actually does not exist, but is emulated by '-' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'not_with' instead."
|
||||
) +
|
||||
method ("not_with", &db::Region::bool_not_with, gsi::arg ("other"), gsi::arg ("property_constraint", db::IgnoreProperties, "IgnoreProperties"),
|
||||
"@brief Performs the boolean NOT between self and the other region\n"
|
||||
"@brief Performs the boolean NOT between self and the other region in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The region after modification (self)\n"
|
||||
"\n"
|
||||
@@ -1706,53 +1712,74 @@ Class<db::Region> decl_Region (decl_dbShapeCollection, "db", "Region",
|
||||
"\n"
|
||||
"This variant has been introduced in version 0.28.4."
|
||||
) +
|
||||
method ("^", &db::Region::operator^, gsi::arg ("other"),
|
||||
method ("^|xor", &db::Region::operator^, gsi::arg ("other"),
|
||||
"@brief Returns the boolean XOR between self and the other region\n"
|
||||
"\n"
|
||||
"@return The result of the boolean XOR operation\n"
|
||||
"\n"
|
||||
"This method will compute the boolean XOR (intersection) between two regions. "
|
||||
"The result is often but not necessarily always merged.\n"
|
||||
"\n"
|
||||
"The 'xor' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("^=", &db::Region::operator^=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean XOR between self and the other region\n"
|
||||
method ("^=|xor_with", &db::Region::operator^=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean XOR between self and the other region in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The region after modification (self)\n"
|
||||
"\n"
|
||||
"This method will compute the boolean XOR (intersection) between two regions. "
|
||||
"The result is often but not necessarily always merged.\n"
|
||||
"\n"
|
||||
"Note that in Ruby, the '^=' operator actually does not exist, but is emulated by '^' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'xor_with' instead.\n"
|
||||
"\n"
|
||||
"The 'xor_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("\\|", &db::Region::operator|, gsi::arg ("other"),
|
||||
method ("\\||or", &db::Region::operator|, gsi::arg ("other"),
|
||||
"@brief Returns the boolean OR between self and the other region\n"
|
||||
"\n"
|
||||
"@return The resulting region\n"
|
||||
"\n"
|
||||
"The boolean OR is implemented by merging the polygons of both regions. To simply join the regions "
|
||||
"without merging, the + operator is more efficient."
|
||||
"\n"
|
||||
"The 'or' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("\\|=", &db::Region::operator|=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean OR between self and the other region\n"
|
||||
method ("\\|=|or_with", &db::Region::operator|=, gsi::arg ("other"),
|
||||
"@brief Performs the boolean OR between self and the other region in-place (modifying self)\n"
|
||||
"\n"
|
||||
"@return The region after modification (self)\n"
|
||||
"\n"
|
||||
"The boolean OR is implemented by merging the polygons of both regions. To simply join the regions "
|
||||
"without merging, the + operator is more efficient."
|
||||
"\n"
|
||||
"Note that in Ruby, the '|=' operator actually does not exist, but is emulated by '|' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'or_with' instead.\n"
|
||||
"\n"
|
||||
"The 'or_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("+", &db::Region::operator+, gsi::arg ("other"),
|
||||
method ("+|join", &db::Region::operator+, gsi::arg ("other"),
|
||||
"@brief Returns the combined region of self and the other region\n"
|
||||
"\n"
|
||||
"@return The resulting region\n"
|
||||
"\n"
|
||||
"This operator adds the polygons of the other region to self and returns a new combined region. "
|
||||
"This usually creates unmerged regions and polygons may overlap. Use \\merge if you want to ensure the result region is merged.\n"
|
||||
"\n"
|
||||
"The 'join' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("+=", &db::Region::operator+=, gsi::arg ("other"),
|
||||
method ("+=|join_with", &db::Region::operator+=, gsi::arg ("other"),
|
||||
"@brief Adds the polygons of the other region to self\n"
|
||||
"\n"
|
||||
"@return The region after modification (self)\n"
|
||||
"\n"
|
||||
"This operator adds the polygons of the other region to self. "
|
||||
"This usually creates unmerged regions and polygons may overlap. Use \\merge if you want to ensure the result region is merged.\n"
|
||||
"\n"
|
||||
"Note that in Ruby, the '+=' operator actually does not exist, but is emulated by '+' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'join_with' instead.\n"
|
||||
"\n"
|
||||
"The 'join_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("covering", &db::Region::selected_enclosing, gsi::arg ("other"), gsi::arg ("min_count", size_t (1)), gsi::arg ("max_count", size_t (std::numeric_limits<size_t>::max ()), "unlimited"),
|
||||
"@brief Returns the polygons of this region which are completely covering polygons from the other region\n"
|
||||
|
||||
@@ -276,20 +276,27 @@ Class<db::Texts> decl_Texts (decl_dbShapeCollection, "db", "Texts",
|
||||
method_ext ("data_id", &id,
|
||||
"@brief Returns the data ID (a unique identifier for the underlying data storage)\n"
|
||||
) +
|
||||
method ("+", &db::Texts::operator+, gsi::arg ("other"),
|
||||
method ("+|join", &db::Texts::operator+, gsi::arg ("other"),
|
||||
"@brief Returns the combined text collection of self and the other one\n"
|
||||
"\n"
|
||||
"@return The resulting text collection\n"
|
||||
"\n"
|
||||
"This operator adds the texts of the other collection to self and returns a new combined set.\n"
|
||||
) +
|
||||
method ("+=", &db::Texts::operator+=, gsi::arg ("other"),
|
||||
"\n"
|
||||
"The 'join' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method ("+=|join_with", &db::Texts::operator+=, gsi::arg ("other"),
|
||||
"@brief Adds the texts of the other text collection to self\n"
|
||||
"\n"
|
||||
"@return The text collection after modification (self)\n"
|
||||
"\n"
|
||||
"This operator adds the texts of the other collection to self.\n"
|
||||
) +
|
||||
"\n"
|
||||
"Note that in Ruby, the '+=' operator actually does not exist, but is emulated by '+' followed by an assignment. "
|
||||
"This is less efficient than the in-place operation, so it is recommended to use 'join_with' instead.\n"
|
||||
"\n"
|
||||
"The 'join_with' alias has been introduced in version 0.28.12."
|
||||
) +
|
||||
method_ext ("move", &move_p, gsi::arg ("p"),
|
||||
"@brief Moves the text collection\n"
|
||||
"\n"
|
||||
|
||||
Reference in New Issue
Block a user