|
Squid Web Cache master
|
#include <CbDataList.h>
Public Member Functions | |
| CbDataList (C const &) | |
| ~CbDataList () | |
| bool | push_back_unique (C const &element) |
| bool | find (C const &) const |
| bool | findAndTune (C const &) |
| CbDataList * | tail () |
| Iterates the entire list to return the last element holder. | |
| bool | empty () const |
Public Attributes | |
| CbDataList * | next |
| C | element |
Private Member Functions | |
| CBDATA_CLASS (CbDataList) | |
Definition at line 15 of file CbDataList.h.
| CbDataList< C >::CbDataList | ( | C const & | value | ) |
Definition at line 75 of file CbDataList.h.
| CbDataList< C >::~CbDataList | ( | ) |
Definition at line 79 of file CbDataList.h.
|
private |
|
inline |
Definition at line 33 of file CbDataList.h.
References NULL.
| bool CbDataList< C >::find | ( | C const & | toFind | ) | const |
Definition at line 110 of file CbDataList.h.
References node::next.
| bool CbDataList< C >::findAndTune | ( | C const & | toFind | ) |
Definition at line 123 of file CbDataList.h.
References node::next, CbDataList< C >::next, and NULL.
| bool CbDataList< C >::push_back_unique | ( | C const & | element | ) |
If element is already in the list, returns false. Otherwise, adds the element to the end of the list and returns true. Exists to avoid double iteration of find() and push() combo.
Definition at line 87 of file CbDataList.h.
References last, and CbDataList< C >::next.
Referenced by ssl_verify_cb(), and Security::PeerConnector::sslCrtvdCheckForErrors().
| CbDataList< C > * CbDataList< C >::tail | ( | ) |
Definition at line 101 of file CbDataList.h.
References last.
| C CbDataList< C >::element |
Definition at line 32 of file CbDataList.h.
Referenced by CbDataListIterator< C >::next().
| CbDataList* CbDataList< C >::next |
Definition at line 31 of file CbDataList.h.
Referenced by CbDataList< C >::findAndTune(), ACLSslErrorData::match(), CbDataListIterator< C >::next(), CbDataListContainer< C >::push_back(), and CbDataList< C >::push_back_unique().