//------------------------------------------------------------------------------ /* Copyright (c) 2011-2013, OpenCoin, Inc. */ //============================================================================== #ifndef RIPPLE_RIPPLELINECACHE_H #define RIPPLE_RIPPLELINECACHE_H // Used by Pathfinder class RippleLineCache { public: typedef boost::shared_ptr pointer; typedef pointer const& ref; explicit RippleLineCache (Ledger::ref l); Ledger::ref getLedger () // VFALCO TODO const? { return mLedger; } AccountItems& getRippleLines (const uint160& accountID); private: typedef RippleMutex LockType; typedef LockType::ScopedLockType ScopedLockType; LockType mLock; Ledger::pointer mLedger; boost::unordered_map mRLMap; }; #endif