A class for reading a .col or .row file containing name for variables and constraints (usually ampl generated file).  
 More...
#include <BonColReader.hpp>
 | 
|   | NamesReader (const char *fileName, const char *suffix) | 
|   | Constructor with a file name given by a const char *.  More...
  | 
|   | 
|   | NamesReader (const std::string &fileName="", const std::string &suffix=".col") | 
|   | Constructor with a file name given by a string and also default (empty string)  More...
  | 
|   | 
| bool  | readFile () | 
|   | Reads the .col file.  More...
  | 
|   | 
| bool  | readFile (const std::string &file) | 
|   | Reads the .col file fileName.  More...
  | 
|   | 
| void  | copyNames (OsiSolverInterface::OsiNameVec &Names) | 
|   | Copy the names to Names.  More...
  | 
|   | 
| const std::string &  | name (int i) | 
|   | Access Names of indexed by i.  More...
  | 
|   | 
| int  | index (const char *str) | 
|   | Access index of variable str.  More...
  | 
|   | 
A class for reading a .col or .row file containing name for variables and constraints (usually ampl generated file). 
Definition at line 25 of file BonColReader.hpp.
 
      
        
          | Bonmin::NamesReader::NamesReader  | 
          ( | 
          const char *  | 
          fileName,  | 
        
        
           | 
           | 
          const char *  | 
          suffix  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor with a file name given by a const char *. 
 
 
      
        
          | Bonmin::NamesReader::NamesReader  | 
          ( | 
          const std::string &  | 
          fileName = "",  | 
        
        
           | 
           | 
          const std::string &  | 
          suffix = ".col"  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor with a file name given by a string and also default (empty string) 
 
 
      
        
          | bool Bonmin::NamesReader::readFile  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | bool Bonmin::NamesReader::readFile  | 
          ( | 
          const std::string &  | 
          file | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | void Bonmin::NamesReader::copyNames  | 
          ( | 
          OsiSolverInterface::OsiNameVec &  | 
          Names | ) | 
           | 
        
      
 
 
  
  
      
        
          | const std::string& Bonmin::NamesReader::name  | 
          ( | 
          int  | 
          i | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | int Bonmin::NamesReader::index  | 
          ( | 
          const char *  | 
          str | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | std::string Bonmin::NamesReader::file_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | std::string Bonmin::NamesReader::suffix_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | std::vector<std::string> Bonmin::NamesReader::names_ | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: