vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vrecko::Range Class Reference

#include <Range.h>

Inheritance diagram for vrecko::Range:
vrecko::Enumeration< tval, tref > vrecko::Interval< tval, tref >

Public Types

enum  RangeType { RANGE_INTERVAL, RANGE_ENUMERATION }
 

Public Member Functions

bool isInterval () const
 
bool isEnumeration () const
 

Protected Member Functions

 Range (RangeType rangeType)
 
 Range (const Range &range)
 

Detailed Description

Represents a general range class.

You cannot create any instances of this class, use subclasses. This class is meant solely as an abstract parent class for classes Interval and Enumeration.

See Also
Interval
Enumeration

Member Enumeration Documentation

Range types enumeration.

Enumerator
RANGE_INTERVAL 

interval

RANGE_ENUMERATION 

enumeration

Constructor & Destructor Documentation

vrecko::Range::Range ( RangeType  rangeType)
inlineprotected

Constructs a Range object of the range type specified.

Parameters
rangeTypetype of range
vrecko::Range::Range ( const Range range)
inlineprotected

Constructs a Range object by copying an existing one.

Parameters
rangea reference to a constant Range instance

Member Function Documentation

bool vrecko::Range::isEnumeration ( ) const
inline

"Is enumeration" predicate.

Returns
true if the range is an enumeration, false otherwise
bool vrecko::Range::isInterval ( ) const
inline

"Is interval" predicate.

Returns
true if the range is an interval, false otherwise

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