![]() |
Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
|
Allows for acquisition and manipulation of a duration of time. More...
#include <hdicoreDuration.h>
Public Member Functions | |
| Duration () | |
| Constructs a Duration object with a default duration (0 seconds) | |
| Duration (const Duration &d_) | |
| Constructs a Duration object from another existing Duration object. | |
| Duration (const int64_t secs_, const int32_t us_=0) | |
| Constructs a Duration object with a given number of seconds. | |
| virtual | ~Duration () |
| Destructs a Duration object. | |
| virtual Duration & | operator= (const Duration &rhs_) |
| Overloaded assignment operator to copy values from one Duration object to another. | |
| virtual bool | operator== (const Duration &rhs_) const |
| Overloaded equality operator to determine if two Duration objects are equal. | |
| virtual bool | operator!= (const Duration &rhs_) const |
| Overloaded inequality operator to determine if two Duration objects differ. | |
| virtual bool | operator< (const Duration &rhs_) const |
| Overloaded less-than operator to determine if one Duration object is less than the other. | |
| virtual bool | operator<= (const Duration &rhs_) const |
| Overloaded less-than-or-equal operator to determine if one Duration object is less than, or equal to, the other. | |
| virtual bool | operator> (const Duration &rhs_) const |
| Overloaded greater-than operator to determine if one Duration object is greater than the other. | |
| virtual bool | operator>= (const Duration &rhs_) const |
| Overloaded greater-than-or-equal operator to determine if one Duration object is greater than, or equal to, the other. | |
| virtual Duration | operator- () const |
| Overloaded unary minus operator, to flip the sign of the target Duration object. | |
| virtual Duration | operator- (const Duration &rhs_) const |
| Overloaded subtraction operator to substract one duration from another. | |
| virtual Duration & | operator-= (const Duration &rhs_) |
| Overloaded subtraction-assignment operator to subtract and assign the resultant Duration. | |
| virtual Duration | operator+ (const Duration &rhs_) const |
| Overloaded addition operator to add one duration to another. | |
| virtual Duration & | operator+= (const Duration &rhs_) |
| Overloaded addition-assignment operator to add and assign the resultant Duration. | |
| virtual Duration | operator* (const double rhs_) const |
| Overloaded multiplication operator to multiply a duration by a constant. | |
| virtual Duration & | operator*= (const double rhs_) |
| Overloaded multiplication-assignment operator to multiply and assign the resultant Duration. | |
| virtual Duration | operator/ (const double rhs_) const |
| Overloaded division operator to divide a duration by a constant. | |
| virtual Duration & | operator/= (const double rhs_) |
| Overloaded division-assignment operator to divide and assign the resultant Duration. | |
| virtual double | years () const |
| Number of years in the duration. | |
| virtual double | days () const |
| Number of days in the duration. | |
| virtual double | hours () const |
| Number of hours in the duration. | |
| virtual double | minutes () const |
| Number of minutes in the duration. | |
| virtual double | seconds () const |
| Number of seconds in the duration. | |
Static Public Member Functions | |
| static Duration | Years (const int64_t years_) |
| Creates a Duration object for a given number of years. | |
| static Duration | Days (const int64_t days_) |
| Creates a Duration object for a given number of days. | |
| static Duration | Hours (const int64_t hours_) |
| Creates a Duration object for a given number of hours. | |
| static Duration | Minutes (const int64_t mins_) |
| Creates a Duration object for a given number of minutes. | |
| static Duration | TimeZoneOffset () |
| Creates a Duration object for the system's time zone offset. | |
Friends | |
| class | Date |
| class | DateTime |
| class | Time |
Allows for acquisition and manipulation of a duration of time.
| hdi::core::Duration::Duration | ( | ) |
Constructs a Duration object with a default duration (0 seconds)
| hdi::core::Duration::Duration | ( | const Duration & | d_ | ) |
| hdi::core::Duration::Duration | ( | const int64_t | secs_, |
| const int32_t | us_ = 0 |
||
| ) |
Constructs a Duration object with a given number of seconds.
| secs_ | Number of seconds in the duration |
| us_ | Number of microseconds, in additions to secs_, in the duration |
|
virtual |
Destructs a Duration object.
|
virtual |
Number of days in the duration.
|
static |
|
virtual |
Number of hours in the duration.
|
static |
|
virtual |
Number of minutes in the duration.
|
static |
|
virtual |
|
virtual |
Overloaded multiplication operator to multiply a duration by a constant.
| rhs_ | Righthand side of the operator, constant to multiply by |
|
virtual |
Overloaded addition operator to add one duration to another.
| rhs_ | Righthand side of the operator, Duration object to add to the lefthand side |
|
virtual |
Overloaded unary minus operator, to flip the sign of the target Duration object.
Overloaded subtraction operator to substract one duration from another.
| rhs_ | Righthand side of the operator, Duration object to "substract" from the lefthand side |
Overloaded subtraction-assignment operator to subtract and assign the resultant Duration.
| rhs_ | Righthand side of the operator, Duration object to substract from the lefthand side |
|
virtual |
Overloaded division operator to divide a duration by a constant.
| rhs_ | Righthand side of the operator, constant to divide by |
|
virtual |
|
virtual |
Overloaded less-than operator to determine if one Duration object is less than the other.
| rhs_ | Righthand side of the operator; Duration object that might be greater than the target (i.e. lefthand side) |
|
virtual |
Overloaded less-than-or-equal operator to determine if one Duration object is less than, or equal to, the other.
| rhs_ | Righthand side of the operator; Duration object that might be greater than, or equal to, the target (i.e. lefthand side) |
|
virtual |
|
virtual |
Overloaded greater-than operator to determine if one Duration object is greater than the other.
| rhs_ | Righthand side of the operator; Duration object that might be less than the target (i.e. lefthand side) |
|
virtual |
Overloaded greater-than-or-equal operator to determine if one Duration object is greater than, or equal to, the other.
| rhs_ | Righthand side of the operator; Duration object that might be less than, or equal to, the target (i.e. lefthand side) |
|
virtual |
Number of seconds in the duration.
|
static |
Creates a Duration object for the system's time zone offset.
|
virtual |
Number of years in the duration.