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

this class that represents a set of periods, More...

#include <date_time.hpp>

Public Member Functions

 date_time_period_set ()
 Default constructor - empty set. More...
 
 date_time_period_set (period::period_type f)
 Create a set of single period with value 1. More...
 
 date_time_period_set (date_time_period const &fl)
 Create a set of single period fl. More...
 
void add (date_time_period f)
 Append date_time_period f to the set. More...
 
size_t size () const
 Get number if items in list. More...
 
date_time_period const & operator[] (size_t n) const
 Get item at position n the set, n should be in range [0,size) More...
 

Detailed Description

this class that represents a set of periods,

It is generally created by operations on periods: 1995*year + 3*month + 1*day. Note: operations are not commutative.

Constructor & Destructor Documentation

boost::locale::date_time_period_set::date_time_period_set ( )
inline

Default constructor - empty set.

boost::locale::date_time_period_set::date_time_period_set ( period::period_type  f)
inline

Create a set of single period with value 1.

boost::locale::date_time_period_set::date_time_period_set ( date_time_period const &  fl)
inline

Create a set of single period fl.

Member Function Documentation

void boost::locale::date_time_period_set::add ( date_time_period  f)
inline

Append date_time_period f to the set.

References boost::n, and size().

Referenced by boost::locale::operator+(), and boost::locale::operator-().

date_time_period const& boost::locale::date_time_period_set::operator[] ( size_t  n) const
inline

Get item at position n the set, n should be in range [0,size)

References boost::n, and size().

size_t boost::locale::date_time_period_set::size ( void  ) const
inline

Get number if items in list.

Referenced by add(), boost::locale::operator+(), boost::locale::operator-(), and operator[]().


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