C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
exprtk::details::build_string Class Reference

#include <exprtk.hpp>

Public Member Functions

 build_string (const std::size_t &initial_size=64)
 
build_stringoperator<< (const std::string &s)
 
build_stringoperator<< (char_cptr s)
 
 operator std::string () const
 
std::string as_string () const
 

Private Attributes

std::string data_
 

Detailed Description

Definition at line 397 of file exprtk.hpp.

Constructor & Destructor Documentation

◆ build_string()

exprtk::details::build_string::build_string ( const std::size_t &  initial_size = 64)
inlineexplicit

Definition at line 401 of file exprtk.hpp.

402 {
403 data_.reserve(initial_size);
404 }
bool match_impl(const Iterator pattern_begin, const Iterator pattern_end, const Iterator data_begin, const Iterator data_end, const typename std::iterator_traits< Iterator >::value_type &zero_or_more, const typename std::iterator_traits< Iterator >::value_type &exactly_one)
Definition exprtk.hpp:598

References data_.

Member Function Documentation

◆ as_string()

std::string exprtk::details::build_string::as_string ( ) const
inline

Definition at line 423 of file exprtk.hpp.

424 {
425 return data_;
426 }

References data_.

◆ operator std::string()

exprtk::details::build_string::operator std::string ( ) const
inline

Definition at line 418 of file exprtk.hpp.

419 {
420 return data_;
421 }

References data_.

◆ operator<<() [1/2]

build_string & exprtk::details::build_string::operator<< ( char_cptr  s)
inline

Definition at line 412 of file exprtk.hpp.

413 {
414 data_ += std::string(s);
415 return (*this);
416 }

References data_.

◆ operator<<() [2/2]

build_string & exprtk::details::build_string::operator<< ( const std::string &  s)
inline

Definition at line 406 of file exprtk.hpp.

407 {
408 data_ += s;
409 return (*this);
410 }

References data_.

Member Data Documentation

◆ data_

std::string exprtk::details::build_string::data_
private

Definition at line 430 of file exprtk.hpp.

Referenced by as_string(), build_string(), operator std::string(), operator<<(), and operator<<().


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