Go to the source code of this file.
Classes | |
class | shark::TypedFlags< Flag > |
Flexible and extensible mechanisms for holding flags. More... | |
class | shark::TypedFeatureNotAvailableException< Feature > |
Exception indicating the attempt to use a feature which is not supported. More... | |
struct | boost::serialization::tracking_level< shark::TypedFlags< T > > |
Namespaces | |
shark | |
AbstractMultiObjectiveOptimizer. | |
boost | |
boost::serialization | |
Macros | |
#define | SHARK_FEATURE_INTERFACE |
#define | SHARK_FEATURE_EXCEPTION(FEATURE) |
#define | SHARK_FEATURE_EXCEPTION_DERIVED(FEATURE) |
#define | SHARK_FEATURE_CHECK(FEATURE) if(!(this->features()&base_type::FEATURE)){SHARK_FEATURE_EXCEPTION_DERIVED(FEATURE);} |
Checks whether the feature is available, if not, it throws an exception. More... | |
#define SHARK_FEATURE_CHECK | ( | FEATURE | ) | if(!(this->features()&base_type::FEATURE)){SHARK_FEATURE_EXCEPTION_DERIVED(FEATURE);} |
#define SHARK_FEATURE_EXCEPTION | ( | FEATURE | ) |
Throws an Exception when called. This macro should be used in default implementations of the interface. This define also checks first whether the feature is set to true inside the class. If this is the case then we have encountered a programming mistake - so we assert instead.
Definition at line 175 of file Flags.h.
Referenced by shark::AbstractConstraintHandler< Vector >::closestFeasible(), shark::AbstractObjectiveFunction< SearchSpaceType, ResultT >::closestFeasible(), shark::AbstractObjectiveFunction< SearchSpaceType, ResultT >::eval(), shark::AbstractObjectiveFunction< SearchSpaceType, ResultT >::evalDerivative(), shark::AbstractConstraintHandler< Vector >::generateRandomPoint(), shark::AbstractObjectiveFunction< SearchSpaceType, ResultT >::proposeStartingPoint(), shark::AbstractClustering< RealVector >::softMembership(), shark::AbstractKernelFunction< MultiTaskSample< InputTypeT > >::weightedInputDerivative(), shark::AbstractModel< InputT, unsigned int >::weightedInputDerivative(), shark::AbstractKernelFunction< MultiTaskSample< InputTypeT > >::weightedParameterDerivative(), and shark::AbstractModel< InputT, unsigned int >::weightedParameterDerivative().
#define SHARK_FEATURE_EXCEPTION_DERIVED | ( | FEATURE | ) |
Same as SHARK_FEATURE_EXCEPTION, but used when called from a derived class. Assumes that a typedef "base_type" for the Baseclass exists
Definition at line 180 of file Flags.h.
Referenced by shark::AbstractLoss< unsigned int, RealVector >::evalDerivative().
#define SHARK_FEATURE_INTERFACE |