Back to index

lightning-sunbird  0.9+nobinonly
rcinrval.h File Reference
#include "rcbase.h"
#include <prinrval.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class PR_IMPLEMENT (RCInterval)

Function Documentation

class PR_IMPLEMENT ( RCInterval  )

Definition at line 53 of file rcinrval.h.

                              : public RCBase
    typedef enum {now, no_timeout, no_wait} RCReservedInterval;

    virtual ~RCInterval();


    RCInterval(PRIntervalTime interval);
    RCInterval(const RCInterval& copy);
    RCInterval(RCReservedInterval special);

    void SetToNow();

    void operator=(const RCInterval&);
    void operator=(PRIntervalTime interval);

    PRBool operator<(const RCInterval&);
    PRBool operator>(const RCInterval&);
    PRBool operator==(const RCInterval&);
    PRBool operator>=(const RCInterval&);
    PRBool operator<=(const RCInterval&);

    RCInterval operator+(const RCInterval&);
    RCInterval operator-(const RCInterval&);
    RCInterval& operator+=(const RCInterval&);
    RCInterval& operator-=(const RCInterval&);

    RCInterval operator/(PRUint32);
    RCInterval operator*(PRUint32);
    RCInterval& operator/=(PRUint32);
    RCInterval& operator*=(PRUint32);

    PRUint32 ToSeconds() const;
    PRUint32 ToMilliseconds() const;
    PRUint32 ToMicroseconds() const;
    operator PRIntervalTime() const;

    static PRIntervalTime FromSeconds(PRUint32 seconds);
    static PRIntervalTime FromMilliseconds(PRUint32 milli);
    static PRIntervalTime FromMicroseconds(PRUint32 micro);

    friend class RCCondition;

    PRIntervalTime interval;
};  /* RCInterval */

Here is the call graph for this function: