Classes | Public Types | Public Member Functions | Protected Types | Static Protected Attributes | Private Member Functions | Private Attributes
exprtk::symbol_table< T > Class Template Reference

#include <exprtk.hpp>

List of all members.

Classes

struct  st_holder
struct  type_store
class  vector_holder

Public Types

typedef vector_holder< T > * vector_ptr

Public Member Functions

bool add_constant (const std::string &constant_name, const T &value)
bool add_constants ()
bool add_epsilon ()
bool add_function (const std::string &function_name, function_t &function)
bool add_infinity ()
bool add_pi ()
bool add_stringvar (const std::string &stringvar_name, std::string &s, const bool is_constant=false)
bool add_vararg_function (const std::string &vararg_function_name, vararg_function_t &vararg_function)
bool add_variable (const std::string &variable_name, T &t, const bool is_constant=false)
template<std::size_t N>
bool add_vector (const std::string &vector_name, T(&v)[N])
bool add_vector (const std::string &vector_name, T *v, const std::size_t &v_size)
template<typename Allocator >
bool add_vector (const std::string &vector_name, std::vector< T, Allocator > &v)
template<typename Allocator >
bool add_vector (const std::string &vector_name, std::deque< T, Allocator > &v)
void clear ()
void clear_functions ()
void clear_strings ()
void clear_variables (const bool delete_node=true)
void clear_vectors ()
bool create_stringvar (const std::string &stringvar_name, const std::string &value=std::string(""))
bool create_variable (const std::string &variable_name, const T &value=T(0))
std::size_t function_count () const
function_ptr get_function (const std::string &function_name)
stringvar_ptr get_stringvar (const std::string &string_name)
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t get_stringvar_list (Sequence< std::pair< std::string, std::string >, Allocator > &svlist) const
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t get_stringvar_list (Sequence< std::string, Allocator > &svlist) const
vararg_function_ptr get_vararg_function (const std::string &vararg_function_name)
variable_ptr get_variable (const std::string &variable_name)
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t get_variable_list (Sequence< std::pair< std::string, T >, Allocator > &vlist) const
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t get_variable_list (Sequence< std::string, Allocator > &vlist) const
vector_ptr get_vector (const std::string &vector_name)
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t get_vector_list (Sequence< std::string, Allocator > &vlist) const
bool is_constant_node (const std::string &symbol_name) const
bool is_constant_string (const std::string &symbol_name) const
bool is_conststr_stringvar (const std::string &symbol_name) const
bool is_function (const std::string &function_name) const
bool is_stringvar (const std::string &stringvar_name) const
bool is_vararg_function (const std::string &vararg_function_name) const
bool is_variable (const std::string &variable_name) const
bool is_vector (const std::string &vector_name) const
symbol_table< T > & operator= (const symbol_table< T > &st)
bool operator== (const symbol_table< T > &st)
bool remove_function (const std::string &function_name)
bool remove_stringvar (const std::string &string_name)
bool remove_vararg_function (const std::string &vararg_function_name)
bool remove_variable (const std::string &variable_name, const bool delete_node=true)
bool remove_vector (const std::string &vector_name)
std::size_t stringvar_count () const
std::string & stringvar_ref (const std::string &symbol_name)
bool symbol_exists (const std::string &symbol_name) const
 symbol_table ()
 symbol_table (const symbol_table< T > &st)
bool valid () const
std::size_t variable_count () const
Tvariable_ref (const std::string &symbol_name)
std::size_t vector_count () const
 ~symbol_table ()

Protected Types

typedef function_tfunction_ptr
typedef ifunction< Tfunction_t
typedef stringvar_tstringvar_ptr
typedef
details::stringvar_node< T
stringvar_t
typedef vararg_function_tvararg_function_ptr
typedef ivararg_function< Tvararg_function_t
typedef variable_tvariable_ptr
typedef details::variable_node< Tvariable_t

Static Protected Attributes

static const std::size_t lut_size = 256

Private Member Functions

st_holder::st_datalocal_data ()
const st_holder::st_datalocal_data () const
bool valid_symbol (const std::string &symbol) const

Private Attributes

st_holderholder_

Detailed Description

template<typename T>
class exprtk::symbol_table< T >

Definition at line 9521 of file exprtk.hpp.


Member Typedef Documentation

template<typename T>
typedef function_t* exprtk::symbol_table< T >::function_ptr [protected]

Definition at line 9956 of file exprtk.hpp.

template<typename T>
typedef ifunction<T> exprtk::symbol_table< T >::function_t [protected]

Definition at line 9954 of file exprtk.hpp.

template<typename T>
typedef stringvar_t* exprtk::symbol_table< T >::stringvar_ptr [protected]

Definition at line 9952 of file exprtk.hpp.

template<typename T>
typedef details::stringvar_node<T> exprtk::symbol_table< T >::stringvar_t [protected]

