IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::ScopedAddCacheAttribute< Key, Value > Class Template Reference

#include <IMP/scoped.h>

Inheritance diagram for IMP::ScopedAddCacheAttribute< Key, Value >:

Detailed Description

template<class Key, class Value>
class IMP::ScopedAddCacheAttribute< Key, Value >

Add a cache attribute to a particle and then remove it when this goes out of scope.

Definition at line 30 of file scoped.h.

Public Member Functions

 ScopedAddCacheAttribute (Particle *p, Key key, const Value &value)
 Explicit constructor that sets the properties of ScopedAddCacheAttribute.
void reset ()
 Remove the properties previously set for this class.
void set (Particle *p, Key key, const Value &value)
 Assign new properties to the class.
void show (std::ostream &out=std::cout) const

Constructor & Destructor Documentation

◆ ScopedAddCacheAttribute() [1/2]

template<class Key, class Value>
IMP::ScopedAddCacheAttribute< Key, Value >::ScopedAddCacheAttribute ( )

Definition at line 48 of file scoped.h.

◆ ScopedAddCacheAttribute() [2/2]

template<class Key, class Value>
IMP::ScopedAddCacheAttribute< Key, Value >::ScopedAddCacheAttribute ( Particle * p,
Key key,
const Value & value )
explicit

Explicit constructor that sets the properties of ScopedAddCacheAttribute.

Definition at line 48 of file scoped.h.

◆ ~ScopedAddCacheAttribute()

template<class Key, class Value>
IMP::ScopedAddCacheAttribute< Key, Value >::~ScopedAddCacheAttribute ( )

Definition at line 48 of file scoped.h.

Member Function Documentation

◆ reset()

template<class Key, class Value>
void IMP::ScopedAddCacheAttribute< Key, Value >::reset ( )

Remove the properties previously set for this class.

Definition at line 48 of file scoped.h.

◆ set()

template<class Key, class Value>
void IMP::ScopedAddCacheAttribute< Key, Value >::set ( Particle * p,
Key key,
const Value & value )

Assign new properties to the class.

Definition at line 48 of file scoped.h.


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