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

#include <exprtk.hpp>

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

Public Types

typedef expression_node< T > * expression_ptr
typedef Operation operation_t
typedef str_xroxr_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_xroxr_node (SType0 p0, SType1 p1, RangePack rp0, RangePack rp1)
 ~str_xroxr_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 rp0_
RangePack rp1_

Private Member Functions

 str_xroxr_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_xroxr_node< T, SType0, SType1, RangePack, Operation >

Definition at line 18743 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_xroxr_node< T, SType0, SType1, RangePack, Operation >::expression_ptr

Definition at line 18747 of file exprtk.hpp.

◆ node_type

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

Definition at line 18749 of file exprtk.hpp.

◆ operation_t

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

Definition at line 18748 of file exprtk.hpp.

Constructor & Destructor Documentation

◆ str_xroxr_node() [1/2]

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

Definition at line 18752 of file exprtk.hpp.

References rp0_, rp1_, s0_, and s1_.

◆ ~str_xroxr_node()

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

Definition at line 18759 of file exprtk.hpp.

18760 {
18761 rp0_.free();
18762 rp1_.free();
18763 }

References exprtk_override, rp0_, and rp1_.

◆ str_xroxr_node() [2/2]

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
exprtk::details::str_xroxr_node< T, SType0, SType1, RangePack, Operation >::str_xroxr_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_xroxr_node< T, SType0, SType1, RangePack, Operation >::operation ( ) const
inlinevirtual

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

Definition at line 18792 of file exprtk.hpp.

18793 {
18794 return Operation::operation();
18795 }

References exprtk_override.

◆ operator=()

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
node_type & exprtk::details::str_xroxr_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_xroxr_node< T, SType0, SType1, RangePack, Operation >::s0 ( )
inline

Definition at line 18797 of file exprtk.hpp.

18798 {
18799 return s0_;
18800 }

References s0_.

◆ s1()

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

Definition at line 18802 of file exprtk.hpp.

18803 {
18804 return s1_;
18805 }

References s1_.

◆ type()

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

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

Definition at line 18787 of file exprtk.hpp.

18788 {
18789 return Operation::type();
18790 }

References exprtk_override.

◆ value()

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

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

Definition at line 18765 of file exprtk.hpp.

18766 {
18767 std::size_t r0_0 = 0;
18768 std::size_t r0_1 = 0;
18769 std::size_t r1_0 = 0;
18770 std::size_t r1_1 = 0;
18771
18772 if (
18773 rp0_(r0_0, r1_0, s0_) &&
18774 rp1_(r0_1, r1_1, s1_)
18775 )
18776 {
18777 return Operation::process
18778 (
18779 s0_.substr(r0_0, (r1_0 - r0_0)),
18780 s1_.substr(r0_1, (r1_1 - r0_1))
18781 );
18782 }
18783 else
18784 return T(0);
18785 }

References exprtk_override, rp0_, rp1_, s0_, and s1_.

Member Data Documentation

◆ rp0_

template<typename T, typename SType0, typename SType1, typename RangePack, typename Operation>
RangePack exprtk::details::str_xroxr_node< T, SType0, SType1, RangePack, Operation >::rp0_
protected

Definition at line 18811 of file exprtk.hpp.

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

◆ rp1_

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

Definition at line 18812 of file exprtk.hpp.

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

◆ s0_

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

Definition at line 18809 of file exprtk.hpp.

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

◆ s1_

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

Definition at line 18810 of file exprtk.hpp.

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


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