Definition at line 9951 of file exprtk.hpp.

template<typename T>
typedef vararg_function_t* exprtk::symbol_table< T >::vararg_function_ptr [protected]

Definition at line 9957 of file exprtk.hpp.

template<typename T>
typedef ivararg_function<T> exprtk::symbol_table< T >::vararg_function_t [protected]

Definition at line 9955 of file exprtk.hpp.

template<typename T>
typedef variable_t* exprtk::symbol_table< T >::variable_ptr [protected]

Definition at line 9949 of file exprtk.hpp.

template<typename T>
typedef details::variable_node<T> exprtk::symbol_table< T >::variable_t [protected]

Definition at line 9948 of file exprtk.hpp.

template<typename T>
typedef vector_holder<T>* exprtk::symbol_table< T >::vector_ptr

Definition at line 10172 of file exprtk.hpp.


Constructor & Destructor Documentation

template<typename T>
exprtk::symbol_table< T >::symbol_table ( ) [inline]

Definition at line 10021 of file exprtk.hpp.

template<typename T>
exprtk::symbol_table< T >::~symbol_table ( ) [inline]

Definition at line 10027 of file exprtk.hpp.

template<typename T>
exprtk::symbol_table< T >::symbol_table ( const symbol_table< T > &  st) [inline]

Definition at line 10039 of file exprtk.hpp.


Member Function Documentation

template<typename T>
bool exprtk::symbol_table< T >::add_constant ( const std::string &  constant_name,
const T value 
) [inline]

Definition at line 10274 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::add_constants ( ) [inline]

Definition at line 10418 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::add_epsilon ( ) [inline]

Definition at line 10431 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::add_function ( const std::string &  function_name,
function_t function 
) [inline]

Definition at line 10301 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::add_infinity ( ) [inline]

Definition at line 10437 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::add_pi ( ) [inline]

Definition at line 10425 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::add_stringvar ( const std::string &  stringvar_name,
std::string &  s,
const bool  is_constant = false 
) [inline]

Definition at line 10288 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::add_vararg_function ( const std::string &  vararg_function_name,
vararg_function_t vararg_function 
) [inline]

Definition at line 10313 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::add_variable ( const std::string &  variable_name,
T t,
const bool  is_constant = false 
) [inline]

Definition at line 10262 of file exprtk.hpp.

template<typename T>
template<std::size_t N>
bool exprtk::symbol_table< T >::add_vector ( const std::string &  vector_name,
T(&)  v[N] 
) [inline]

Definition at line 10326 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::add_vector ( const std::string &  vector_name,
T v,
const std::size_t &  v_size 
) [inline]

Definition at line 10338 of file exprtk.hpp.

template<typename T>
template<typename Allocator >
bool exprtk::symbol_table< T >::add_vector ( const std::string &  vector_name,
std::vector< T, Allocator > &  v 
) [inline]

Definition at line 10351 of file exprtk.hpp.

template<typename T>
template<typename Allocator >
bool exprtk::symbol_table< T >::add_vector ( const std::string &  vector_name,
std::deque< T, Allocator > &  v 
) [inline]

Definition at line 10364 of file exprtk.hpp.

template<typename T>
void exprtk::symbol_table< T >::clear ( ) [inline]

Definition at line 10087 of file exprtk.hpp.

template<typename T>
void exprtk::symbol_table< T >::clear_functions ( ) [inline]

Definition at line 10070 of file exprtk.hpp.

template<typename T>
void exprtk::symbol_table< T >::clear_strings ( ) [inline]

Definition at line 10075 of file exprtk.hpp.

template<typename T>
void exprtk::symbol_table< T >::clear_variables ( const bool  delete_node = true) [inline]

Definition at line 10065 of file exprtk.hpp.

template<typename T>
void exprtk::symbol_table< T >::clear_vectors ( ) [inline]

Definition at line 10082 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::create_stringvar ( const std::string &  stringvar_name,
const std::string &  value = std::string("") 
) [inline]

Definition at line 10248 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::create_variable ( const std::string &  variable_name,
const T value = T(0) 
) [inline]

Definition at line 10234 of file exprtk.hpp.

template<typename T>
std::size_t exprtk::symbol_table< T >::function_count ( ) const [inline]

Definition at line 10114 of file exprtk.hpp.

template<typename T>
function_ptr exprtk::symbol_table< T >::get_function ( const std::string &  function_name) [inline]

Definition at line 10152 of file exprtk.hpp.

template<typename T>
stringvar_ptr exprtk::symbol_table< T >::get_stringvar ( const std::string &  string_name) [inline]

Definition at line 10141 of file exprtk.hpp.

template<typename T>
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t exprtk::symbol_table< T >::get_stringvar_list ( Sequence< std::pair< std::string, std::string >, Allocator > &  svlist) const [inline]

Definition at line 10466 of file exprtk.hpp.

