Logo Search packages:      
Sourcecode: icu version File versions

dtintrv.cpp

/*******************************************************************************
* Copyright (C) 2008, International Business Machines Corporation and
* others. All Rights Reserved.
*******************************************************************************
*
* File DTINTRV.CPP 
*
*******************************************************************************
*/



#include "unicode/dtintrv.h"


U_NAMESPACE_BEGIN

UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DateInterval)

//DateInterval::DateInterval(){}


00023 DateInterval::DateInterval(UDate from, UDate to)
:   fromDate(from),
    toDate(to)
{}


00029 DateInterval::~DateInterval(){}


00032 DateInterval::DateInterval(const DateInterval& other)
: UObject(other) {
    *this = other;
}   


DateInterval&
00039 DateInterval::operator=(const DateInterval& other) {
    if ( this != &other ) {
        fromDate = other.fromDate;
        toDate = other.toDate;
    }
    return *this;
}


DateInterval* 
00049 DateInterval::clone() const {
    return new DateInterval(*this);
}


UBool 
00055 DateInterval::operator==(const DateInterval& other) const { 
    return ( fromDate == other.fromDate && toDate == other.toDate );
}


U_NAMESPACE_END


Generated by  Doxygen 1.6.0   Back to index