#include <OTC/refcnt/ctrvptr.hh> template<class T> class OTC_CtrVecPtr : public OTC_CCtrVecPtr<T> {
public:
inline OTC_CtrVecPtr();
inline OTC_CtrVecPtr(T* theItem);
inline OTC_CtrVecPtr(OTC_CtrVecPtr<T> const& theCtrPtr);
inline T* item() const;
inline T& operator[](u_int theIndex) const;
inline operator T*() const;
inline T& operator*() const;
inline OTC_CtrVecPtr<T>& operator=( OTC_CtrVecPtr<T> const& theCtrPtr );
inline OTC_CtrVecPtr<T>& operator=(T* theItem);
};
inline OTC_CtrVecPtr();
inline OTC_CtrVecPtr(T* theItem);
theItem
.
inline OTC_CtrVecPtr(OTC_CtrVecPtr<T> const& theCtrPtr);
theCtrPtr
.
inline T* item() const;
inline T& operator[](u_int theIndex) const;
theIndex
. Note that
no bounds checking is done. Also, if no
item is held, an exception is generated.
inline operator T*() const;
inline T& operator*() const;
inline OTC_CtrVecPtr<T>& operator=(OTC_CtrVecPtr<T> const& theCtrPtr);
theCtrPtr
.
inline OTC_CtrVecPtr<T>& operator=(T* theItem);
theItem
.