src/HSLib/GenOp.cc
/*              Input           Op   : Operator (this)
                                fn   : Input binary filename
                                fp   : File stream (pointing at Op)
                                bs   : An optional basis in which to
                                       force the operator into so that many
                                       read operators may share one basis!
                Return          void : Op is read in from either the
                                       specified file or filestream.
                Note                 : Read Op will reside in only 1 basis   */
Input           Op   : Operator (this)
fn   : Input binary filename
fp   : File stream (pointing at Op)
bs   : An optional basis in which to
force the operator into so that many
read operators may share one basis.
Return          void : Op is read in from either the
specified file or filestream.
Note                 : Read Op will reside in only 1 basis
Input Op : Operator ( this ) fn : Input binary filename fp : File stream ( pointing at Op ) bs : An optional basis in which to force the operator into so that many read operators may share one basis . Return void : Op is read in from either the specified file or filestream . Note : Read Op will reside in only 1 basis
void gen_op::read(const std::string& fn, const basis& bs)
  {
  read(fn);				
  if(get_basis() == bs) put_basis(bs);	
  }
void gen_op :: read ( const std :: string & fn , const basis & bs ) { read ( fn ) ; if ( get_basis ( ) == bs ) put_basis ( bs ) ; }
Input           Op   : Operator (this)
fn   : Input binary filename
fp   : File stream (pointing at Op)
bs   : An optional basis in which to
force the operator into so that many
read operators may share one basis!
Input Op : Operator ( this ) fn : Input binary filename fp : File stream ( pointing at Op ) bs : An optional basis in which to force the operator into so that many read operators may share one basis!
// Use function overload // Set basis to bs if match up