codac
Public Member Functions | Protected Attributes | List of all members
codac::Set Class Reference

Multi-dimensional interval-based representation of a set. More...

#include <codac_Set.h>

Inheritance diagram for codac::Set:
Inheritance graph
[legend]

Public Member Functions

 Set (const IntervalVector &box, SetValue value=SetValue::UNKNOWN)
 Creates a set. More...
 
 ~Set ()
 Set destructor.
 
SetValue value () const
 Returns the value of this set. More...
 
int size () const
 Returns the dimension of the paving. More...
 
const IntervalVector & box () const
 Returns the n-dimensional box representing this set. More...
 
void set_value (SetValue value)
 Sets the integer value for this set. More...
 

Protected Attributes

SetValue m_value
 integer value of this set
 
IntervalVector m_box
 box representing this set
 

Detailed Description

Multi-dimensional interval-based representation of a set.

Its value is represented by an integer.

Constructor & Destructor Documentation

◆ Set()

codac::Set::Set ( const IntervalVector &  box,
SetValue  value = SetValue::UNKNOWN 
)

Creates a set.

Parameters
boxn-dimensional box representing the set
valueinteger of the set, SetValue::UNKNOWN by default

Member Function Documentation

◆ value()

SetValue codac::Set::value ( ) const

Returns the value of this set.

Returns
the integer value

◆ size()

int codac::Set::size ( ) const

Returns the dimension of the paving.

Returns
n

◆ box()

const IntervalVector& codac::Set::box ( ) const

Returns the n-dimensional box representing this set.

Returns
the box

◆ set_value()

void codac::Set::set_value ( SetValue  value)

Sets the integer value for this set.

Parameters
value

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