In file gdsdatum.h:

template <class T> class storage_ptr : public std auto_ptr<T>

Template class for implementing a storage auto pointer.

Inheritance:


Public Methods

explicit storage_ptr (const T& x) throw()
Constructor.
explicit storage_ptr (T* x = 0) throw()
Constructor.
storage_ptr (const storage_ptr<T>& st) throw()
Copy constructor.
~storage_ptr () throw()
Destructor.
storage_ptr <T> & operator= (const storage_ptr<T>& st) throw()
Copy operator.
bool operator== (const string& s) const throw()
Equality operator.
bool operator!= (const string& s) const throw()
Unequality operator.
bool operator< (const string& s) const throw()
Smaller operator.
bool operator== (const storage_ptr<T>& st) const throw()
Equality operator.
bool operator< (const storage_ptr<T>& st) const throw()
Smaller operator.

Documentation

This template class is used to implement an auto pointer of a storage object. It is derived from the auto_ptr and implements a special set of constructors and comparision operators.
explicit storage_ptr(const T& x) throw()
Constructs a storage auto pointer from an object by copying it into a newly allocated object. The caller is responsible for destroying the argument object.
Returns:
void
Parameters:
x - reference to object

explicit storage_ptr(T* x = 0) throw()
Constructs a storage auto pointer from an object pointer by insertion (no copy). The ownership is transferred to the storage auto pointer. The object had to be dynamically allocated with the new operator; and must not be destoyed by the caller.
Returns:
void
Parameters:
x - pointer to object

storage_ptr(const storage_ptr<T>& st) throw()
Constructs a storage auto pointer from a storage auto pointer The ownership is transferred to the storage auto pointer.
Returns:
void
Parameters:
st - storage pointer

~storage_ptr() throw()
Destructs a storage auto pointer. The storage pointer object is released..
Returns:
void

storage_ptr <T> & operator= (const storage_ptr<T>& st) throw()
Copies a storage auto pointer from a storage auto pointer The ownership is transferred to the storage auto pointer.
Returns:
void
Parameters:
st - storage pointer

bool operator== (const string& s) const throw()
Compares the value of an auto pointer with a string.
Returns:
true if equal
Parameters:
s - string

bool operator!= (const string& s) const throw()
Compares the value of an auto pointer with a string.
Returns:
true if unequal
Parameters:
s - string

bool operator< (const string& s) const throw()
Compares the value of an auto pointer with a string.
Returns:
true if smaller
Parameters:
s - string

bool operator== (const storage_ptr<T>& st) const throw()
Compares the value of two auto pointers.
Returns:
true if equal
Parameters:
s - string

bool operator< (const storage_ptr<T>& st) const throw()
Compares the value of two auto pointers.
Returns:
true if smaller
Parameters:
s - string


This class has no child classes.
Author:
DS, November 98
See Also:
Diagnostics storage API

alphabetic index hierarchy of classes


Please send questions and comments to sigg_d@ligo-wa.caltech.edu


generated by doc++