A wrapper class for primitive types.
It has identical usage and public interface to the ElementRef class.
Member | Description |
---|---|
ElementHolder |
Constructor. |
~ElementHolder |
Destructor. |
operator+= | |
operator-= | |
operator *= | |
operator/= | |
operator%= | |
operator &= | |
operator|= | |
operator^= | |
operator>>= | |
operator<<= | |
operator++ | |
operator-- | |
operator= | |
operator ptype |
This operator is a type converter. |
_DB_STL_value |
Returns the data element this wrapper object wraps;. |
_DB_STL_StoreElement |
Function to store the data element. |
ElementRef and ElementHolder Wappers
ElementHolder(iterator_type *pitr=NULL)
Constructor.
If the pitr parameter is NULL or the default value is used, the object created is a simple wrapper and not connected to a container. If a valid iterator parameter is passed in, the wrapped element will be associated with the matching key/data pair in the underlying container.
ElementHolder(const ptype &dt)
Constructor.
Initializes an ElementRef wrapper without an iterator. It can only be used to wrap a data element in memory, it can't access an unerlying database.
ElementHolder(const self &other)
Copy constructor.
The constructor takes a "deep" copy. The created object will be identical to, but independent from the original object.