GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CONFIG::MODEL::HASHID (3)

.ds Aq ’

NAME

Config::Model::HashId - Handle hash element for configuration model

CONTENTS

VERSION

version 2.082

SYNOPSIS

See SYNOPSIS in Config::Model::AnyId

DESCRIPTION

This class provides hash elements for a Config::Model::Node.

The hash index can either be en enumerated type, a boolean, an integer or a string.

CONSTRUCTOR

HashId object should not be created directly.

Hash model declaration

See model declaration section from Config::Model::AnyId.

Methods

    get_type

Returns hash.

    fetch_size

Returns the number of elements of the hash.

    sort

Sort an ordered hash. Throws an error if called on a non ordered hash.

    firstkey

Returns the first key of the hash. Behaves like each core perl function.

    nextkey

Returns the next key of the hash. Behaves like each core perl function.

    swap ( key1 , key2 )

Swap the order of the 2 keys. Ignored for non ordered hash.

    move ( key1 , key2 )

Rename key1 in key2.

    move_after ( key_to_move [ , after_this_key ] )

Move the first key after the second one. If the second parameter is omitted, the first key is placed in first position. Ignored for non ordered hash.

    move_up ( key )

Move the key up in a ordered hash. Attempt to move up the first key of an ordered hash will be ignored. Ignored for non ordered hash.

    move_down ( key )

Move the key down in a ordered hash. Attempt to move up the last key of an ordered hash will be ignored. Ignored for non ordered hash.

    load_data ( data => ( hash_ref | array_ref ) [ , check => ... , ... ])

Load check_list as a hash ref for standard hash.

Ordered hash should be loaded with an array ref or with a hash containing a special __order element. E.g. loaded with either:



  [ a => foo, b => bar ]



or



  { __order => [a,b], b => bar, a => foo }



load_data can also be called with a single ref parameter.

AUTHOR

Dominique Dumont, (ddumont at cpan dot org)

SEE ALSO

Config::Model, Config::Model::Instance, Config::Model::AnyId, Config::Model::ListId, Config::Model::Value

AUTHOR

Dominique Dumont

COPYRIGHT AND LICENSE

This software is Copyright (c) 2005-2016 by Dominique Dumont.

This is free software, licensed under:



  The GNU Lesser General Public License, Version 2.1, February 1999



Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CONFIG::MODEL::HASHID (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.