src/ccmain/ltrresultiterator.cpp
const char *LTRResultIterator::WordLattice(int *lattice_size) const {
  if (it_->word() == nullptr) {
    return nullptr; // Already at the end!
  }
  if (it_->word()->blamer_bundle == nullptr) {
    return nullptr;
  }
  *lattice_size = it_->word()->blamer_bundle->lattice_size();
  return it_->word()->blamer_bundle->lattice_data();
}
// Returns a pointer to serialized choice lattice.
// Fills lattice_size with the number of bytes in lattice data.
Returns a pointer to serialized choice lattice.
Fills lattice_size with the number of bytes in lattice data.
Returns a pointer to serialized choice lattice . Fills lattice_size with the number of bytes in lattice data .
const char *LTRResultIterator::WordLattice(int *lattice_size) const {
  if (it_->word() == nullptr) {
    return nullptr; 
  }
  if (it_->word()->blamer_bundle == nullptr) {
    return nullptr;
  }
  *lattice_size = it_->word()->blamer_bundle->lattice_size();
  return it_->word()->blamer_bundle->lattice_data();
}
const char * LTRResultIterator :: WordLattice ( int * lattice_size ) const { if ( it_ -> word ( ) == nullptr ) { return nullptr ; } if ( it_ -> word ( ) -> blamer_bundle == nullptr ) { return nullptr ; } * lattice_size = it_ -> word ( ) -> blamer_bundle -> lattice_size ( ) ; return it_ -> word ( ) -> blamer_bundle -> lattice_data ( ) ; }
Returns a pointer to serialized choice lattice.
Returns a pointer to serialized choice lattice .
// Already at the end!