codac 1.5.6
Loading...
Searching...
No Matches
codac::Set Class Reference

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

#include <codac_Set.h>

Inheritance diagram for codac::Set:

Public Member Functions

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

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: