MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / push

Function push

src/OpenFOAM/dimensionSet/dimensionSetIO.C:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
49
50void Foam::dimensionSet::tokeniser::push(const token& t)
51{
52 label end = (start_+size_)%tokens_.size();
53 tokens_[end] = t;
54 if (size_ == tokens_.size())
55 {
56 start_ = tokens_.fcIndex(start_);
57 }
58 else
59 {
60 size_++;
61 }
62}
63
64
65Foam::token Foam::dimensionSet::tokeniser::pop()

Callers 2

splitWordFunction · 0.85
putBackFunction · 0.85

Calls 2

sizeMethod · 0.45
fcIndexMethod · 0.45

Tested by

no test coverage detected