#include <spcache.h>
Collaboration diagram for SourcePositionCache:

Public Member Functions | |
| SourcePositionCache () | |
| ~SourcePositionCache () | |
| void | store (const SourcePosition &sp) |
| SourcePosition | find (int line, int lpos) |
Private Attributes | |
| SourcePosition | cache [cache_size] |
| int | top |
| int | hits |
| int | misses |
Static Private Attributes | |
| const int | cache_size = 6 |
Not "C++-safe"; not thread-safe.
Definition at line 43 of file spcache.h.
|
|
Definition at line 44 of file spcache.cc. |
|
|
Definition at line 52 of file spcache.cc. |
|
||||||||||||
|
Definition at line 24 of file spcache.cc. References cache, cache_size, hits, misses, SourcePosition, and top. |
|
|
Definition at line 66 of file spcache.h. References cache, cache_size, SourcePosition, and top. |
|
|
|
|
|
|
|
|
Definition at line 57 of file spcache.h. Referenced by find(), SourcePositionCache(), and ~SourcePositionCache(). |
|
|
Definition at line 58 of file spcache.h. Referenced by find(), SourcePositionCache(), and ~SourcePositionCache(). |
|
|
Definition at line 54 of file spcache.h. Referenced by find(), SourcePositionCache(), and store(). |
1.3.5