Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::gregorian::greg_year Class Reference

Represent a day of the month (range 1900 - 10000) More...

#include <greg_year.hpp>

Inheritance diagram for boost::gregorian::greg_year:
Collaboration diagram for boost::gregorian::greg_year:

Public Types

typedef value_policies::value_type value_type
 

Public Member Functions

 greg_year (unsigned short year)
 
 operator unsigned short () const
 
 operator value_type () const
 Coerce into the representation type. More...
 

Static Public Member Functions

static value_type max BOOST_PREVENT_MACRO_SUBSTITUTION ()
 Return the max allowed value (traits method) More...
 
static value_type min BOOST_PREVENT_MACRO_SUBSTITUTION ()
 Return the min allowed value (traits method) More...
 

Protected Attributes

value_type value_
 

Detailed Description

Represent a day of the month (range 1900 - 10000)

This small class allows for simple conversion an integer value into a year for the gregorian calendar. This currently only allows a range of 1900 to 10000. Both ends of the range are a bit arbitrary at the moment, but they are the limits of current testing of the library. As such they may be increased in the future.

Member Typedef Documentation

template<class value_policies >
typedef value_policies::value_type boost::CV::constrained_value< value_policies >::value_type
inherited

Constructor & Destructor Documentation

boost::gregorian::greg_year::greg_year ( unsigned short  year)
inline

Member Function Documentation

template<class value_policies >
static value_type max boost::CV::constrained_value< value_policies >::BOOST_PREVENT_MACRO_SUBSTITUTION ( )
inlinestaticinherited

Return the max allowed value (traits method)

References boost::accumulators::extract::max.

template<class value_policies >
static value_type min boost::CV::constrained_value< value_policies >::BOOST_PREVENT_MACRO_SUBSTITUTION ( )
inlinestaticinherited

Return the min allowed value (traits method)

References boost::accumulators::extract::min.

boost::gregorian::greg_year::operator unsigned short ( ) const
inline
template<class value_policies >
boost::CV::constrained_value< value_policies >::operator value_type ( ) const
inlineinherited

Coerce into the representation type.

References boost::CV::constrained_value< value_policies >::value_.

Member Data Documentation


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