42 #ifndef genericRagelLemonDriver_H 43 #define genericRagelLemonDriver_H 67 std::reference_wrapper<const std::string>
content_;
110 const std::string&
content()
const 119 const std::string&
s,
121 size_t len = std::string::npos
125 std::string::const_iterator
cbegin()
const;
128 std::string::const_iterator
cend()
const;
virtual ~genericRagelLemonDriver()=default
Destructor.
size_t length_
Length of input (sub)string.
Generic interface code for Ragel/Lemon combination Subclasses should implement one or more process() ...
size_t position_
The last known parser position.
std::reference_wrapper< const std::string > content_
Reference to the input string.
size_t parsePosition() const
The relative parse position with the content (sub)string.
dimensionedScalar pos(const dimensionedScalar &ds)
size_t start_
Start position within input string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const std::string & content() const
Get reference to the input buffer content.
OBJstream os(runTime.globalPath()/outputName)
genericRagelLemonDriver()
Construct null.
Ostream & printBuffer(Ostream &os) const
Output the input buffer string content.
size_t location_type
Type for linear addressing within parse content.
void clear()
Reset references.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
std::string::const_iterator cend() const
Iterator to end of content (sub)string.
void reportFatal(const std::string &msg) const
Report FatalError.
std::string::const_iterator cbegin() const
Iterator to begin of content (sub)string.