Reference » Collections and iterators » Collection » setError

Elgrint::Collection::setError(bool) method

Declaration (see MVector.h):

void setError(bool err);


Raises or lowers the error flag for this collection.


Name Type Description
err bool

The new value for the error flag.


If err is true, then the error flag is raised, otherwise it is lowered.

$setError(true) is called automatically by collections in case of an error. setError(false) can be called by reset, operator=, copy constructor, or swapWith. This function is needed mostly for internal use. However, one possible need for it is to lower the error flag to give the collection a "fresh start" while keeping the data.


Let us know

Please Contact us to report any errors on this page, or to suggest any improvements.

Miranor Home | About Miranor | About Elgrint | Create account | Login | Account settings | Contact Us | Privacy Policy | Site map

© Copyright 2014 by Miranor. All rights reserved. By using this site you agree to the Terms of Use.

Page last updated on August 10th, 2014.