libbio
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
bio::CachedId< ID_TYPE > Class Template Reference

#include <CachedId.h>

Inheritance diagram for bio::CachedId< ID_TYPE >:
Inheritance graph
[legend]
Collaboration diagram for bio::CachedId< ID_TYPE >:
Collaboration graph
[legend]

Public Member Functions

 CachedId (const Name &lookup, physical::Perspective< ID_TYPE > &perspective)
 
virtual ~CachedId ()
 
virtual void Flush ()
 
friend::std::ostream & operator<< (std::ostream &out, const CachedId &t)
 
- Public Member Functions inherited from bio::Cached< ID_TYPE, const Name &, ID_TYPE(physical::Perspective< ID_TYPE >::*)(const Name &) >
 Cached (const Name & lookup, ID_TYPE invalidValue, ID_TYPE(physical::Perspective< ID_TYPE >::*)(const Name &) LookupFunction)
 
virtual ~Cached ()
 
friend::std::ostream & operator<< (std::ostream &out, const Cached &t)
 
- Public Member Functions inherited from bio::AbstractCached
 AbstractCached ()
 
virtual ~AbstractCached ()
 
void Register ()
 
void Deregister ()
 
- Public Member Functions inherited from bio::TransparentWrapper< T >
 TransparentWrapper (T t)
 
 TransparentWrapper (const TransparentWrapper< T > &other)
 
 ~TransparentWrapper ()
 
 operator T ()
 
TransparentWrapper< T > & operator= (const T &t)
 
TransparentWrapper< T > & operator= (const TransparentWrapper< T > &other)
 
bool operator== (const T &t) const
 
bool operator!= (const T &t) const
 
bool operator<= (const T &t) const
 
bool operator>= (const T &t) const
 
bool operator< (const T &t) const
 
bool operator> (const T &t) const
 
bool operator== (const TransparentWrapper &other) const
 
bool operator!= (const TransparentWrapper &other) const
 
bool operator<= (const TransparentWrapper &other) const
 
bool operator>= (const TransparentWrapper &other) const
 
bool operator< (const TransparentWrapper &other) const
 
bool operator> (const TransparentWrapper &other) const
 
Toperator++ ()
 
T operator++ (int)
 
Toperator-- ()
 
T operator-- (int)
 
T operator+= (const T &t)
 
T operator-= (const T &t)
 
T operator+= (const TransparentWrapper &other)
 
T operator-= (const TransparentWrapper &other)
 
T operator+ (const T &t) const
 
T operator- (const T &t) const
 
T operator+ (const TransparentWrapper &other) const
 
T operator- (const TransparentWrapper &other) const
 
T operator*= (const T &t)
 
T operator/= (const T &t)
 
T operator*= (const TransparentWrapper &other)
 
T operator/= (const TransparentWrapper &other)
 
T operator* (const T &t) const
 
T operator/ (const T &t) const
 
T operator* (const TransparentWrapper &other) const
 
T operator/ (const TransparentWrapper &other) const
 
friend::std::ostream & operator<< (std::ostream &out, const TransparentWrapper &t)
 
Toperator-> ()
 
const Toperator-> () const
 

Protected Attributes

physical::Perspective< ID_TYPE > & mPerspective
 
- Protected Attributes inherited from bio::Cached< ID_TYPE, const Name &, ID_TYPE(physical::Perspective< ID_TYPE >::*)(const Name &) >
const NamemLookup
 
ID_TYPE(physical::Perspective< ID_TYPE >::*)(const Name &) mLookupFunction
 

Additional Inherited Members

- Public Types inherited from bio::TransparentWrapper< T >
typedef T Type
 
- Public Attributes inherited from bio::TransparentWrapper< T >
T mT
 

Detailed Description

template<typename ID_TYPE>
class bio::CachedId< ID_TYPE >

CachedId<> extends the Cache system by making it possible to store the Perspective* from which to fetch the Id of the given Name.

Template Parameters
ID_TYPE

Constructor & Destructor Documentation

◆ CachedId()

template<typename ID_TYPE >
bio::CachedId< ID_TYPE >::CachedId ( const Name lookup,
physical::Perspective< ID_TYPE > &  perspective 
)
inline
Parameters
lookup
perspective

◆ ~CachedId()

template<typename ID_TYPE >
virtual bio::CachedId< ID_TYPE >::~CachedId ( )
inlinevirtual

Member Function Documentation

◆ Flush()

template<typename ID_TYPE >
virtual void bio::CachedId< ID_TYPE >::Flush ( )
inlinevirtual

Remove whatever *this has cached and re-look up the newest value.

Reimplemented from bio::Cached< ID_TYPE, const Name &, ID_TYPE(physical::Perspective< ID_TYPE >::*)(const Name &) >.

◆ operator<<()

template<typename ID_TYPE >
friend::std::ostream & bio::CachedId< ID_TYPE >::operator<< ( std::ostream &  out,
const CachedId< ID_TYPE > &  t 
)
inline

For full transparency, this method must be added to all children.
(We don't have Class<> logic to save us from this nightmare at the common/ level).

Parameters
out
t
Returns
out

Member Data Documentation

◆ mPerspective

template<typename ID_TYPE >
physical::Perspective< ID_TYPE >& bio::CachedId< ID_TYPE >::mPerspective
protected

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