windows9download

You Here : Home > Linux

Object::Accessor 0.32

OS Support:


Publisher

Publisher Old version

Update:

March 27 2012

Download:

Object::Accessor 0.32


Description

Object:: Accessor is a Perl module that provides an interface to create per object accessors (as opposed to class with accessors, as , for example, Class:: Accessor provides). You can choose to either subclass this module and using its accessors on your own module, or to store an object:: Accessor object inside your own object accessors and access from away. See the synopsis for examples.SYNOPSIS # # # using the $ obj = Object:: Accessor-> new; # create object $ obj = Object:: Accessor-> new (@ list) # create an object accessors $ obj = Object:: Accessor-> new (% H) # create an object accessors # enable managers and their $ bool = $ obj-> mk_accessors ( 'foo') # create accessors $ bool = $ obj-> mk_accessors (# create accessors with input (foo => ALLOW_HANDLER)) # validation $ clone = $ obj-> mk_clone; # create a clone of the original object without data # $ bool = $ obj -> mk_flush; # clean all data @ list = $ bar $ obj-> ls_accessors; # get a list of all the accessors for this object # $ bar = $ obj-> foo ( 'bar') # set foo ' 'to' bar '= $ obj-> foo () # Check the' bar 'again as $ = $ obj-> can (' foo ') # # retrieve coderef for' foo 'bar accessor = $ $ sub -> ( 'bar') # set foo 'via coderef $ bar = $ sub-> () # Check the' bar 'by coderef # # # using the object as a base package of class My:: Class ; Object use base ':: Accessor'; $ obj = My:: Class-> new; # create base object $ bool = $ obj-> mk_accessors ( 'foo') # create accessors, etc. .. # # # Make all attempts to access non-fatal Existing accessors # # # (defaults to false) $ object:: Accessor:: fatal = 1 # # # enable debugging $ object:: Accessor:: debug = 1 # # # advanced usage - Recall ($ obj = Object:: Accessor my-> new ( 'foo'); $ obj-> register_callback (sub (...)); $ obj-> foo (1 ) # these calls invoke the callback you registered $ obj-> foo () # which allows you to change the get / set # behavior and what is returned to the caller.) # # # Use Advanced - attributes lvalue ($ obj = Object:: Accessor:: my lvalue-> new ( 'foo') print $ obj-> foo = 1 # will print 1) # # # advanced usage - the values of attribute range ($ obj = Object:: Accessor my-> new ( 'foo'); $ obj-> foo (1) print $ obj-> foo; will print 1 # # # # bind the scope of the attribute value''foo # # # for the scope of '$ x' - when $ x is out of range # # # previous value 'foo be restored ($ obj-> foo (2 => my $ x) print $ obj-> foo,'', $ x; # will print '2 2 ') print $ obj-> foo; # will print 1) Requirements: Perl ·


Related Downloads


  • GAMGI 0.14.2
  • GAMGI is a program to build, view and analyze atomic strucure. GAMGI will be useful for: 1) the scientific community working in atomistic modeling that needs a graphical interface to create data entry and to view and analyze the output data,...

  • Bio::DB::BioSQL::SimpleValueAdaptor 1.5.2_100
  • Bio::DB::BioSQL::SimpleValueAdaptor is a Perl module for object description.APPENDIXThe rest of the documentation details each of the object methods. Internal methods are usually preceded with a _get_persistent_slots Title : get_persistent_slots...

    Software Tags

    Object::accessor | Object::accessor 0.32 | Object::accessor Free Download | Object::accessor Reviews | Download Object::accessor

    Size :

    Next/Pre