SFrame 3.6
|
Base class for classes holding input variables. More...
#include <plug-ins/include/SInputVariables.h>
Public Member Functions | |
SInputVariables (ParentType *parent) | |
Constructor that specifies the parent cycle. | |
Protected Member Functions | |
template<typename T > | |
bool | ConnectVariable (const char *treeName, const char *branchName, T &variable) throw ( SError ) |
Connect an input variable. |
Base class for classes holding input variables.
This class can be used to serve as a base class for classes whose only purpose is to collect input variables. By collecting input variables into objects, it's quite convenient to pass them around between objects that process their information.
Definition at line 31 of file SInputVariables.h.
SInputVariables< ParentType >::SInputVariables | ( | ParentType * | parent | ) |
Constructor that specifies the parent cycle.
Definition at line 18 of file SInputVariables.icc.
bool SInputVariables< ParentType >::ConnectVariable | ( | const char * | treeName, |
const char * | branchName, | ||
T & | variable | ||
) | throw ( SError ) [protected] |
Connect an input variable.
Only one such function is needed, even though there are 3 different specializations of this function in SCycleBaseNTuple. But the specialization step only happens at SCycleBaseNTuple, GCC would actually just get confused (rightfully so) if we defined multiple specializations for this particular function.
Definition at line 31 of file SInputVariables.icc.