Commit 41da31a2 authored by fogal1's avatar fogal1

Marked some trivial accessors as const.

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@8002 18c085ea-50e0-402c-830e-de6fd14e8384
parent 9bb2ee82
...@@ -251,6 +251,9 @@ class avtWebpage; ...@@ -251,6 +251,9 @@ class avtWebpage;
// Jeremy Meredith, Tue Jun 2 16:25:01 EDT 2009 // Jeremy Meredith, Tue Jun 2 16:25:01 EDT 2009
// Added support for unit cell origin (previously assumed to be 0,0,0); // Added support for unit cell origin (previously assumed to be 0,0,0);
// //
// Tom Fogal, Tue Jun 23 20:10:40 MDT 2009
// Marked some trivial accessors as const.
//
// **************************************************************************** // ****************************************************************************
class PIPELINE_API avtDataAttributes class PIPELINE_API avtDataAttributes
...@@ -270,41 +273,41 @@ class PIPELINE_API avtDataAttributes ...@@ -270,41 +273,41 @@ class PIPELINE_API avtDataAttributes
const avtDataObjectWriter *); const avtDataObjectWriter *);
int Read(char *); int Read(char *);
int GetCycle(void) { return cycle; }; int GetCycle(void) const { return cycle; };
void SetCycle(int); void SetCycle(int);
bool CycleIsAccurate(void) { return cycleIsAccurate; }; bool CycleIsAccurate(void) { return cycleIsAccurate; };
double GetTime(void) { return dtime; }; double GetTime(void) const { return dtime; };
void SetTime(double); void SetTime(double);
bool TimeIsAccurate(void) { return timeIsAccurate; }; bool TimeIsAccurate(void) { return timeIsAccurate; };
void SetDynamicDomainDecomposition(bool); void SetDynamicDomainDecomposition(bool);
bool GetDynamicDomainDecomposition(void) bool GetDynamicDomainDecomposition(void) const
{ return dynamicDomainDecomposition; }; { return dynamicDomainDecomposition; };
avtExtents *GetTrueSpatialExtents(void) avtExtents *GetTrueSpatialExtents(void) const
{ return trueSpatial; }; { return trueSpatial; };
avtExtents *GetTrueDataExtents(const char * = NULL); avtExtents *GetTrueDataExtents(const char * = NULL);
avtExtents *GetCumulativeTrueSpatialExtents(void) avtExtents *GetCumulativeTrueSpatialExtents(void) const
{ return cumulativeTrueSpatial; }; { return cumulativeTrueSpatial; };
avtExtents *GetCumulativeTrueDataExtents(const char * = NULL); avtExtents *GetCumulativeTrueDataExtents(const char * = NULL);
avtExtents *GetEffectiveSpatialExtents(void) avtExtents *GetEffectiveSpatialExtents(void) const
{ return effectiveSpatial; }; { return effectiveSpatial; };
avtExtents *GetEffectiveDataExtents(const char * = NULL); avtExtents *GetEffectiveDataExtents(const char * = NULL);
avtExtents *GetCurrentSpatialExtents(void) avtExtents *GetCurrentSpatialExtents(void) const
{ return currentSpatial; }; { return currentSpatial; };
avtExtents *GetCurrentDataExtents(const char * = NULL); avtExtents *GetCurrentDataExtents(const char * = NULL);
avtExtents *GetCumulativeCurrentSpatialExtents(void) avtExtents *GetCumulativeCurrentSpatialExtents(void) const
{ return cumulativeCurrentSpatial; }; { return cumulativeCurrentSpatial; };
avtExtents *GetCumulativeCurrentDataExtents(const char * avtExtents *GetCumulativeCurrentDataExtents(const char *
= NULL); = NULL);
void SetCanUseCumulativeAsTrueOrCurrent(bool canUse) void SetCanUseCumulativeAsTrueOrCurrent(bool canUse)
{ canUseCumulativeAsTrueOrCurrent = canUse; } { canUseCumulativeAsTrueOrCurrent = canUse; }
bool GetCanUseCumulativeAsTrueOrCurrent(void) bool GetCanUseCumulativeAsTrueOrCurrent(void) const
{ return canUseCumulativeAsTrueOrCurrent; } { return canUseCumulativeAsTrueOrCurrent; }
void SetTopologicalDimension(int); void SetTopologicalDimension(int);
...@@ -430,15 +433,15 @@ class PIPELINE_API avtDataAttributes ...@@ -430,15 +433,15 @@ class PIPELINE_API avtDataAttributes
bool HasInvTransform(void); bool HasInvTransform(void);
void SetInvTransform(const double *); void SetInvTransform(const double *);
const avtMatrix *GetInvTransform(void) { return invTransform;}; const avtMatrix *GetInvTransform(void) const { return invTransform;};
bool GetCanUseInvTransform(void) bool GetCanUseInvTransform(void) const
{ return canUseInvTransform;}; { return canUseInvTransform;};
void SetCanUseInvTransform(bool b) { canUseInvTransform =b;}; void SetCanUseInvTransform(bool b) { canUseInvTransform =b;};
bool HasTransform(void); bool HasTransform(void);
void SetTransform(const double *); void SetTransform(const double *);
const avtMatrix *GetTransform(void) { return transform;}; const avtMatrix *GetTransform(void) const { return transform;};
bool GetCanUseTransform(void) bool GetCanUseTransform(void) const
{ return canUseTransform;}; { return canUseTransform;};
void SetCanUseTransform(bool b) { canUseTransform =b;}; void SetCanUseTransform(bool b) { canUseTransform =b;};
......
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