Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
CoinSet Class Reference

Very simple class for containing data on set. More...

#include <CoinMpsIO.hpp>

+ Inheritance diagram for CoinSet:

Public Member Functions

Constructor and destructor
 CoinSet ()
 Default constructor. More...
 
 CoinSet (int numberEntries, const int *which)
 Constructor. More...
 
 CoinSet (const CoinSet &)
 Copy constructor. More...
 
CoinSetoperator= (const CoinSet &rhs)
 Assignment operator. More...
 
virtual ~CoinSet ()
 Destructor. More...
 
gets
int numberEntries () const
 Returns number of entries. More...
 
int setType () const
 Returns type of set - 1 =SOS1, 2 =SOS2. More...
 
const int * which () const
 Returns list of variables. More...
 
const double * weights () const
 Returns weights. More...
 

Protected Attributes

data
int numberEntries_
 Number of entries. More...
 
int setType_
 type of set More...
 
int * which_
 Which variables are in set. More...
 
double * weights_
 Weights. More...
 

Detailed Description

Very simple class for containing data on set.

Definition at line 221 of file CoinMpsIO.hpp.

Constructor & Destructor Documentation

CoinSet::CoinSet ( )

Default constructor.

CoinSet::CoinSet ( int  numberEntries,
const int *  which 
)

Constructor.

CoinSet::CoinSet ( const CoinSet )

Copy constructor.

virtual CoinSet::~CoinSet ( )
virtual

Destructor.

Member Function Documentation

CoinSet& CoinSet::operator= ( const CoinSet rhs)

Assignment operator.

int CoinSet::numberEntries ( ) const
inline

Returns number of entries.

Definition at line 246 of file CoinMpsIO.hpp.

int CoinSet::setType ( ) const
inline

Returns type of set - 1 =SOS1, 2 =SOS2.

Definition at line 249 of file CoinMpsIO.hpp.

const int* CoinSet::which ( ) const
inline

Returns list of variables.

Definition at line 252 of file CoinMpsIO.hpp.

const double* CoinSet::weights ( ) const
inline

Returns weights.

Definition at line 255 of file CoinMpsIO.hpp.

Member Data Documentation

int CoinSet::numberEntries_
protected

Number of entries.

Definition at line 274 of file CoinMpsIO.hpp.

int CoinSet::setType_
protected

type of set

Definition at line 276 of file CoinMpsIO.hpp.

int* CoinSet::which_
protected

Which variables are in set.

Definition at line 278 of file CoinMpsIO.hpp.

double* CoinSet::weights_
protected

Weights.

Definition at line 280 of file CoinMpsIO.hpp.


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