ProtoWrapper Class ReferenceThe base Wrapper class.
More...
#include <ProtoWrapper.h>
Inheritance diagram for ProtoWrapper:
[legend]List of all members.
Detailed Description
The base Wrapper class.
Polaris C++ VDL - See also:
- ProtoWrapper.h
ProtoWrapper.cc
This is the base of the Wrapper classes and also functions as the stripped down version of a Wrapper containing only a pointer to the object. It is for use only by the Element class and should not be visible to any other classes.
The Wrapper class is responsible for maintaining objects while in any Collection class. Wrappers perform all operations required for ownership indication, reference counting and for representing deleted objects in the form of Zombies.
The underlying formula for the Collection hierarchy is that Collections hold wrappers rather than the objects themselves. When an object is placed in a Collection, a new wrapper is created and the object is manipulated through the wrapper. The Listable class contributes a standardized interface to the Wrapper classes and the Collection hierarchy, and, thus, for an object to be contained by a wrapper, it must derive from Listable.
Wrapper, Listable
Definition at line 50 of file ProtoWrapper.h.
Constructor & Destructor Documentation
| ProtoWrapper::ProtoWrapper |
( |
|
) |
[inline] |
|
Member Function Documentation
| void ProtoWrapper::_object_errors |
( |
|
) |
const [protected] |
|
| int ProtoWrapper::_is_proto_wrapper |
( |
|
) |
const [protected, virtual] |
|
| void ProtoWrapper::set |
( |
Listable * |
|
) |
[inline] |
|
|
|
Set the Listable object contained by the Wrapper.
Definition at line 99 of file ProtoWrapper.h.
References _ptr.
Referenced by BaseElement::BaseElement(), BaseRefElement::BaseRefElement(), BaseRefElement::del(), BaseElement::del(), BaseRefElement::grab(), BaseElement::grab(), BaseRefElement::modify(), BaseElement::modify(), BaseRefElement::operator=(), BaseElement::operator=(), and BaseRefElement::~BaseRefElement(). |
| Listable * ProtoWrapper::get |
( |
|
) |
const [inline] |
|
|
|
Return the contained Listable object.
Definition at line 105 of file ProtoWrapper.h.
References _ptr.
Referenced by BaseRefElement::del(), BaseElement::del(), BaseRefElement::grab(), BaseElement::grab(), BaseRefElement::member(), BaseElement::member(), BaseRefElement::modify(), BaseElement::modify(), BaseRefElement::modify_and_grab(), BaseElement::modify_and_grab(), BaseRefElement::operator *(), BaseElement::operator *(), BaseRefElement::operator->(), BaseElement::operator->(), BaseRefElement::print(), BaseElement::print(), BaseRefElement::valid(), BaseElement::valid(), BaseElement::~BaseElement(), and BaseRefElement::~BaseRefElement(). |
| Listable * ProtoWrapper::object |
( |
|
) |
const [inline] |
|
| Listable * ProtoWrapper::object_address |
( |
|
) |
const [inline] |
|
| int ProtoWrapper::valid |
( |
|
) |
const [inline] |
|
|
|
Does this point to a valid object (not a Zombie)?
Definition at line 117 of file ProtoWrapper.h.
References _ptr, and Listable::valid().
Referenced by Collection::clear(), BaseIter::current_invalid(), BaseIter::current_valid(), BaseMapRoot::find_ref(), BaseIter::grab(), BaseIter::modify_in_place(), Collection::operator[](), BaseIter::pull(), BaseMapRoot::remove(), Collection::structures_OK(), and Collection::valid(). |
| int ProtoWrapper::structures_OK |
( |
|
) |
[virtual] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|