Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46131 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60400 invoked from network); 20 Nov 2009 21:56:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2009 21:56:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=samuel.roze@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=samuel.roze@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.156 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: samuel.roze@gmail.com X-Host-Fingerprint: 72.14.220.156 fg-out-1718.google.com Received: from [72.14.220.156] ([72.14.220.156:34593] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/20-25743-9A0170B4 for ; Fri, 20 Nov 2009 16:56:58 -0500 Received: by fg-out-1718.google.com with SMTP id d23so1629020fga.11 for ; Fri, 20 Nov 2009 13:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=qCbw+OK0lfLN16caTF9xHcC5M9MQ+Fz+pNJq68Vph7E=; b=J+jGrCx+1aBc4fAFSZJY7bhKj+hScx0UjgXGYujYc6FU/Vl6C4pVfwX0wWbFUWgkLT u/m7iEdwIlilDasER7n1j1tHed1+cga094eKhtVqhQaVAOlC9siJJaiRUwF3xulwCWAs jncwTGGSZK0YrulbuPncRuZBjmmeFxf2MulkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DWPKVVBWhW8jwMoEDoxz2o+b1hiEDAC8RBaLKf1csGzzyVawHVTvH1MrIqk4rwfeKK WJ5zvm9NMh0uuUx4JrUtxZxxblXonGuO6yLEhfWJbQjWSxen8rqDKK/hfiW6F2Zj82Va gIgINoTwVo+OGfOFytbsCRvP6vxs1lexWkWa0= MIME-Version: 1.0 Received: by 10.216.91.67 with SMTP id g45mr599973wef.190.1258754214470; Fri, 20 Nov 2009 13:56:54 -0800 (PST) Date: Fri, 20 Nov 2009 22:56:54 +0100 Message-ID: <18e9608a0911201356g4d3ca1ffsef1499c7ada929f6@mail.gmail.com> To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Intervals representation with brackets From: samuel.roze@gmail.com (Samuel ROZE) Hello, I'm working on two classes, Interval and IntervalList which describe an interval and a list of intervals. These intervals are defined using the Interval class: These intervals can be stored in a list of intervals, using IntervalList: add($interval_1); $list->add($interval_2); ?> IntervalList's functions are: - inverse(); which returns an IntervalList object - intersection(); which returns an IntervalList object of intervals which are contained by every interval of this list. To be easier, what do you think about: Regards, Samuel ROZE.