OOFEM 3.0
Loading...
Searching...
No Matches
oofem::Tokens Struct Reference

Public Member Functions

 Tokens (const std::string &attr_, XMLInputRecord *rec, const char *sep_regex="\\s+")
 Tokens (const std::string &attr_, const std::string &str_, std::function< std::string()> loc_, const char *sep_regex="\\s+")
void _makeToks (const char *sep_regex)
size_t size ()
void assertSize (size_t req)
template<typename T>
as (size_t ix)

Public Attributes

std::string attr
std::string str
pugi::xml_node node
std::vector< std::string > toks
std::function< std::string()> loc

Detailed Description

Definition at line 111 of file xmlinputrecord.C.

Constructor & Destructor Documentation

◆ Tokens() [1/2]

oofem::Tokens::Tokens ( const std::string & attr_,
XMLInputRecord * rec,
const char * sep_regex = "\\s+" )
inline

◆ Tokens() [2/2]

oofem::Tokens::Tokens ( const std::string & attr_,
const std::string & str_,
std::function< std::string()> loc_,
const char * sep_regex = "\\s+" )
inline

Definition at line 123 of file xmlinputrecord.C.

References oofem::_lrtrim(), _makeToks(), attr, loc, and str.

Member Function Documentation

◆ _makeToks()

void oofem::Tokens::_makeToks ( const char * sep_regex)
inline

Definition at line 127 of file xmlinputrecord.C.

References str, and toks.

Referenced by Tokens(), and Tokens().

◆ as()

template<typename T>
T oofem::Tokens::as ( size_t ix)
inline

◆ assertSize()

void oofem::Tokens::assertSize ( size_t req)
inline

Definition at line 136 of file xmlinputrecord.C.

References attr, loc, OOFEM_ERROR, and size().

◆ size()

size_t oofem::Tokens::size ( )
inline

Member Data Documentation

◆ attr

std::string oofem::Tokens::attr

Definition at line 112 of file xmlinputrecord.C.

Referenced by as(), assertSize(), Tokens(), and Tokens().

◆ loc

std::function<std::string()> oofem::Tokens::loc

◆ node

pugi::xml_node oofem::Tokens::node

Definition at line 114 of file xmlinputrecord.C.

Referenced by oofem::XMLInputRecord::giveField(), and Tokens().

◆ str

std::string oofem::Tokens::str

Definition at line 113 of file xmlinputrecord.C.

Referenced by _makeToks(), as(), Tokens(), and Tokens().

◆ toks

std::vector<std::string> oofem::Tokens::toks

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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011