

Public Member Functions | |
esiChoose (esiTreeParentPtr) | |
~esiChoose () | |
void | render (ESISegment::Pointer) |
bool | addElement (ESIElement::Pointer) |
void | fail (ESIElement *, char const *=NULL) |
esiProcessResult_t | process (int dovars) |
void | provideData (ESISegment::Pointer data, ESIElement *source) |
void | makeCachableElements (esiChoose const &old) |
void | makeUsableElements (esiChoose const &old, ESIVarState &) |
Pointer | makeCacheable () const |
Pointer | makeUsable (esiTreeParentPtr, ESIVarState &) const |
void | NULLUnChosen () |
void | finish () |
virtual bool | mayFail () const |
Static Public Member Functions | |
static ESIElementType_t | IdentifyElement (const char *) |
Public Attributes | |
Esi::Elements | elements |
int | chosenelement |
ESIElement::Pointer | otherwise |
Private Member Functions | |
MEMPROXY_CLASS (esiChoose) | |
esiChoose (esiChoose const &) | |
void | checkValidSource (ESIElement::Pointer source) const |
void | selectElement () |
Private Attributes | |
esiTreeParentPtr | parent |
Detailed Description
Member Typedef Documentation
◆ Pointer
|
inherited |
Member Enumeration Documentation
◆ ESIElementType_t
|
inherited |
Constructor & Destructor Documentation
◆ esiChoose() [1/2]
esiChoose::esiChoose | ( | esiTreeParentPtr | aParent | ) |
Definition at line 1910 of file Esi.cc.
Referenced by makeCacheable(), and makeUsable().
◆ ~esiChoose()
esiChoose::~esiChoose | ( | ) |
Definition at line 1904 of file Esi.cc.
References debugs, elements, and FinishAllElements().
◆ esiChoose() [2/2]
|
private |
Definition at line 2107 of file Esi.cc.
References addElement(), assert, elements, and RefCount< C >::getRaw().
Member Function Documentation
◆ addElement()
|
virtual |
Reimplemented from ESIElement.
Definition at line 1931 of file Esi.cc.
References chosenelement, DBG_CRITICAL, debugs, elements, RefCount< C >::getRaw(), otherwise, and esiWhen::testsTrue().
Referenced by esiChoose(), makeCachableElements(), and makeUsableElements().
◆ checkValidSource()
|
private |
Definition at line 2071 of file Esi.cc.
References assert, chosenelement, elements, fatal(), RefCount< C >::getRaw(), and otherwise.
Referenced by fail(), and provideData().
◆ fail()
|
virtual |
Reimplemented from esiTreeParent.
Definition at line 2085 of file Esi.cc.
References checkValidSource(), elements, esiTreeParent::fail(), ESIElement::finish(), FinishAllElements(), RefCount< C >::getRaw(), NULL, otherwise, and parent.
◆ finish()
|
virtual |
Implements ESIElement.
Definition at line 2009 of file Esi.cc.
References elements, ESIElement::finish(), FinishAllElements(), RefCount< C >::getRaw(), otherwise, and parent.
◆ IdentifyElement()
|
staticinherited |
Definition at line 861 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()
void esiChoose::makeCachableElements | ( | esiChoose const & | old | ) |
Definition at line 2118 of file Esi.cc.
References addElement(), assert, elements, and RefCount< C >::getRaw().
Referenced by makeCacheable().
◆ makeCacheable()
|
virtual |
Implements ESIElement.
Definition at line 2140 of file Esi.cc.
References esiChoose(), RefCount< C >::getRaw(), makeCachableElements(), ESIElement::makeCacheable(), and otherwise.
◆ makeUsable()
|
virtual |
Implements ESIElement.
Definition at line 2153 of file Esi.cc.
References esiChoose(), RefCount< C >::getRaw(), ESIElement::makeUsable(), makeUsableElements(), otherwise, parent, and selectElement().
◆ makeUsableElements()
void esiChoose::makeUsableElements | ( | esiChoose const & | old, |
ESIVarState & | newVarState | ||
) |
Definition at line 2129 of file Esi.cc.
References addElement(), assert, elements, and RefCount< C >::getRaw().
Referenced by makeUsable().
◆ mayFail()
|
inlinevirtualinherited |
Reimplemented in esiSequence.
Definition at line 77 of file Element.h.
Referenced by ESIContext::send().
◆ MEMPROXY_CLASS()
|
private |
◆ NULLUnChosen()
void esiChoose::NULLUnChosen | ( | ) |
Definition at line 2021 of file Esi.cc.
References chosenelement, elements, ESIElement::finish(), FinishAllElements(), FinishAnElement(), RefCount< C >::getRaw(), NULL, and otherwise.
Referenced by process().
◆ process()
|
virtual |
Reimplemented from ESIElement.
Definition at line 2041 of file Esi.cc.
References chosenelement, elements, ESI_PROCESS_COMPLETE, ESI_PROCESS_FAILED, esiTreeParent::fail(), ESIElement::finish(), RefCount< C >::getRaw(), NULL, NULLUnChosen(), otherwise, parent, and ESIElement::process().
◆ provideData()
|
virtual |
Reimplemented from esiTreeParent.
Definition at line 2101 of file Esi.cc.
References checkValidSource(), data, parent, and esiTreeParent::provideData().
◆ render()
|
virtual |
Implements ESIElement.
Definition at line 1917 of file Esi.cc.
References assert, chosenelement, debugs, elements, RefCount< C >::getRaw(), ESISegment::next, NULL, otherwise, and ESIElement::render().
◆ selectElement()
|
private |
Definition at line 1972 of file Esi.cc.
References chosenelement, debugs, elements, and esiWhen::testsTrue().
Referenced by makeUsable().
Member Data Documentation
◆ chosenelement
int esiChoose::chosenelement |
Definition at line 181 of file Esi.cc.
Referenced by addElement(), checkValidSource(), NULLUnChosen(), process(), render(), and selectElement().
◆ elements
Esi::Elements esiChoose::elements |
Definition at line 180 of file Esi.cc.
Referenced by esiChoose(), ~esiChoose(), addElement(), checkValidSource(), fail(), finish(), makeCachableElements(), makeUsableElements(), NULLUnChosen(), process(), render(), and selectElement().
◆ otherwise
ESIElement::Pointer esiChoose::otherwise |
Definition at line 182 of file Esi.cc.
Referenced by addElement(), checkValidSource(), fail(), finish(), makeCacheable(), makeUsable(), NULLUnChosen(), process(), and render().
◆ parent
|
private |
Definition at line 187 of file Esi.cc.
Referenced by fail(), finish(), makeUsable(), process(), and provideData().
The documentation for this class was generated from the following file:
- src/esi/Esi.cc