Logo Search packages:      
Sourcecode: agave version File versions  Download package

gcs::CheckedInt< low, high, ValueChecker > Class Template Reference

#include <gcs-checked-int.h>

List of all members.

Detailed Description

template<int low, int high, template< int, int > class ValueChecker = OutOfBoundsThrower>
class gcs::CheckedInt< low, high, ValueChecker >

A range-check integer type

The upper and lower limit can be defined, as well as the behavior when the limits are exceeded

Definition at line 103 of file gcs-checked-int.h.

Public Member Functions

 CheckedInt (int i=low)
 operator int () const
CheckedIntoperator*= (int incr)
const CheckedInt operator+ (const CheckedInt &other) const
const CheckedInt operator++ (int)
CheckedIntoperator++ ()
CheckedIntoperator+= (int incr)
CheckedIntoperator-= (int incr)
CheckedIntoperator= (int i)

Public Attributes

int value

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

Generated by  Doxygen 1.6.0   Back to index