In file gdsdatum.h:

class prm_storage_ptr

Template class for implementing a storage auto pointer.

Inheritance:


Public Methods

explicit prm_storage_ptr (const gdsParameter& x)
Constructor.
explicit prm_storage_ptr (gdsParameter* x = 0)
Constructor.
prm_storage_ptr (const prm_storage_ptr& st)
Copy constructor.
~prm_storage_ptr ()
Destructor.
prm_storage_ptr& operator= (const prm_storage_ptr& st)
Copy operator.
bool operator== (const string& s) const
Equality operator.
bool operator!= (const string& s) const
Unequality operator.
bool operator< (const string& s) const
Smaller operator.
bool operator== (const prm_storage_ptr& st) const
Equality operator.
bool operator< (const prm_storage_ptr& st) const
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 prm_storage_ptr(const gdsParameter& x)
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 prm_storage_ptr(gdsParameter* x = 0)
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

prm_storage_ptr(const prm_storage_ptr& st)
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

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

prm_storage_ptr& operator= (const prm_storage_ptr& st)
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
Compares the value of an auto pointer with a string.
Returns:
true if equal
Parameters:
s - string

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

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

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

bool operator< (const prm_storage_ptr& st) const
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++