#include <P_CacheHttp.h>
Public Member Functions | |
CacheHTTPInfoVector () | |
~CacheHTTPInfoVector () | |
int | count () |
int | insert (CacheHTTPInfo *info, int id=-1) |
CacheHTTPInfo * | get (int idx) |
void | detach (int idx, CacheHTTPInfo *r) |
void | remove (int idx, bool destroy) |
void | clear (bool destroy=true) |
void | reset () |
void | print (char *buffer, size_t buf_size, bool temps=true) |
int | marshal_length () |
int | marshal (char *buf, int length) |
uint32_t | get_handles (const char *buf, int length, RefCountObj *block_ptr=NULL) |
int | unmarshal (const char *buf, int length, RefCountObj *block_ptr) |
Data Fields | |
void * | magic |
CacheArray< vec_info > | data |
int | xcount |
Ptr< RefCountObj > | vector_buf |
Definition at line 58 of file P_CacheHttp.h.
CacheHTTPInfoVector::CacheHTTPInfoVector | ( | ) |
Definition at line 261 of file CacheHttp.cc.
CacheHTTPInfoVector::~CacheHTTPInfoVector | ( | ) |
Definition at line 269 of file CacheHttp.cc.
void CacheHTTPInfoVector::clear | ( | bool | destroy = true |
) |
Definition at line 306 of file CacheHttp.cc.
Referenced by free_CacheVC(), CacheVC::openReadChooseWriter(), CacheVC::openReadFromWriterFailure(), CacheVC::scanObject(), and CacheVC::scanOpenWrite().
int CacheHTTPInfoVector::count | ( | ) | [inline] |
Definition at line 65 of file P_CacheHttp.h.
References xcount.
Referenced by agg_copy(), ShowCache::handleCacheEvent(), CacheVC::openReadChooseWriter(), CacheVC::openReadStartEarliest(), CacheVC::openReadStartHead(), CacheVC::scanObject(), CacheVC::scanOpenWrite(), and HttpTransactCache::SelectFromAlternates().
void CacheHTTPInfoVector::detach | ( | int | idx, | |
CacheHTTPInfo * | r | |||
) |
Definition at line 288 of file CacheHttp.cc.
References ink_assert.
TS_INLINE CacheHTTPInfo * CacheHTTPInfoVector::get | ( | int | idx | ) |
Definition at line 92 of file P_CacheHttp.h.
References data, ink_assert, and xcount.
Referenced by agg_copy(), CacheVC::evacuateReadHead(), ShowCache::handleCacheEvent(), CacheVC::openReadChooseWriter(), CacheVC::openReadStartHead(), CacheVC::scanObject(), CacheVC::scanOpenWrite(), and HttpTransactCache::SelectFromAlternates().
uint32_t CacheHTTPInfoVector::get_handles | ( | const char * | buf, | |
int | length, | |||
RefCountObj * | block_ptr = NULL | |||
) |
Definition at line 349 of file CacheHttp.cc.
References ink_assert.
int CacheHTTPInfoVector::insert | ( | CacheHTTPInfo * | info, | |
int | id = -1 | |||
) |
Definition at line 277 of file CacheHttp.cc.
References ink_assert.
Referenced by CacheVC::openReadChooseWriter(), CacheVC::openReadFromWriter(), CacheVC::scanObject(), CacheVC::scanOpenWrite(), and TSCacheHttpInfoVector().
int CacheHTTPInfoVector::marshal | ( | char * | buf, | |
int | length | |||
) |
Definition at line 332 of file CacheHttp.cc.
References ink_assert.
Referenced by agg_copy(), and TSCacheHttpInfoVector().
int CacheHTTPInfoVector::marshal_length | ( | ) |
Definition at line 323 of file CacheHttp.cc.
References ink_assert.
Referenced by CacheVC::openReadStartEarliest(), CacheVC::scanOpenWrite(), and TSCacheHttpInfoVector().
void CacheHTTPInfoVector::print | ( | char * | buffer, | |
size_t | buf_size, | |||
bool | temps = true | |||
) |
Definition at line 314 of file CacheHttp.cc.
References ink_assert.
void CacheHTTPInfoVector::remove | ( | int | idx, | |
bool | destroy | |||
) |
Definition at line 297 of file CacheHttp.cc.
References ink_assert.
Referenced by CacheVC::openReadChooseWriter(), CacheVC::openReadStartEarliest(), and CacheVC::scanObject().
void CacheHTTPInfoVector::reset | ( | ) | [inline] |
Definition at line 74 of file P_CacheHttp.h.
References CacheArray< T >::clear(), data, and xcount.
int CacheHTTPInfoVector::unmarshal | ( | const char * | buf, | |
int | length, | |||
RefCountObj * | block_ptr | |||
) |
Definition at line 339 of file CacheHttp.cc.
References ink_assert.
Definition at line 86 of file P_CacheHttp.h.
Referenced by get(), new_CacheVC(), and reset().
Definition at line 60 of file P_CacheHttp.h.
Definition at line 88 of file P_CacheHttp.h.
Definition at line 87 of file P_CacheHttp.h.