PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::Interval< Real > Class Template Reference

#include <Interval.h>

Public Member Functions

DYN_FUNC Interval ()
 
DYN_FUNC Interval (Real min_val, Real max_val, bool lOpen=false, bool rOpen=false)
 
DYN_FUNC Interval (const Interval< Real > &interval)
 
DYN_FUNC Interval< Real > & operator= (const Interval< Real > &interval)
 
DYN_FUNC bool operator== (const Interval< Real > &interval)
 
DYN_FUNC bool operator!= (const Interval< Real > &interval)
 
DYN_FUNC ~Interval ()
 
DYN_FUNC Real size () const
 
DYN_FUNC Real leftLimit () const
 
DYN_FUNC Real rightLimit () const
 
DYN_FUNC bool isLeftOpen () const
 
DYN_FUNC bool isRightOpen () const
 
DYN_FUNC void setLeftLimit (Real val, bool bOpen=false)
 
DYN_FUNC void setRightLimit (Real val, bool bOpen=false)
 
DYN_FUNC bool inside (Real val) const
 
DYN_FUNC bool outside (Real val) const
 
DYN_FUNC Interval< Realintersect (const Interval< Real > &itv) const
 
DYN_FUNC bool isEmpty () const
 

Static Public Member Functions

static DYN_FUNC Interval< RealunitInterval ()
 

Private Attributes

Real v0
 
Real v1
 
bool leftOpen
 
bool rightOpen
 

Detailed Description

template<typename Real>
class dyno::Interval< Real >

Definition at line 11 of file Interval.h.

Constructor & Destructor Documentation

◆ Interval() [1/3]

template<typename Real>
DYN_FUNC dyno::Interval< Real >::Interval ( )

Definition at line 7 of file Interval.inl.

Here is the caller graph for this function:

◆ Interval() [2/3]

template<typename Real>
DYN_FUNC dyno::Interval< Real >::Interval ( Real min_val,
Real max_val,
bool lOpen = false,
bool rOpen = false )

Definition at line 16 of file Interval.inl.

◆ Interval() [3/3]

template<typename Real>
DYN_FUNC dyno::Interval< Real >::Interval ( const Interval< Real > & interval)

Definition at line 25 of file Interval.inl.

Here is the call graph for this function:

◆ ~Interval()

template<typename Real>
DYN_FUNC dyno::Interval< Real >::~Interval ( )

Definition at line 60 of file Interval.inl.

Member Function Documentation

◆ inside()

template<typename Real>
DYN_FUNC bool dyno::Interval< Real >::inside ( Real val) const

Definition at line 97 of file Interval.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intersect()

template<typename Real>
DYN_FUNC Interval< Real > dyno::Interval< Real >::intersect ( const Interval< Real > & itv) const

Definition at line 119 of file Interval.inl.

Here is the call graph for this function:

◆ isEmpty()

template<typename Real>
DYN_FUNC bool dyno::Interval< Real >::isEmpty ( ) const

Definition at line 132 of file Interval.inl.

Here is the caller graph for this function:

◆ isLeftOpen()

template<typename Real>
DYN_FUNC bool dyno::Interval< Real >::isLeftOpen ( ) const

Definition at line 71 of file Interval.inl.

◆ isRightOpen()

template<typename Real>
DYN_FUNC bool dyno::Interval< Real >::isRightOpen ( ) const

Definition at line 77 of file Interval.inl.

◆ leftLimit()

template<typename Real>
DYN_FUNC Real dyno::Interval< Real >::leftLimit ( ) const
inline

Definition at line 24 of file Interval.h.

Here is the caller graph for this function:

◆ operator!=()

template<typename Real>
DYN_FUNC bool dyno::Interval< Real >::operator!= ( const Interval< Real > & interval)

Definition at line 54 of file Interval.inl.

Here is the call graph for this function:

◆ operator=()

template<typename Real>
DYN_FUNC Interval< Real > & dyno::Interval< Real >::operator= ( const Interval< Real > & interval)

Definition at line 35 of file Interval.inl.

Here is the call graph for this function:

◆ operator==()

template<typename Real>
DYN_FUNC bool dyno::Interval< Real >::operator== ( const Interval< Real > & interval)

Definition at line 45 of file Interval.inl.

Here is the call graph for this function:

◆ outside()

template<typename Real>
DYN_FUNC bool dyno::Interval< Real >::outside ( Real val) const

Definition at line 113 of file Interval.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rightLimit()

template<typename Real>
DYN_FUNC Real dyno::Interval< Real >::rightLimit ( ) const
inline

Definition at line 25 of file Interval.h.

Here is the caller graph for this function:

◆ setLeftLimit()

template<typename Real>
DYN_FUNC void dyno::Interval< Real >::setLeftLimit ( Real val,
bool bOpen = false )

Definition at line 83 of file Interval.inl.

◆ setRightLimit()

template<typename Real>
DYN_FUNC void dyno::Interval< Real >::setRightLimit ( Real val,
bool bOpen = false )

Definition at line 90 of file Interval.inl.

◆ size()

template<typename Real>
DYN_FUNC Real dyno::Interval< Real >::size ( ) const

Definition at line 65 of file Interval.inl.

◆ unitInterval()

template<typename Real>
DYN_FUNC Interval< Real > dyno::Interval< Real >::unitInterval ( )
static

Definition at line 138 of file Interval.inl.

Here is the call graph for this function:

Member Data Documentation

◆ leftOpen

template<typename Real>
bool dyno::Interval< Real >::leftOpen
private

Definition at line 43 of file Interval.h.

◆ rightOpen

template<typename Real>
bool dyno::Interval< Real >::rightOpen
private

Definition at line 43 of file Interval.h.

◆ v0

template<typename Real>
Real dyno::Interval< Real >::v0
private

Definition at line 42 of file Interval.h.

◆ v1

template<typename Real>
Real dyno::Interval< Real >::v1
private

Definition at line 42 of file Interval.h.


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