C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation > Class Template Reference

#include <exprtk.hpp>

Inheritance diagram for exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >:
[legend]
Collaboration diagram for exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >:
[legend]

Public Types

typedef expression_node< T > * expression_ptr
typedef Operation operation_t
typedef str_xoxr_node< T, SType0, SType1, RangePack, Operation > node_type
Public Types inherited from exprtk::details::expression_node< T >
enum  node_type {
  e_none , e_null , e_constant , e_unary ,
  e_binary , e_binary_ext , e_trinary , e_quaternary ,
  e_vararg , e_conditional , e_while , e_repeat ,
  e_for , e_switch , e_mswitch , e_return ,
  e_retenv , e_variable , e_stringvar , e_stringconst ,
  e_stringvarrng , e_cstringvarrng , e_strgenrange , e_strconcat ,
  e_stringvarsize , e_strswap , e_stringsize , e_stringvararg ,
  e_function , e_vafunction , e_genfunction , e_strfunction ,
  e_strcondition , e_strccondition , e_add , e_sub ,
  e_mul , e_div , e_mod , e_pow ,
  e_lt , e_lte , e_gt , e_gte ,
  e_eq , e_ne , e_and , e_nand ,
  e_or , e_nor , e_xor , e_xnor ,
  e_in , e_like , e_ilike , e_inranges ,
  e_ipow , e_ipowinv , e_abs , e_acos ,
  e_acosh , e_asin , e_asinh , e_atan ,
  e_atanh , e_ceil , e_cos , e_cosh ,
  e_exp , e_expm1 , e_floor , e_log ,
  e_log10 , e_log2 , e_log1p , e_neg ,
  e_pos , e_round , e_sin , e_sinc ,
  e_sinh , e_sqrt , e_tan , e_tanh ,
  e_cot , e_sec , e_csc , e_r2d ,
  e_d2r , e_d2g , e_g2d , e_notl ,
  e_sgn , e_erf , e_erfc , e_ncdf ,
  e_frac , e_trunc , e_uvouv , e_vov ,
  e_cov , e_voc , e_vob , e_bov ,
  e_cob , e_boc , e_vovov , e_vovoc ,
  e_vocov , e_covov , e_covoc , e_vovovov ,
  e_vovovoc , e_vovocov , e_vocovov , e_covovov ,
  e_covocov , e_vocovoc , e_covovoc , e_vococov ,
  e_sf3ext , e_sf4ext , e_nulleq , e_strass ,
  e_vector , e_vecsize , e_vecelem , e_veccelem ,
  e_vecelemrtc , e_veccelemrtc , e_rbvecelem , e_rbvecelemrtc ,
  e_rbveccelem , e_rbveccelemrtc , e_vecinit , e_vecvalass ,
  e_vecvecass , e_vecopvalass , e_vecopvecass , e_vecfunc ,
  e_vecvecswap , e_vecvecineq , e_vecvalineq , e_valvecineq ,
  e_vecvecarith , e_vecvalarith , e_valvecarith , e_vecunaryop ,
  e_vecondition , e_break , e_continue , e_swap ,
  e_assert
}
typedef T value_type
typedef expression_node< T > * expression_ptr
typedef node_collector_interface< expression_node< T > > nci_t
typedef nci_t::noderef_list_t noderef_list_t
typedef node_depth_base< expression_node< T > > ndb_t
Public Types inherited from exprtk::details::node_collector_interface< expression_node< T > >
typedef expression_node< T > * node_ptr_t
typedef expression_node< T > ** node_pp_t
typedef std::vector< node_pp_t > noderef_list_t
Public Types inherited from exprtk::details::node_depth_base< expression_node< T > >
typedef expression_node< T > * node_ptr_t
typedef std::pair< node_ptr_t, bool > nb_pair_t

Public Member Functions

 str_xoxr_node (SType0 p0, SType1 p1, RangePack rp1)
 ~str_xoxr_node ()
T value () const
expression_node< T >::node_type type () const
operator_type operation () const
std::string & s0 ()
std::string & s1 ()
Public Member Functions inherited from exprtk::details::sos_base_node< T >
virtual ~sos_base_node ()
Public Member Functions inherited from exprtk::details::expression_node< T >
virtual ~expression_node ()
virtual expression_node< T > * branch (const std::size_t &index=0) const
virtual bool valid () const
Public Member Functions inherited from exprtk::details::node_collector_interface< expression_node< T > >
virtual ~node_collector_interface ()
virtual void collect_nodes (noderef_list_t &)
Public Member Functions inherited from exprtk::details::node_depth_base< expression_node< T > >
 node_depth_base ()
