Couchbase C++ SDK 1.0.2 (rev. 51f4775)
Loading...
Searching...
No Matches
date_range Class Reference

Date range for date_range_facet. More...

#include <couchbase/date_range.hxx>

Public Member Functions

 date_range (std::string name, std::string start, std::string end)
 
 date_range (std::string name, std::chrono::system_clock::time_point start, std::chrono::system_clock::time_point end)
 
 date_range (std::string name, std::tm start, std::tm end)
 
auto name () const -> const std::string &
 
auto start () const -> const std::optional< std::string > &
 
auto end () const -> const std::optional< std::string > &
 

Static Public Member Functions

static date_range with_start (std::string name, std::string start)
 
static date_range with_start (std::string name, std::chrono::system_clock::time_point start)
 
static date_range with_start (std::string name, std::tm start)
 
static date_range with_end (std::string name, std::string end)
 
static date_range with_end (std::string name, std::chrono::system_clock::time_point end)
 
static date_range with_end (std::string name, std::tm end)
 

Detailed Description

Date range for date_range_facet.

Constructor & Destructor Documentation

◆ date_range() [1/3]

date_range ( std::string name,
std::string start,
std::string end )

◆ date_range() [2/3]

date_range ( std::string name,
std::chrono::system_clock::time_point start,
std::chrono::system_clock::time_point end )

◆ date_range() [3/3]

date_range ( std::string name,
std::tm start,
std::tm end )

Member Function Documentation

◆ end()

auto end ( ) const -> const std::optional<std::string>&
inlinenodiscard

◆ name()

auto name ( ) const -> const std::string&
inlinenodiscard

◆ start()

auto start ( ) const -> const std::optional<std::string>&
inlinenodiscard

◆ with_end() [1/3]

static date_range with_end ( std::string name,
std::chrono::system_clock::time_point end )
static

◆ with_end() [2/3]

static date_range with_end ( std::string name,
std::string end )
static

◆ with_end() [3/3]

static date_range with_end ( std::string name,
std::tm end )
static

◆ with_start() [1/3]

static date_range with_start ( std::string name,
std::chrono::system_clock::time_point start )
static

◆ with_start() [2/3]

static date_range with_start ( std::string name,
std::string start )
static

◆ with_start() [3/3]

static date_range with_start ( std::string name,
std::tm start )
static

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