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

Implementation of a Constraint on the range of a numeric Value. More...

#include <constraints.h>

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

Public Member Functions

 NumericKeyConstraint (const Key &k, long min, long max)
 
- 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 on the range of a numeric Value.

Fails if the Value is not a number, or if it is a number but outside the given range


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