virtual ~node_depth_base ()
virtual std::size_t node_depth () const
std::size_t compute_node_depth (const expression_node< T > *const &node) const
std::size_t compute_node_depth (const nb_pair_t &branch) const
std::size_t compute_node_depth (const nb_pair_t(&branch)[N]) const
std::size_t max_node_depth (const BranchType &n0, const BranchType &n1) const
std::size_t max_node_depth (const BranchType &n0, const BranchType &n1, const BranchType &n2) const
std::size_t max_node_depth (const BranchType &n0, const BranchType &n1, const BranchType &n2, const BranchType &n3) const
std::size_t compute_node_depth (const BranchType &n0, const BranchType &n1) const
std::size_t compute_node_depth (const BranchType &n0, const BranchType &n1, const BranchType &n2) const
std::size_t compute_node_depth (const BranchType &n0, const BranchType &n1, const BranchType &n2, const BranchType &n3) const
std::size_t compute_node_depth (const Sequence< node_ptr_t, Allocator > &branch_list) const
std::size_t compute_node_depth (const Sequence< nb_pair_t, Allocator > &branch_list) const
void collect (node_ptr_t const &node, const bool deletable, NodeSequence &delete_node_list) const
void collect (const nb_pair_t &branch, NodeSequence &delete_node_list) const
void collect (expression_node< T > *&node, NodeSequence &delete_node_list) const
void collect (const nb_pair_t(&branch)[N], NodeSequence &delete_node_list) const
void collect (const Sequence< nb_pair_t, Allocator > &branch, NodeSequence &delete_node_list) const
void collect (const Sequence< node_ptr_t, Allocator > &branch_list, NodeSequence &delete_node_list) const
void collect (const Sequence< node_ptr_t, AllocatorT > &branch_list, const Sequence< Boolean, AllocatorB > &branch_deletable_list, NodeSequence &delete_node_list) const

Protected Attributes

SType0 s0_
SType1 s1_
RangePack rp1_

Private Member Functions

 str_xoxr_node (const node_type &)
node_type & operator= (const node_type &)

Additional Inherited Members

Public Attributes inherited from exprtk::details::node_depth_base< expression_node< T > >
bool depth_set
std::size_t depth

Detailed Description

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
class exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >

Definition at line 18673 of file exprtk.hpp.

Member Typedef Documentation

◆ expression_ptr

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
typedef expression_node<T>* exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::expression_ptr

Definition at line 18677 of file exprtk.hpp.

◆ node_type

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
typedef str_xoxr_node<T,SType0,SType1,RangePack,Operation> exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::node_type

Definition at line 18679 of file exprtk.hpp.

◆ operation_t

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
typedef Operation exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::operation_t

Definition at line 18678 of file exprtk.hpp.

Constructor & Destructor Documentation

◆ str_xoxr_node() [1/2]

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::str_xoxr_node ( SType0 p0,
SType1 p1,
RangePack rp1 )
inlineexplicit

Definition at line 18682 of file exprtk.hpp.

References rp1_, s0_, and s1_.

◆ ~str_xoxr_node()

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::~str_xoxr_node ( )
inline

Definition at line 18688 of file exprtk.hpp.

18689 {
18690 rp1_.free();
18691 }

References rp1_.

◆ str_xoxr_node() [2/2]

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::str_xoxr_node ( const node_type & )
private

References exprtk_delete.

Member Function Documentation

◆ operation()

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
operator_type exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::operation ( ) const
inlinevirtual

Reimplemented from exprtk::details::sos_base_node< T >.

Definition at line 18715 of file exprtk.hpp.

18716 {
18717 return Operation::operation();
18718 }

References exprtk_override.

◆ operator=()

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
node_type & exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::operator= ( const node_type & )
private

References exprtk_delete.

◆ s0()

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
std::string & exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::s0 ( )
inline

Definition at line 18720 of file exprtk.hpp.

18721 {
18722 return s0_;
18723 }

References s0_.

◆ s1()

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
std::string & exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::s1 ( )
inline

Definition at line 18725 of file exprtk.hpp.

18726 {
18727 return s1_;
18728 }

References s1_.

◆ type()

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
expression_node< T >::node_type exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::type ( ) const
inlinevirtual

Reimplemented from exprtk::details::expression_node< T >.

Definition at line 18710 of file exprtk.hpp.

18711 {
18712 return Operation::type();
18713 }

References exprtk_override.

◆ value()

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
T exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::value ( ) const
inlinevirtual

Reimplemented from exprtk::details::expression_node< T >.

Definition at line 18693 of file exprtk.hpp.

18694 {
18695 std::size_t r0 = 0;
18696 std::size_t r1 = 0;
18697
18698 if (rp1_(r0, r1, s1_))
18699 {
18700 return Operation::process
18701 (
18702 s0_,
18703 s1_.substr(r0, (r1 - r0))
18704 );
18705 }
18706 else
18707 return T(0);
18708 }

References exprtk_override, rp1_, s0_, and s1_.

Member Data Documentation

◆ rp1_

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
RangePack exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::rp1_
protected

Definition at line 18734 of file exprtk.hpp.

Referenced by str_xoxr_node(), value(), and ~str_xoxr_node().

◆ s0_

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
SType0 exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::s0_
protected

Definition at line 18732 of file exprtk.hpp.

Referenced by s0(), str_xoxr_node(), and value().

◆ s1_

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
SType1 exprtk::details::str_xoxr_node< T, SType0, SType1, RangePack, Operation >::s1_
protected

Definition at line 18733 of file exprtk.hpp.

Referenced by s1(), str_xoxr_node(), and value().


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