Public Member Functions | Private Attributes

SimpleSet Class Reference

This class represents a contiguous set defined using 1..T or similar. More...

#include <SetNode.h>

Inheritance diagram for SimpleSet:
SetNode SyntaxNode CompDescr

List of all members.

Public Member Functions

 SimpleSet (SyntaxNode *bnd1, SyntaxNode *bnd2)
std::vector< std::string > members (AmplModel &context) const
 Retrieve the members of the set.

Private Attributes

int lower_bound_
SyntaxNodelbc_
int upper_bound_
SyntaxNodeubc_
int interval_
bool parsed_

Detailed Description

This class represents a contiguous set defined using 1..T or similar.


Constructor & Destructor Documentation

SimpleSet::SimpleSet ( SyntaxNode bnd1,
SyntaxNode bnd2 
)

Member Function Documentation

vector< string > SimpleSet::members ( AmplModel context  )  const

Retrieve the members of the set.

References interval_, lower_bound_, parsed_, to_string(), and upper_bound_.


Member Data Documentation

int SimpleSet::interval_ [private]

Referenced by members().

Referenced by SimpleSet().

int SimpleSet::lower_bound_ [private]

Referenced by members(), and SimpleSet().

bool SimpleSet::parsed_ [private]

Referenced by members(), and SimpleSet().

Referenced by SimpleSet().

int SimpleSet::upper_bound_ [private]

Referenced by members(), and SimpleSet().


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