This class keeps a cache of various topology object lists. More...
#include <vtol_topology_cache.h>
Public Member Functions | |
void | touch () |
unsigned long | get_time_stamp () const |
bool | older (vul_timestamp const &t) const |
bool | older (vul_timestamp const *t) const |
Protected Attributes | |
unsigned long | timestamp_ |
Private Member Functions | |
vtol_topology_cache () | |
private default constructor. | |
vtol_topology_cache (vtol_topology_object *to_be_cached) | |
private constructor. | |
~vtol_topology_cache () | |
private destructor. | |
void | set_source (vtol_topology_object *to_be_cached) |
set the source. | |
void | vertices (vertex_list &) |
get the vertices. | |
void | zero_chains (zero_chain_list &) |
get the zero chains. | |
void | edges (edge_list &) |
get the edges. | |
void | one_chains (one_chain_list &) |
get the one chains. | |
void | faces (face_list &) |
get the faces. | |
void | two_chains (two_chain_list &) |
get the two chains. | |
void | blocks (block_list &) |
get the blocks. | |
void | validate_cache () |
validate the cache. | |
void | clear_cache () |
clear the cache. | |
Private Attributes | |
vtol_topology_object * | source_ |
vcl_vector< vtol_vertex * > * | vertices_ |
vcl_vector< vtol_zero_chain * > * | zerochains_ |
vcl_vector< vtol_edge * > * | edges_ |
vcl_vector< vtol_one_chain * > * | onechains_ |
vcl_vector< vtol_face * > * | faces_ |
vcl_vector< vtol_two_chain * > * | twochains_ |
vcl_vector< vtol_block * > * | blocks_ |
Friends | |
class | vtol_vertex |
class | vtol_zero_chain |
class | vtol_edge |
class | vtol_one_chain |
class | vtol_face |
class | vtol_two_chain |
class | vtol_block |
class | vtol_topology_object |
This class keeps a cache of various topology object lists.
Definition at line 30 of file vtol_topology_cache.h.
vtol_topology_cache::vtol_topology_cache | ( | ) | [private] |
private default constructor.
Set up the cache.
Definition at line 7 of file vtol_topology_cache.cxx.
vtol_topology_cache::vtol_topology_cache | ( | vtol_topology_object * | to_be_cached | ) | [private] |
vtol_topology_cache::~vtol_topology_cache | ( | ) | [private] |
private destructor.
Definition at line 33 of file vtol_topology_cache.cxx.
void vtol_topology_cache::blocks | ( | block_list & | oblocks | ) | [private] |
void vtol_topology_cache::clear_cache | ( | ) | [private] |
void vtol_topology_cache::edges | ( | edge_list & | oedges | ) | [private] |
void vtol_topology_cache::faces | ( | face_list & | ofaces | ) | [private] |
void vtol_topology_cache::one_chains | ( | one_chain_list & | ochains | ) | [private] |
get the one chains.
get the one chain lists.
Definition at line 126 of file vtol_topology_cache.cxx.
void vtol_topology_cache::set_source | ( | vtol_topology_object * | to_be_cached | ) | [private] |
set the source.
set the source topology object.
Definition at line 39 of file vtol_topology_cache.cxx.
void vtol_topology_cache::two_chains | ( | two_chain_list & | otwo_chains | ) | [private] |
get the two chains.
get the two_chain lists.
Definition at line 155 of file vtol_topology_cache.cxx.
void vtol_topology_cache::validate_cache | ( | ) | [private] |
validate the cache.
If cache is out of date as compared to its source object, then clear the cache.
Definition at line 58 of file vtol_topology_cache.cxx.
void vtol_topology_cache::vertices | ( | vertex_list & | verts | ) | [private] |
void vtol_topology_cache::zero_chains | ( | zero_chain_list & | zchains | ) | [private] |
get the zero chains.
Get the zero chain lists.
Definition at line 94 of file vtol_topology_cache.cxx.
friend class vtol_block [friend] |
Definition at line 86 of file vtol_topology_cache.h.
friend class vtol_edge [friend] |
Definition at line 82 of file vtol_topology_cache.h.
friend class vtol_face [friend] |
Definition at line 84 of file vtol_topology_cache.h.
friend class vtol_one_chain [friend] |
Definition at line 83 of file vtol_topology_cache.h.
friend class vtol_topology_object [friend] |
Definition at line 87 of file vtol_topology_cache.h.
friend class vtol_two_chain [friend] |
Definition at line 85 of file vtol_topology_cache.h.
friend class vtol_vertex [friend] |
Definition at line 80 of file vtol_topology_cache.h.
friend class vtol_zero_chain [friend] |
Definition at line 81 of file vtol_topology_cache.h.
vcl_vector<vtol_block*>* vtol_topology_cache::blocks_ [private] |
Definition at line 77 of file vtol_topology_cache.h.
vcl_vector<vtol_edge*>* vtol_topology_cache::edges_ [private] |
Definition at line 73 of file vtol_topology_cache.h.
vcl_vector<vtol_face*>* vtol_topology_cache::faces_ [private] |
Definition at line 75 of file vtol_topology_cache.h.
vcl_vector<vtol_one_chain*>* vtol_topology_cache::onechains_ [private] |
Definition at line 74 of file vtol_topology_cache.h.
vtol_topology_object* vtol_topology_cache::source_ [private] |
Definition at line 69 of file vtol_topology_cache.h.
vcl_vector<vtol_two_chain*>* vtol_topology_cache::twochains_ [private] |
Definition at line 76 of file vtol_topology_cache.h.
vcl_vector<vtol_vertex*>* vtol_topology_cache::vertices_ [private] |
Definition at line 71 of file vtol_topology_cache.h.
vcl_vector<vtol_zero_chain*>* vtol_topology_cache::zerochains_ [private] |
Definition at line 72 of file vtol_topology_cache.h.