Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dr::tarantool::tuple(3pm) [debian man page]

DR::Tarantool::Tuple(3pm)				User Contributed Perl Documentation				 DR::Tarantool::Tuple(3pm)

NAME
DR::Tarantool::Tuple - tuple container for DR::Tarantool SYNOPSIS
my $tuple = new DR::Tarantool::Tuple([ 1, 2, 3]); my $tuple = new DR::Tarantool::Tuple([ 1, 2, 3], $space); my $tuple = unpack DR::Tarantool::Tuple([ 1, 2, 3], $space); $tuple->next( $other_tuple ); $f = $tuple->raw(0); $f = $tuple->name_field; DESCRIPTION
Tuple contains normalized (unpacked) fields. You can access the fields by their indexes (see raw function) or by their names (if they are described in space). Each tuple can contain references to next tuple and iterator. So If You extract more than one tuple, You can access them. METHODS
new Constructor. my $t = DR::Tarantool::Tuple->new([1, 2, 3]); my $t = DR::Tarantool::Tuple->new([1, 2, 3], $space); unpack Constructor. my $t = DR::Tarantool::Tuple->unpack([1, 2, 3], $space); raw Returns raw data from tuple. my $array = $tuple->raw; my $field = $tuple->raw(0); next Appends or returns the following tuple. my $next_tuple = $tuple->next; iter Returns iterator linked with the tuple. my $iterator = $tuple->iter; my $iterator = $tuple->iter('MyTupleClass', 'new'); while(my $t = $iterator->next) { # the first value of $t and $tuple are the same ... } Arguments package (optional) method (optional, default: new) if 'package' and 'method' are present, $iterator->next method will construct objects using "$package->$method( $next_tuple )" AUTOLOAD Each tuple autoloads fields by their names that defined in space. my $name = $tuple->password; # space contains field with name 'password' my $name = $tuple->login; ... tuple iterators new my $iter = DR::Tarantool::Tuple::Iterator->new( $tuple ); my $iter = $tuple->iter; # the same Arguments tuple package (optional) method (optional, default: new) if 'package' and 'method' are present, next method will construct objects using "$package->$method( $next_tuple )" count Returns count of tuples in the iterator. my $count = $iter->count; reset Resets iterator (see next method). $iter->reset; next Returns next element from the iterator. my $iter = $tuple->iter; while(my $tuple = $iter->next) { ... } COPYRIGHT AND LICENSE
Copyright (C) 2011 Dmitry E. Oboukhov <unera@debian.org> Copyright (C) 2011 Roman V. Nikolaev <rshadow@rambler.ru> This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License. VCS
The project is placed git repo on github: https://github.com/unera/dr-tarantool/ <https://github.com/unera/dr-tarantool/>. perl v5.14.2 2012-06-06 DR::Tarantool::Tuple(3pm)

Check Out this Related Man Page

std::tuple< _Elements >(3)				     Library Functions Manual					std::tuple< _Elements >(3)

NAME
std::tuple< _Elements > - SYNOPSIS
Inherits std::_Tuple_impl< 0, _Elements...>. Public Member Functions constexpr tuple (const _Elements &...__elements) template<typename... _UElements, typename = typename enable_if<__and_<is_convertible<_UElements, _Elements>...>::value>::type> constexpr tuple (_UElements &&...__elements) constexpr tuple (const tuple &)=default constexpr tuple (tuple &&)=default template<typename... _UElements, typename = typename enable_if<__and_<is_convertible<const _UElements&, _Elements>...>::value>::type> constexpr tuple (const tuple< _UElements...> &__in) template<typename... _UElements, typename = typename enable_if<__and_<is_convertible<_UElements, _Elements>...>::value>::type> constexpr tuple (tuple< _UElements...> &&__in) template<typename _Alloc > tuple (allocator_arg_t __tag, const _Alloc &__a) template<typename _Alloc > tuple (allocator_arg_t __tag, const _Alloc &__a, const _Elements &...__elements) template<typename _Alloc , typename... _UElements, typename = typename enable_if<sizeof...(_UElements) == sizeof...(_Elements)>::type> tuple (allocator_arg_t __tag, const _Alloc &__a, _UElements &&...__elements) template<typename _Alloc > tuple (allocator_arg_t __tag, const _Alloc &__a, const tuple &__in) template<typename _Alloc > tuple (allocator_arg_t __tag, const _Alloc &__a, tuple &&__in) template<typename _Alloc , typename... _UElements, typename = typename enable_if<sizeof...(_UElements) == sizeof...(_Elements)>::type> tuple (allocator_arg_t __tag, const _Alloc &__a, const tuple< _UElements...> &__in) template<typename _Alloc , typename... _UElements, typename = typename enable_if<sizeof...(_UElements) == sizeof...(_Elements)>::type> tuple (allocator_arg_t __tag, const _Alloc &__a, tuple< _UElements...> &&__in) void noexcept (noexcept(__in._M_swap(__in))) tuple & operator= (const tuple &__in) tuple & operator= (tuple &&__in) noexcept(is_nothrow_move_assignable< _Inherited >::value) template<typename... _UElements, typename = typename enable_if<sizeof...(_UElements) == sizeof...(_Elements)>::type> tuple & operator= (const tuple< _UElements...> &__in) template<typename... _UElements, typename = typename enable_if<sizeof...(_UElements) == sizeof...(_Elements)>::type> tuple & operator= (tuple< _UElements...> &&__in) Detailed Description template<typename... _Elements>class std::tuple< _Elements > Primary class template, tuple. Definition at line 388 of file tuple. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::tuple< _Elements >(3)
Man Page