SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Public Member Functions | Public Attributes
Nothing Class Reference

Detailed Description

Represents non-typed absent value.

Can be casted to any

See also
Maybe<T> resulting in Maybe with absent value.

Contains reason for absence as a regular C string.

Definition at line 21 of file maybe.h.

Public Member Functions

 Nothing (const char *reason="no specific reason")
 
 Nothing (const Nothing &other)
 

Public Attributes

const char * m_absence_reason
 

Constructor & Destructor Documentation

Nothing ( const char *  reason = "no specific reason")

Createst an instance of nothing aka absent value.

Parameters
reasonthe reason something is absent

Definition at line 28 of file maybe.h.

Nothing ( const Nothing other)

Copies nothing from nothing, inheriting absence reason.

Parameters
otherother instance of nothing

Definition at line 36 of file maybe.h.

Member Data Documentation

const char* m_absence_reason

Represents a reason why something is absent. Memory is not managed.

Definition at line 43 of file maybe.h.


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

SHOGUN Machine Learning Toolbox - Documentation