C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
exprtk::details::build_string Class Reference

#include <exprtk.hpp>

Public Member Functions

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

Private Attributes

std::string data_

Detailed Description

Definition at line 404 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 408 of file exprtk.hpp.

409 {
410 data_.reserve(initial_size);
411 }

References data_.

Referenced by operator<<(), and operator<<().

Here is the caller graph for this function:

Member Function Documentation

◆ as_string()

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

Definition at line 430 of file exprtk.hpp.

431 {
432 return data_;
433 }

References data_.

◆ operator std::string()

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

Definition at line 425 of file exprtk.hpp.

426 {
427 return data_;
428 }

References data_.

◆ operator<<() [1/2]

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

Definition at line 419 of file exprtk.hpp.

420 {
421 data_ += std::string(s);
422 return (*this);
423 }

References build_string(), and data_.

Here is the call graph for this function:

◆ operator<<() [2/2]

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

Definition at line 413 of file exprtk.hpp.

414 {
415 data_ += s;
416 return (*this);
417 }

References build_string(), and data_.

Here is the call graph for this function:

Member Data Documentation

◆ data_

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

Definition at line 437 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: