NAME
Data::Object::Base - Perl base class for OO methods to perl data structures.
DESCRIPTION
This module is a base class for common methods used by Data::Object sub classes
ATTRIBUTES
- raw
-
This is the raw refrence, Use when needed to get the original data structure
- type
-
This will return the reftype of the wrapped structure
- blessed
-
This will return a true value if the wrapped structure is a blessed object. The return value will be the blessed value, or undef if its not blessed.
METHODS
- cleanup
-
Empty the children cache, this is probly not needed. Unless you want to serialize/freeze a C:D:E object. Because the children cache makes use of ref addresses which will not make any sense after deserialization/thaw, and just take up memory
- get ( KEY | INDEX )
-
get an item from the backend
This is a wrapper to make sure get items are wrapped in a D:O object
- set
-
set a value in a data structure, makeing sure they are not D:O objects
- dump
-
Dump the data structure in side this wrapper and return it.
- _ClassIfPossible
-
Most of the array methods return arrays of elements, if those elements are refrences I want them turned into D:O Objects
Store a cache of D:O objects created by this instance by the ref value.
- _deClassArgs
-
This private method is used to change out D:O objects with their raw references.
- AUTOLOAD
-
AUTOLOAD accessor methods for every key/index in the raw class
AUTHOR
Jason Fried <fried@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2011 by Jason Fried. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.