In file gdsdatum.h:

class data_storage_ptr

Template class for implementing a storage auto pointer.

Inheritance:


Public Methods

explicit data_storage_ptr (const gdsDataObject& x)
Constructor.
explicit data_storage_ptr (gdsDataObject* x = 0)
Constructor.
data_storage_ptr (const data_storage_ptr& st)
Copy constructor.
~data_storage_ptr ()
Destructor.
data_storage_ptr& operator= (const data_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 data_storage_ptr& st)
Equality operator.
bool operator< (const data_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 data_storage_ptr(const gdsDataObject& 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 data_storage_ptr(gdsDataObject* 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

data_storage_ptr(const data_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

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

data_storage_ptr& operator= (const data_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 data_storage_ptr& st)
Compares the value of two auto pointers.
Returns:
true if equal
Parameters:
s - string

bool operator< (const data_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++