cgma
VolumeCache Class Reference

List of all members.

Public Member Functions

 VolumeCache ()
bool contains (const SurfaceCard *c) const
SurfaceVolumeget (const SurfaceCard *c)
void insert (const SurfaceCard *c, SurfaceVolume *s)

Protected Attributes

std::map< const SurfaceCard
*, SurfaceVolume * > 
mapping

Detailed Description

Definition at line 762 of file volumes.cpp.


Constructor & Destructor Documentation

Definition at line 768 of file volumes.cpp.

{}

Member Function Documentation

bool VolumeCache::contains ( const SurfaceCard c) const [inline]

Definition at line 770 of file volumes.cpp.

                                              {
    return ( mapping.find(c) != mapping.end() );
  }
SurfaceVolume* VolumeCache::get ( const SurfaceCard c) [inline]

Definition at line 774 of file volumes.cpp.

                                             {
    assert( contains( c ) );
    return (*(mapping.find(c))).second;
  }
void VolumeCache::insert ( const SurfaceCard c,
SurfaceVolume s 
) [inline]

Definition at line 779 of file volumes.cpp.

                                                       {
    mapping[c] = s;
  }

Member Data Documentation

std::map<const SurfaceCard*,SurfaceVolume*> VolumeCache::mapping [protected]

Definition at line 765 of file volumes.cpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines