Commit a94e83a3 authored by fogal1's avatar fogal1

Marked some methods as const.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@8004 18c085ea-50e0-402c-830e-de6fd14e8384
parent 057dc24f
......@@ -117,10 +117,15 @@ avtExtents::~avtExtents()
// Programmer: Hank Childs
// Creation: February 25, 2004
//
// Modifications:
//
// Tom Fogal, Tue Jun 23 20:14:38 MDT 2009
// Marked as const.
//
// ****************************************************************************
void
avtExtents::Print(ostream &out)
avtExtents::Print(ostream &out) const
{
out << "Extents (dim = " << dimension << ") = ";
if (extents == NULL)
......@@ -193,10 +198,15 @@ avtExtents::operator=(const avtExtents &exts)
// Programmer: Hank Childs
// Creation: September 4, 2001
//
// Modifications:
//
// Tom Fogal, Tue Jun 23 20:14:38 MDT 2009
// Marked as const.
//
// ****************************************************************************
bool
avtExtents::HasExtents(void)
avtExtents::HasExtents(void) const
{
return (extents != NULL ? true : false);
}
......@@ -388,10 +398,14 @@ avtExtents::Merge(const double *exts)
// Jeremy Meredith, Thu Feb 7 14:44:42 EST 2008
// Support arbitrarily large dimension.
//
// Tom Fogal, Tue Jun 23 20:15:40 MDT 2009
// Marked as const.
//
// ****************************************************************************
void
avtExtents::Write(avtDataObjectString &str, const avtDataObjectWriter *wrtr)
avtExtents::Write(avtDataObjectString &str,
const avtDataObjectWriter *wrtr) const
{
if (extents == NULL)
{
......
......@@ -78,6 +78,9 @@ class vtkMatrix4x4;
// doesn't define a second assignment operator with a non-const return
// type that does a bitwise copy.
//
// Tom Fogal, Tue Jun 23 20:14:16 MDT 2009
// I made some methods const.
//
// ****************************************************************************
class PIPELINE_API avtExtents
......@@ -87,9 +90,9 @@ class PIPELINE_API avtExtents
avtExtents(const avtExtents &);
virtual ~avtExtents();
void Print(ostream &);
void Print(ostream &) const;
bool HasExtents(void);
bool HasExtents(void) const;
int GetDimension(void) { return dimension; };
void CopyTo(double *);
......@@ -102,7 +105,7 @@ class PIPELINE_API avtExtents
void Merge(const double *);
void Write(avtDataObjectString &,
const avtDataObjectWriter *);
const avtDataObjectWriter *) const;
int Read(char *);
void Transform(vtkMatrix4x4 *);
......@@ -112,7 +115,4 @@ class PIPELINE_API avtExtents
double *extents;
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment