![]() |
FIMS
v0.8.1
|
Code to create shared pointers to allow for the wrapper functions in R to work correctly so the live objects do not go out of scope. More...
#include <memory>Go to the source code of this file.
Classes | |
| class | SharedInt |
| A class that provides shared ownership of an integer value. More... | |
| class | SharedReal |
| A class that provides shared ownership of an integer value. More... | |
| class | SharedString |
| A class that provides shared ownership of a string. More... | |
| class | SharedBoolean |
| A class that provides shared ownership of a boolean value. More... | |
Typedefs | |
| typedef SharedInt | fims_int |
| An alias for the SharedInt class. | |
| typedef SharedReal | fims_double |
| An alias for the SharedReal class. | |
| typedef SharedString | fims_string |
| An alias for the SharedString class. | |
| typedef SharedBoolean | fims_bool |
| An alias for the SharedBoolean class. | |
Functions | |
| SharedInt | operator+ (const int &lhs, const SharedInt &rhs) |
Overloads the binary addition operator (+) for an integer left-hand side operand. | |
| SharedInt | operator- (const int &lhs, const SharedInt &rhs) |
Overloads the binary subtraction operator (-) for an integer left-hand side operand. | |
| SharedInt | operator* (const int &lhs, const SharedInt &rhs) |
Overloads the binary multiplication operator (*) for an integer left-hand side operand. | |
| SharedInt | operator/ (const int &lhs, const SharedInt &rhs) |
Overloads the binary division operator (/) for an integer left-hand side operand. | |
| bool | operator< (const int &lhs, const SharedInt &rhs) |
Overloads the less-than operator (<) for an integer left-hand side operand. | |
| bool | operator<= (const int &lhs, const SharedInt &rhs) |
Overloads the less-than-or-equal-to operator (<=) for an integer left-hand side operand. | |
| bool | operator> (const int &lhs, const SharedInt &rhs) |
Overloads the greater-than operator (>) for an integer left-hand side operand. | |
| bool | operator>= (const int &lhs, const SharedInt &rhs) |
Overloads the greater-than-or-equal-to operator (>=) for an integer left-hand side operand. | |
| SharedReal | operator+ (const double &lhs, const SharedReal &rhs) |
Overloads the binary addition operator (+) for a double left-hand side operand. | |
| SharedReal | operator- (const double &lhs, const SharedReal &rhs) |
Overloads the binary subtraction operator (-) for a double left-hand side operand. | |
| SharedReal | operator* (const double &lhs, const SharedReal &rhs) |
Overloads the binary multiplication operator (*) for a double left-hand side operand. | |
| SharedReal | operator/ (const double &lhs, const SharedReal &rhs) |
Overloads the binary division operator (/) for a double left-hand side operand. | |
| bool | operator< (const bool &lhs, const SharedBoolean &rhs) |
Overloads the less-than operator (<) for a boolean left-hand side operand. | |
| bool | operator<= (const bool &lhs, const SharedBoolean &rhs) |
Overloads the less-than-or-equal-to operator (<=) for a boolean left-hand side operand. | |
| bool | operator> (const bool &lhs, const SharedBoolean &rhs) |
Overloads the greater-than operator (>) for a boolean left-hand side operand. | |
| bool | operator>= (const bool &lhs, const SharedBoolean &rhs) |
Overloads the greater-than-or-equal-to operator (>=) for a boolean left-hand side operand. | |
Code to create shared pointers to allow for the wrapper functions in R to work correctly so the live objects do not go out of scope.
An alias for the SharedBoolean class.
This alias is used to conform to the fims naming convention, representing a reference-counted boolean.
An alias for the SharedReal class.
This alias is used to conform to the fims naming convention, representing a reference-counted real number (integer).
An alias for the SharedInt class.
This alias is used to conform to the fims naming convention, representing a reference-counted integer.
An alias for the SharedString class.
This alias is used to conform to the fims naming convention, representing a reference-counted string.
| SharedReal operator* | ( | const double & | lhs, |
| const SharedReal & | rhs | ||
| ) |
Overloads the binary multiplication operator (*) for a double left-hand side operand.
Multiplies a double by a SharedReal's value, returning a new SharedReal object with the product.
| lhs | The double value on the left-hand side of the operator. |
| rhs | The SharedReal object on the right-hand side. |
Overloads the binary multiplication operator (*) for an integer left-hand side operand.
Multiplies an integer by a SharedInt's value, returning a new SharedInt object with the product.
| lhs | The integer value on the left-hand side of the operator. |
| rhs | The SharedInt object on the right-hand side. |
SharedInt object containing the product. | SharedReal operator+ | ( | const double & | lhs, |
| const SharedReal & | rhs | ||
| ) |
Overloads the binary addition operator (+) for a double left-hand side operand.
Adds a double to a SharedReal's value, returning a new SharedReal object with the result. This enables expressions like 5.0 + my_shared_real.
| lhs | The double value on the left-hand side of the operator. |
| rhs | The SharedReal object on the right-hand side. |
Overloads the binary addition operator (+) for an integer left-hand side operand.
Adds an integer to a SharedInt's value, returning a new SharedInt object with the result. This enables expressions like 5 + my_shared_int.
| lhs | The integer value on the left-hand side of the operator. |
| rhs | The SharedInt object on the right-hand side. |
SharedInt object containing the sum. | SharedReal operator- | ( | const double & | lhs, |
| const SharedReal & | rhs | ||
| ) |
Overloads the binary subtraction operator (-) for a double left-hand side operand.
Subtracts a SharedReal's value from a double, returning a new SharedReal object with the result. This enables expressions like 10.0 - my_shared_real.
| lhs | The double value on the left-hand side of the operator. |
| rhs | The SharedReal object on the right-hand side. |
Overloads the binary subtraction operator (-) for an integer left-hand side operand.
Subtracts a SharedInt's value from an integer, returning a new SharedInt object with the result. This enables expressions like 10 - my_shared_int.
| lhs | The integer value on the left-hand side of the operator. |
| rhs | The SharedInt object on the right-hand side. |
SharedInt object containing the result of the subtraction. | SharedReal operator/ | ( | const double & | lhs, |
| const SharedReal & | rhs | ||
| ) |
Overloads the binary division operator (/) for a double left-hand side operand.
Divides a double by a SharedReal's value, returning a new SharedReal object with the quotient.
| lhs | The double value on the left-hand side of the operator. |
| rhs | The SharedReal object on the right-hand side. |
Overloads the binary division operator (/) for an integer left-hand side operand.
Divides an integer by a SharedInt's value, returning a new SharedInt object with the quotient.
| lhs | The integer value on the left-hand side of the operator. |
| rhs | The SharedInt object on the right-hand side. |
SharedInt object containing the quotient. Overloads the less-than operator (<) for a boolean left-hand side operand.
Compares a boolean to a SharedBoolean's value.
| lhs | The boolean value on the left-hand side of the operator. |
| rhs | The SharedBoolean object on the right-hand side. |
true if the boolean is less than the SharedBoolean's value, false otherwise. Overloads the less-than operator (<) for an integer left-hand side operand.
Compares an integer to a SharedInt's value.
| lhs | The integer value on the left-hand side of the operator. |
| rhs | The SharedInt object on the right-hand side. |
true if the integer is less than the SharedInt's value, false otherwise. Overloads the less-than-or-equal-to operator (<=) for a boolean left-hand side operand.
Compares a boolean to a SharedBoolean's value.
| lhs | The boolean value on the left-hand side of the operator. |
| rhs | The SharedBoolean object on the right-hand side. |
true if the boolean is less than or equal to the SharedBoolean's value, false otherwise. Overloads the less-than-or-equal-to operator (<=) for an integer left-hand side operand.
Compares an integer to a SharedInt's value.
| lhs | The integer value on the left-hand side of the operator. |
| rhs | The SharedInt object on the right-hand side. |
true if the integer is less than or equal to the SharedInt's value, false otherwise. Overloads the greater-than operator (>) for a boolean left-hand side operand.
Compares a boolean to a SharedBoolean's value.
| lhs | The boolean value on the left-hand side of the operator. |
| rhs | The SharedBoolean object on the right-hand side. |
true if the boolean is greater than the SharedBoolean's value, false otherwise. Overloads the greater-than operator (>) for an integer left-hand side operand.
Compares an integer to a SharedInt's value.
| lhs | The integer value on the left-hand side of the operator. |
| rhs | The SharedInt object on the right-hand side. |
true if the integer is greater than the SharedInt's value, false otherwise. Overloads the greater-than-or-equal-to operator (>=) for a boolean left-hand side operand.
Compares a boolean to a SharedBoolean's value.
| lhs | The boolean value on the left-hand side of the operator. |
| rhs | The SharedBoolean object on the right-hand side. |
true if the boolean is greater than or equal to the SharedBoolean's value, false otherwise. Overloads the greater-than-or-equal-to operator (>=) for an integer left-hand side operand.
Compares an integer to a SharedInt's value.
| lhs | The integer value on the left-hand side of the operator. |
| rhs | The SharedInt object on the right-hand side. |
true if the integer is greater than or equal to the SharedInt's value, false otherwise.