TTTT Analysis  0.1
Public Member Functions | List of all members
fv::Value< T > Class Template Referenceabstract

A generic value. More...

#include <value.hpp>

Inheritance diagram for fv::Value< T >:
Inheritance graph
[legend]
Collaboration diagram for fv::Value< T >:
Collaboration graph
[legend]

Public Member Functions

 Value (const std::string &name, const std::string &alias="")
 
virtual T & get_value ()=0
 Calculate, if necessary, and return the value held by this object.
 
- Public Member Functions inherited from fv::GenValue
 GenValue (const std::string &name, const std::string &alias)
 
const std::string & get_name ()
 
void set_name (const std::string &new_name)
 

Additional Inherited Members

- Static Public Member Functions inherited from fv::GenValue
static void reset ()
 
static GenValueget_value (const std::string &name)
 
static void alias (const std::string &name, GenValue *value)
 
static GenValuealias (const std::string &name)
 
static std::string summary ()
 
- Protected Member Functions inherited from fv::GenValue
virtual void _reset ()=0
 Mark the internal value as invalid. More...
 
- Static Protected Attributes inherited from fv::GenValue
static std::map< const std::string, GenValue * > values
 A static mapping containing all created Value objects. More...
 
static std::map< const std::string, GenValue * > aliases
 Composite value names are typically nested. More...
 

Detailed Description

template<typename T>
class fv::Value< T >

A generic value.

In order to facilitate run-time creation of analysis routines, it is necessary to have some ability to get and store values. Values can either be directly taken from some original data source (i.e. ObservedValue), or they can be a function of some other set of values (i.e. DerivedValue). They template class T of Value<T> is the type of thing that is returned upon calling get_value().


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