template<typename T>
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t exprtk::symbol_table< T >::get_stringvar_list ( Sequence< std::string, Allocator > &  svlist) const [inline]

Definition at line 10476 of file exprtk.hpp.

template<typename T>
vararg_function_ptr exprtk::symbol_table< T >::get_vararg_function ( const std::string &  vararg_function_name) [inline]

Definition at line 10162 of file exprtk.hpp.

template<typename T>
variable_ptr exprtk::symbol_table< T >::get_variable ( const std::string &  variable_name) [inline]

Definition at line 10130 of file exprtk.hpp.

template<typename T>
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t exprtk::symbol_table< T >::get_variable_list ( Sequence< std::pair< std::string, T >, Allocator > &  vlist) const [inline]

Definition at line 10445 of file exprtk.hpp.

template<typename T>
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t exprtk::symbol_table< T >::get_variable_list ( Sequence< std::string, Allocator > &  vlist) const [inline]

Definition at line 10455 of file exprtk.hpp.

template<typename T>
vector_ptr exprtk::symbol_table< T >::get_vector ( const std::string &  vector_name) [inline]

Definition at line 10174 of file exprtk.hpp.

template<typename T>
template<typename Allocator , template< typename, typename > class Sequence>
std::size_t exprtk::symbol_table< T >::get_vector_list ( Sequence< std::string, Allocator > &  vlist) const [inline]

Definition at line 10487 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::is_constant_node ( const std::string &  symbol_name) const [inline]

Definition at line 10208 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::is_constant_string ( const std::string &  symbol_name) const [inline]

Definition at line 10221 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::is_conststr_stringvar ( const std::string &  symbol_name) const [inline]

Definition at line 10534 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::is_function ( const std::string &  function_name) const [inline]

Definition at line 10550 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::is_stringvar ( const std::string &  stringvar_name) const [inline]

Definition at line 10526 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::is_vararg_function ( const std::string &  vararg_function_name) const [inline]

Definition at line 10558 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::is_variable ( const std::string &  variable_name) const [inline]

Definition at line 10517 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::is_vector ( const std::string &  vector_name) const [inline]

Definition at line 10566 of file exprtk.hpp.

template<typename T>
st_holder::st_data& exprtk::symbol_table< T >::local_data ( ) [inline, private]

Definition at line 10606 of file exprtk.hpp.

template<typename T>
const st_holder::st_data& exprtk::symbol_table< T >::local_data ( ) const [inline, private]

Definition at line 10611 of file exprtk.hpp.

template<typename T>
symbol_table<T>& exprtk::symbol_table< T >::operator= ( const symbol_table< T > &  st) [inline]

Definition at line 10045 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::operator== ( const symbol_table< T > &  st) [inline]

Definition at line 10060 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::remove_function ( const std::string &  function_name) [inline]

Definition at line 10394 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::remove_stringvar ( const std::string &  string_name) [inline]

Definition at line 10385 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::remove_vararg_function ( const std::string &  vararg_function_name) [inline]

Definition at line 10402 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::remove_variable ( const std::string &  variable_name,
const bool  delete_node = true 
) [inline]

Definition at line 10376 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::remove_vector ( const std::string &  vector_name) [inline]

Definition at line 10410 of file exprtk.hpp.

template<typename T>
std::size_t exprtk::symbol_table< T >::stringvar_count ( ) const [inline]

Definition at line 10105 of file exprtk.hpp.

template<typename T>
std::string& exprtk::symbol_table< T >::stringvar_ref ( const std::string &  symbol_name) [inline]

Definition at line 10196 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::symbol_exists ( const std::string &  symbol_name) const [inline]

Definition at line 10495 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::valid ( ) const [inline]

Definition at line 10574 of file exprtk.hpp.

template<typename T>
bool exprtk::symbol_table< T >::valid_symbol ( const std::string &  symbol) const [inline, private]

Definition at line 10582 of file exprtk.hpp.

template<typename T>
std::size_t exprtk::symbol_table< T >::variable_count ( ) const [inline]

Definition at line 10096 of file exprtk.hpp.

template<typename T>
T& exprtk::symbol_table< T >::variable_ref ( const std::string &  symbol_name) [inline]

Definition at line 10184 of file exprtk.hpp.

template<typename T>
std::size_t exprtk::symbol_table< T >::vector_count ( ) const [inline]

Definition at line 10122 of file exprtk.hpp.


Member Data Documentation

template<typename T>
st_holder* exprtk::symbol_table< T >::holder_ [private]

Definition at line 10616 of file exprtk.hpp.

template<typename T>
const std::size_t exprtk::symbol_table< T >::lut_size = 256 [static, protected]

Definition at line 9959 of file exprtk.hpp.


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


labust_mission
Author(s): Filip Mandic
autogenerated on Fri Aug 28 2015 11:23:05