Public Types | |
enum | ESIElementType_t { ESI_ELEMENT_NONE , ESI_ELEMENT_INCLUDE , ESI_ELEMENT_COMMENT , ESI_ELEMENT_REMOVE , ESI_ELEMENT_TRY , ESI_ELEMENT_ATTEMPT , ESI_ELEMENT_EXCEPT , ESI_ELEMENT_VARS , ESI_ELEMENT_CHOOSE , ESI_ELEMENT_WHEN , ESI_ELEMENT_OTHERWISE , ESI_ELEMENT_ASSIGN } |
typedef RefCount< ESIElement > | Pointer |
Public Member Functions | |
esiOtherwise (esiTreeParentPtr aParent) | |
void | render (ESISegment::Pointer) override |
bool | addElement (ESIElement::Pointer) override |
esiProcessResult_t | process (int dovars) override |
void | provideData (ESISegment::Pointer, ESIElement *) override |
bool | mayFail () const override |
void | wontFail () |
void | fail (ESIElement *, char const *anError=nullptr) override |
void | makeCachableElements (esiSequence const &old) |
Pointer | makeCacheable () const override |
void | makeUsableElements (esiSequence const &old, ESIVarState &) |
Pointer | makeUsable (esiTreeParentPtr, ESIVarState &) const override |
void | finish () override |
Static Public Member Functions | |
static ESIElementType_t | IdentifyElement (const char *) |
Public Attributes | |
Esi::Elements | elements |
size_t | processedcount |
struct { | |
unsigned int dovars:1 | |
} | flags |
Protected Attributes | |
esiTreeParentPtr | parent |
Private Member Functions | |
MEMPROXY_CLASS (esiSequence) | |
int | elementIndex (ESIElement::Pointer anElement) const |
esiProcessResult_t | processOne (int, size_t) |
size_t | nextElementToProcess () const |
void | nextElementToProcess (size_t const &) |
bool | finishedProcessing () const |
void | processStep (int dovars) |
Private Attributes | |
bool | mayFail_ |
bool | failed |
bool const | provideIncrementalData |
bool | processing |
esiProcessResult_t | processingResult |
size_t | nextElementToProcess_ |
Detailed Description
Member Typedef Documentation
◆ Pointer
|
inherited |
Member Enumeration Documentation
◆ ESIElementType_t
|
inherited |
Constructor & Destructor Documentation
◆ esiOtherwise()
|
inline |
Member Function Documentation
◆ addElement()
|
overridevirtualinherited |
Reimplemented from ESIElement.
Definition at line 148 of file Sequence.cc.
References DBG_CRITICAL, debugs, esiSequence::elements, RefCount< C >::getRaw(), and ESISegment::ListTransfer().
Referenced by esiSequence::makeCachableElements(), and esiSequence::makeUsableElements().
◆ elementIndex()
|
privateinherited |
Definition at line 177 of file Sequence.cc.
References esiSequence::elements.
Referenced by esiSequence::provideData().
◆ fail()
|
overridevirtualinherited |
Reimplemented from esiTreeParent.
Definition at line 307 of file Sequence.cc.
References debugs, esiSequence::elements, esiTreeParent::fail(), esiSequence::failed, FinishAllElements(), esiSequence::parent, and esiSequence::processing.
◆ finish()
|
overridevirtualinherited |
Implements ESIElement.
Definition at line 104 of file Sequence.cc.
References debugs, esiSequence::elements, FinishAllElements(), and esiSequence::parent.
◆ finishedProcessing()
|
privateinherited |
Definition at line 60 of file Sequence.cc.
References esiSequence::elements, and esiSequence::nextElementToProcess().
Referenced by esiSequence::process().
◆ IdentifyElement()
|
staticinherited |
Definition at line 852 of file Esi.cc.
References assert, ESIElement::ESI_ELEMENT_ASSIGN, ESIElement::ESI_ELEMENT_ATTEMPT, ESIElement::ESI_ELEMENT_CHOOSE, ESIElement::ESI_ELEMENT_COMMENT, ESIElement::ESI_ELEMENT_EXCEPT, ESIElement::ESI_ELEMENT_INCLUDE, ESIElement::ESI_ELEMENT_NONE, ESIElement::ESI_ELEMENT_OTHERWISE, ESIElement::ESI_ELEMENT_REMOVE, ESIElement::ESI_ELEMENT_TRY, ESIElement::ESI_ELEMENT_VARS, and ESIElement::ESI_ELEMENT_WHEN.
Referenced by ESIContext::end(), and ESIContext::start().
◆ makeCachableElements()
|
inherited |
Definition at line 336 of file Sequence.cc.
References esiSequence::addElement(), assert, esiSequence::elements, and RefCount< C >::getRaw().
Referenced by esiSequence::makeCacheable().
◆ makeCacheable()
|
overridevirtualinherited |
Implements ESIElement.
Definition at line 358 of file Sequence.cc.
References esiSequence::esiSequence(), assert, debugs, esiSequence::elements, esiSequence::failed, RefCount< C >::getRaw(), esiSequence::makeCachableElements(), and esiSequence::processedcount.
◆ makeUsable()
|
overridevirtualinherited |
Implements ESIElement.
Definition at line 377 of file Sequence.cc.
References esiSequence::esiSequence(), assert, debugs, esiSequence::elements, esiSequence::failed, esiSequence::makeUsableElements(), esiSequence::parent, and esiSequence::processedcount.
◆ makeUsableElements()
|
inherited |
Definition at line 347 of file Sequence.cc.
References esiSequence::addElement(), assert, esiSequence::elements, and RefCount< C >::getRaw().
Referenced by esiWhen::makeUsable(), and esiSequence::makeUsable().
◆ mayFail()
|
overridevirtualinherited |
Reimplemented from ESIElement.
Definition at line 66 of file Sequence.cc.
References esiSequence::failed, and esiSequence::mayFail_.
◆ MEMPROXY_CLASS()
|
privateinherited |
◆ nextElementToProcess() [1/2]
|
privateinherited |
Definition at line 48 of file Sequence.cc.
References esiSequence::nextElementToProcess_.
Referenced by esiSequence::finishedProcessing(), esiSequence::process(), and esiSequence::processStep().
◆ nextElementToProcess() [2/2]
|
privateinherited |
Definition at line 54 of file Sequence.cc.
References esiSequence::nextElementToProcess_.
◆ process()
|
overridevirtualinherited |
Reimplemented from ESIElement.
Definition at line 238 of file Sequence.cc.
References assert, debugs, esiSequence::dovars, esiSequence::elements, ESI_PROCESS_COMPLETE, ESI_PROCESS_FAILED, ESI_PROCESS_PENDING_WONTFAIL, ESISegmentFreeList(), esiSequence::failed, FinishAllElements(), esiSequence::finishedProcessing(), esiSequence::flags, RefCount< C >::getRaw(), ESISegment::len, ESISegment::next, esiSequence::nextElementToProcess(), esiSequence::parent, esiSequence::processedcount, esiSequence::processing, esiSequence::processingResult, esiSequence::processStep(), esiTreeParent::provideData(), esiSequence::provideIncrementalData, esiSequence::render(), and esiSequence::wontFail().
Referenced by esiSequence::processOne(), and esiSequence::provideData().
◆ processOne()
|
privateinherited |
Definition at line 200 of file Sequence.cc.
References debugs, esiSequence::dovars, esiSequence::elements, ESI_PROCESS_COMPLETE, ESI_PROCESS_FAILED, ESI_PROCESS_PENDING_MAYFAIL, ESI_PROCESS_PENDING_WONTFAIL, fatal(), esiSequence::process(), and esiSequence::processedcount.
Referenced by esiSequence::processStep().
◆ processStep()
|
privateinherited |
Definition at line 187 of file Sequence.cc.
References debugs, esiSequence::dovars, esiSequence::nextElementToProcess(), esiSequence::processingResult, and esiSequence::processOne().
Referenced by esiSequence::process().
◆ provideData()
|
overridevirtualinherited |
Reimplemented from esiTreeParent.
Definition at line 112 of file Sequence.cc.
References assert, debugs, esiSequence::elementIndex(), esiSequence::elements, ESI_PROCESS_FAILED, FinishAnElement(), esiSequence::flags, RefCount< C >::getRaw(), esiSequence::process(), and esiSequence::processing.
◆ render()
|
overridevirtualinherited |
Implements ESIElement.
Definition at line 82 of file Sequence.cc.
References assert, debugs, esiSequence::elements, FinishAnElement(), ESISegment::next, esiSequence::processedcount, and ESISegment::tail().
Referenced by esiSequence::process().
◆ wontFail()
|
inherited |
Definition at line 75 of file Sequence.cc.
References assert, esiSequence::failed, and esiSequence::mayFail_.
Referenced by esiSequence::process().
Member Data Documentation
◆ dovars
|
inherited |
Definition at line 43 of file Sequence.h.
Referenced by esiSequence::esiSequence(), esiSequence::process(), esiSequence::processOne(), and esiSequence::processStep().
◆ elements
|
inherited |
Definition at line 39 of file Sequence.h.
Referenced by esiSequence::~esiSequence(), esiSequence::addElement(), esiSequence::elementIndex(), esiSequence::fail(), esiSequence::finish(), esiSequence::finishedProcessing(), esiSequence::makeCachableElements(), esiSequence::makeCacheable(), esiSequence::makeUsable(), esiSequence::makeUsableElements(), esiSequence::process(), esiSequence::processOne(), esiSequence::provideData(), and esiSequence::render().
◆ failed
|
privateinherited |
Definition at line 54 of file Sequence.h.
Referenced by esiSequence::fail(), esiSequence::makeCacheable(), esiSequence::makeUsable(), esiSequence::mayFail(), esiSequence::process(), and esiSequence::wontFail().
◆
struct { ... } esiSequence::flags |
Referenced by esiSequence::esiSequence(), ESIVar::ESIVar(), esiSequence::process(), and esiSequence::provideData().
◆ mayFail_
|
privateinherited |
Definition at line 53 of file Sequence.h.
Referenced by esiSequence::mayFail(), and esiSequence::wontFail().
◆ nextElementToProcess_
|
privateinherited |
Definition at line 59 of file Sequence.h.
Referenced by esiSequence::nextElementToProcess().
◆ parent
|
protectedinherited |
Definition at line 49 of file Sequence.h.
Referenced by esiSequence::fail(), esiSequence::finish(), esiWhen::makeUsable(), esiSequence::makeUsable(), and esiSequence::process().
◆ processedcount
|
inherited |
Definition at line 40 of file Sequence.h.
Referenced by esiSequence::makeCacheable(), esiSequence::makeUsable(), esiSequence::process(), esiSequence::processOne(), and esiSequence::render().
◆ processing
|
privateinherited |
Definition at line 57 of file Sequence.h.
Referenced by esiSequence::fail(), esiSequence::process(), and esiSequence::provideData().
◆ processingResult
|
privateinherited |
Definition at line 58 of file Sequence.h.
Referenced by esiSequence::process(), and esiSequence::processStep().
◆ provideIncrementalData
|
privateinherited |
Definition at line 56 of file Sequence.h.
Referenced by esiSequence::process().
The documentation for this struct was generated from the following file:
- src/esi/Esi.cc