MongoDB  2.7.0
Public Member Functions | List of all members
mongo::optionenvironment::ImmutableKeyConstraint Class Reference

Implementation of a Constraint that makes a Value immutable. More...

#include <constraints.h>

Inheritance diagram for mongo::optionenvironment::ImmutableKeyConstraint:
mongo::optionenvironment::KeyConstraint mongo::optionenvironment::Constraint

Public Member Functions

 ImmutableKeyConstraint (const Key &k)
 
- Public Member Functions inherited from mongo::optionenvironment::KeyConstraint
 KeyConstraint (const Key &key)
 
- Public Member Functions inherited from mongo::optionenvironment::Constraint
Status operator() (const Environment &env)
 

Additional Inherited Members

- Protected Attributes inherited from mongo::optionenvironment::KeyConstraint
Key _key
 

Detailed Description

Implementation of a Constraint that makes a Value immutable.

Fails if the Value has already been set and we are attempting to set it to a different Value. Note that setting it to the same value is allowed in this implementation


The documentation for this class was generated from the following files: