Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK)) by mollari.NetBSD.org (Postfix) with ESMTPS id 2F35E71865 for ; Thu, 22 Aug 2013 14:43:03 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id 8FA6814A27D; Thu, 22 Aug 2013 14:43:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 399E114A27B for ; Thu, 22 Aug 2013 14:42:58 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Q2B60buNXFMC for ; Thu, 22 Aug 2013 14:42:57 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 4333B14A279 for ; Thu, 22 Aug 2013 14:42:57 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 3C6CB96; Thu, 22 Aug 2013 14:42:57 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Thu, 22 Aug 2013 14:42:57 +0000 From: "Jaap Boender" Subject: CVS commit: pkgsrc/devel/mdds To: pkgsrc-changes@NetBSD.org Reply-To: jaapb@netbsd.org X-Mailer: log_accum Message-Id: <20130822144257.3C6CB96@cvs.netbsd.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk Module Name: pkgsrc Committed By: jaapb Date: Thu Aug 22 14:42:57 UTC 2013 Modified Files: pkgsrc/devel/mdds: Makefile PLIST buildlink3.mk distinfo Log Message: Updated package to its latest version, 0.9.0. Changes (apart from bugfixes) include: * all * added .pc file for pkg-config. * multi_type_vector * added another block function template to make it easier to declare container with 3 custom element types. * added two variants of release(): * template iterator release(size_type pos, _T& value) * template iterator release(const iterator& pos_hint, size_type pos, _T& value) * added a variant of release() that takes no arguments. This one releases all elements and makes the container empty afterward. * added a new variant of position() that takes const_iterator as position hint. * std::pair position(const const_iterator& pos_hint, size_type pos) const * added compile-time macro MDDS_MULTI_TYPE_VECTOR_USE_DEQUE to allow users to specify std::deque as the underlying data array. By default, multi_type_vector uses std::vector as the underlying data array container. * added a new variant of swap() that allows partial swapping of content with another container. * added static block type identifier so that the numeric block type ID can be deduced from the block type directly. * value_type (which is a type of object returned when dereferencing an iterator) now stores 'position' which is the logical position of the first element of a block. * added position_type and const_position_type which are typedefs to the return types of position() methods. * added char and unsigned char types to the standard types supported by default. * added position() member method that takes a logical element position and returns a pair of block iterator where the element resides and its offset within that block. * added at() static member method to the data block, which calls the at() method of the underlying std::vector container. * added release() member method to allow caller to release an object stored inside a managed block. * added two templates to ease creation of custom element block functions when using one or two custom element types. * added transfer() member method to allow elements in a specified range to be transferred from one container to another. When transferring elements stored in a managed element block, the ownership of those elements is also transferred. * add variants of set() methods (both single- and multi-value) insert(), set_empty() and insert_empty() methods that take an iterator as an additional position hint parameter for block lookup speed optimization. * add support for non-const iterators which allow the client code to modify values directly from the iterators. * set() methods (both single- and multi-parameter variants), set_empty(), insert() and insert_empty() methods now return iterator that references the block to which the values are set or inserted. * multi_type_matrix: * get_numeric(), get_boolean(), and get_string() are made more efficient. * added position() method that returns a reference object to an element (position object). * added variants of get_numeric(), get_boolean() and get_string() that retrieves elements from position objects. * added variants of set() that sets new element values via position objects. * add a variant of the position() method that takes an iterator as positional hint. Note that there is no variant of position() that takes const_iterator. * flat_segment_tree * changed the return type of search_tree from bool to std::pair, to make it consistent with the search() method. Note that this is an API-incompatible change. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/mdds/Makefile cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/mdds/PLIST cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/mdds/buildlink3.mk cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/mdds/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.