e57::PacketLock Class Reference

#include <Packet.h>

Public Member Functions

 ~PacketLock ()
 

Protected Member Functions

 PacketLock (PacketReadCache *cache, unsigned cacheIndex)
 Only PacketReadCache can construct. More...
 

Protected Attributes

PacketReadCachecache_ = nullptr
 
unsigned int cacheIndex_ = 0
 

Friends

class PacketReadCache
 

Constructor & Destructor Documentation

◆ ~PacketLock()

PacketLock::~PacketLock ( )

Note cache must live longer than lock, this is reasonable assumption.

References cache_, cacheIndex_, and e57::PacketReadCache::unlock().

◆ PacketLock()

PacketLock::PacketLock ( PacketReadCache cache,
unsigned  cacheIndex 
)
protected

Only PacketReadCache can construct.

Friends And Related Function Documentation

◆ PacketReadCache

friend class PacketReadCache
friend

Member Data Documentation

◆ cache_

PacketReadCache* e57::PacketLock::cache_ = nullptr
protected

Referenced by ~PacketLock().

◆ cacheIndex_

unsigned int e57::PacketLock::cacheIndex_ = 0
protected

Referenced by ~PacketLock().


The documentation for this class was generated from the following files: