C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
exprtk::details::variable_node< T > Class Template Reference
Inheritance diagram for exprtk::details::variable_node< T >:
[legend]
Collaboration diagram for exprtk::details::variable_node< T >:
[legend]

Public Member Functions

 variable_node ()
 
 variable_node (T &v)
 
bool operator< (const variable_node< T > &v) const
 
T value () const
 
Tref ()
 
const Tref () const
 
expression_node< T >::node_type type () const
 
- 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 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
 
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
 
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
 
- Public Member Functions inherited from exprtk::details::ivariable< T >
virtual ~ivariable ()
 

Static Public Attributes

static T null_value = T(std::numeric_limits<T>::quiet_NaN())
 

Private Attributes

Tvalue_
 

Additional Inherited Members

- 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_vecdefass , 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
}
 
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_tnoderef_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 Attributes inherited from exprtk::details::node_depth_base< expression_node< T > >
bool depth_set
 
std::size_t depth
 

Detailed Description

template<typename T>
class exprtk::details::variable_node< T >

Definition at line 8105 of file exprtk.hpp.

Constructor & Destructor Documentation

◆ variable_node() [1/2]

template<typename T >
exprtk::details::variable_node< T >::variable_node ( )
inlineexplicit

Definition at line 8113 of file exprtk.hpp.

◆ variable_node() [2/2]

template<typename T >
exprtk::details::variable_node< T >::variable_node ( T v)
inlineexplicit

Definition at line 8117 of file exprtk.hpp.

8118 : value_(&v)
8119 {}

Member Function Documentation

◆ operator<()

template<typename T >
bool exprtk::details::variable_node< T >::operator< ( const variable_node< T > &  v) const
inline

Definition at line 8121 of file exprtk.hpp.

8122 {
8123 return this < (&v);
8124 }

◆ ref() [1/2]

template<typename T >
T & exprtk::details::variable_node< T >::ref ( )
inlinevirtual

◆ ref() [2/2]

template<typename T >
const T & exprtk::details::variable_node< T >::ref ( ) const
inlinevirtual

Implements exprtk::details::ivariable< T >.

Definition at line 8136 of file exprtk.hpp.

8137 {
8138 return (*value_);
8139 }

References exprtk::details::variable_node< T >::value_.

◆ type()

template<typename T >
expression_node< T >::node_type exprtk::details::variable_node< T >::type ( ) const
inlinevirtual

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

Definition at line 8141 of file exprtk.hpp.

◆ value()

template<typename T >
T exprtk::details::variable_node< T >::value ( ) const
inlinevirtual

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

Definition at line 8126 of file exprtk.hpp.

8127 {
8128 return (*value_);
8129 }

References exprtk::details::variable_node< T >::value_.

Member Data Documentation

◆ null_value

template<typename T >
T exprtk::details::variable_node< T >::null_value = T(std::numeric_limits<T>::quiet_NaN())
static

Definition at line 8111 of file exprtk.hpp.

◆ value_

template<typename T >
T* exprtk::details::variable_node< T >::value_
private

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