Chi-Tech
chi_data_types::AllowableRangeList Class Reference

#include <allowable_range.h>

Inheritance diagram for chi_data_types::AllowableRangeList:
chi_data_types::AllowableRange

Public Member Functions

template<typename T >
 AllowableRangeList (const std::initializer_list< T > &raw_list)
 
template<typename T >
 AllowableRangeList (const std::vector< T > &raw_list)
 
- Public Member Functions inherited from chi_data_types::AllowableRange
template<typename T >
bool IsAllowable (const T &value)
 
template<typename T >
std::string OutOfRangeString (const std::string &scope, const T &value) const
 
std::string PrintRange ()
 
virtual ~AllowableRange ()=default
 

Static Public Member Functions

template<typename T >
static std::unique_ptr< AllowableRangeListNew (const std::initializer_list< T > &raw_list)
 
template<typename T >
static std::unique_ptr< AllowableRangeListNew (const std::vector< T > &raw_list)
 

Protected Member Functions

bool ChildIsAllowable (Varying value) const override
 
std::string AllowableRangeStr () const override
 
virtual bool ChildIsAllowable (Varying value) const =0
 
virtual std::string AllowableRangeStr () const =0
 

Protected Attributes

std::vector< Varyinglist_
 

Detailed Description

Range comprising a list of values.

Definition at line 53 of file allowable_range.h.

Constructor & Destructor Documentation

◆ AllowableRangeList() [1/2]

template<typename T >
chi_data_types::AllowableRangeList::AllowableRangeList ( const std::initializer_list< T > &  raw_list)
inline

Definition at line 60 of file allowable_range.h.

◆ AllowableRangeList() [2/2]

template<typename T >
chi_data_types::AllowableRangeList::AllowableRangeList ( const std::vector< T > &  raw_list)
inline

Definition at line 67 of file allowable_range.h.

Member Function Documentation

◆ AllowableRangeStr()

std::string chi_data_types::AllowableRangeList::AllowableRangeStr ( ) const
inlineoverrideprotectedvirtual

Implements chi_data_types::AllowableRange.

Definition at line 94 of file allowable_range.h.

◆ ChildIsAllowable()

bool chi_data_types::AllowableRangeList::ChildIsAllowable ( Varying  value) const
inlineoverrideprotectedvirtual

Implements chi_data_types::AllowableRange.

Definition at line 90 of file allowable_range.h.

◆ New() [1/2]

template<typename T >
static std::unique_ptr< AllowableRangeList > chi_data_types::AllowableRangeList::New ( const std::initializer_list< T > &  raw_list)
inlinestatic

Definition at line 75 of file allowable_range.h.

◆ New() [2/2]

template<typename T >
static std::unique_ptr< AllowableRangeList > chi_data_types::AllowableRangeList::New ( const std::vector< T > &  raw_list)
inlinestatic

Definition at line 83 of file allowable_range.h.

Field Documentation

◆ list_

std::vector<Varying> chi_data_types::AllowableRangeList::list_
protected

Definition at line 56 of file allowable_range.h.


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