Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Misc - ConstBodyC
 

  PUBLIC
ConstBodyC::ConstBodyC(void)
ConstBodyC::IsConst(void) const
ConstBodyC::MakeConst(void)
ConstBodyC::AssertConst(void) const
ConstBodyC::AssertNotConst(void) const

   ConstBodyC   
 
Constant flag mix-in class.
 
include "Ravl/Const.hh"
Source file:Ravl/Core/Base/Const.hh
User Level:Develop
Library:RavlCore
In Scope:RavlN

Comments:
This class can be used to ensure that an object is not modified if some other class requires that it remains constant.

Once an object is made constant it may not be reset. Any object using this class should place AssertNonConst(), in all methods that modify its contents.

Variables:
bool isConst;

Methods:
ConstBodyC()
Default constructor.
sets the object to constant.

bool IsConst() const
Return const state.

void MakeConst()
Make object constant.

void AssertConst() const
Assert that an object must be const.

void AssertNotConst() const
Assert that an object must not be const.


Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002