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_day Class Reference

Represent a day of the month (range 1 - 31) More...

#include <greg_day.hpp>

Inheritance diagram for boost::gregorian::greg_day:
Collaboration diagram for boost::gregorian::greg_day:

Public Types

typedef value_policies::value_type value_type
 

Public Member Functions

 greg_day (unsigned short day_of_month)
 
unsigned short as_number () const
 
 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 1 - 31)

This small class allows for simple conversion an integer value into a day of the month for a standard gregorian calendar. The type is automatically range checked so values outside of the range 1-31 will cause a bad_day_of_month exception

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_day::greg_day ( unsigned short  day_of_month)
inline

Member Function Documentation

unsigned short boost::gregorian::greg_day::as_number ( ) const
inline
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_day::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: