27 #ifndef GRESPONSEVECTORCACHE_HPP
28 #define GRESPONSEVECTORCACHE_HPP
71 void set(
const std::string& cache_id,
73 void remove(
const std::string& cache_id);
74 bool contains(
const std::string& cache_id,
78 const bool& clobber =
false)
const;
87 int find_cache(
const std::string& cache_id)
const;
105 return (
"GResponseVectorCache");
void save(const GFilename &filename, const bool &clobber=false) const
Save the response vector cache into FITS file.
GResponseVectorCache(void)
Void constructor.
Response vector cache class.
std::vector< int > m_cache_entries
std::string print(const GChatter &chatter=NORMAL) const
Print response cache.
Definition of interface for all GammaLib classes.
void set(const std::string &cache_id, const GVector &vector)
Set cache value.
virtual ~GResponseVectorCache(void)
Destructor.
std::string classname(void) const
Return class name.
void init_members(void)
Initialise class members.
std::vector< double * > m_cache_values
int size(void) const
Returns size of vector chache.
int find_cache(const std::string &cache_id) const
Find cache.
void read(const GFitsTable &table)
Read response vector cache from FITS table.
void free_members(void)
Delete class members.
GResponseVectorCache * clone(void) const
Clone response cache.
Interface class for all GammaLib classes.
GResponseVectorCache & operator=(const GResponseVectorCache &cache)
Assignment operator.
Abstract interface for FITS table.
void copy_members(const GResponseVectorCache &cache)
Copy class members.
void clear(void)
Clear response vector cache.
bool contains(const std::string &cache_id, GVector *irfs=NULL) const
Check if cache contains a value for specific parameters.
std::vector< int * > m_cache_indices
std::vector< std::string > m_cache_ids
bool is_empty(void) const
Checks whether the cache is empty.
void load(const GFilename &filename)
Load response vector cache from FITS file.