irafhy
Interval arithmetic based Reachability Analysis Framework for Hybrid Automaton
irafhy::UnaryItem Class Reference

#include <unaryItem.h>

Collaboration diagram for irafhy::UnaryItem:
Collaboration graph

Public Member Functions

 UnaryItem ()=default
 constructor More...
 
 UnaryItem (const Item &operand, const UNARY &unaryOperator)
 constructor with given operand and operator More...
 
 ~UnaryItem ()=default
 destructor More...
 
std::function< capd::autodiff::Node(capd::autodiff::Node, capd::autodiff::Node[], int, capd::autodiff::Node[], int)> arithmetic () const
 get the arithmetic function of the unary item More...
 
capd::interval value (const capd::interval &t, const std::vector< capd::interval > &in, const std::vector< capd::interval > &params)
 get the value of the current unary item More...
 

Private Attributes

std::shared_ptr< Itemoperand_
 pointer to the operand More...
 
UNARY operator_
 what kind of operation of the unary item indicates More...
 

Friends

std::ostream & operator<< (std::ostream &out, const UnaryItem &rhs)
 out the given unary item to standard out stream More...
 

Constructor & Destructor Documentation

◆ UnaryItem() [1/2]

irafhy::UnaryItem::UnaryItem ( )
default

constructor

◆ UnaryItem() [2/2]

irafhy::UnaryItem::UnaryItem ( const Item operand,
const UNARY unaryOperator 
)

constructor with given operand and operator

Parameters
operandgiven operand
unaryOperatorgiven operator

References operand_, and operator_.

◆ ~UnaryItem()

irafhy::UnaryItem::~UnaryItem ( )
default

destructor

Member Function Documentation

◆ arithmetic()

std::function< capd::autodiff::Node(capd::autodiff::Node, capd::autodiff::Node[], int, capd::autodiff::Node[], int)> irafhy::UnaryItem::arithmetic ( ) const

◆ value()

capd::interval irafhy::UnaryItem::value ( const capd::interval &  t,
const std::vector< capd::interval > &  in,
const std::vector< capd::interval > &  params 
)

get the value of the current unary item

Parameters
ttime variable
invalues of the given variables
paramsother necessary parameters
Returns
the value of the current unary item

References irafhy::ACOS, irafhy::ACOSH, irafhy::ACOT, irafhy::ACOTH, irafhy::ASIN, irafhy::ASINH, irafhy::ATAN, irafhy::ATANH, irafhy::COS, irafhy::COSH, irafhy::COT, irafhy::COTH, irafhy::LN, irafhy::LOG, irafhy::NEXP, operand_, operator_, irafhy::OPPOSITE, irafhy::SIN, irafhy::SINH, irafhy::SQR, irafhy::SQRT, irafhy::TAN, and irafhy::TANH.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const UnaryItem rhs 
)
friend

out the given unary item to standard out stream

Parameters
outgiven out stream
rhsgiven unary item
Returns
resulting out stream

Member Data Documentation

◆ operand_

std::shared_ptr<Item> irafhy::UnaryItem::operand_
private

pointer to the operand

Referenced by arithmetic(), irafhy::operator<<(), UnaryItem(), and value().

◆ operator_

UNARY irafhy::UnaryItem::operator_
private

what kind of operation of the unary item indicates

Referenced by arithmetic(), irafhy::operator<<(), UnaryItem(), and value().


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