예제 #1
0
NearestLetterNodeIndices *LetterNodeListMap::ListPointerAt( char letter ) {
  if ( !letters_ ) {
    return nullptr;
  }

  return &letters_->at( IndexForLetter( letter ) );
}
예제 #2
0
NearestLetterNodeIndices &LetterNodeListMap::operator[] ( char letter ) {
  if ( !letters_ )
    letters_.reset( new NearestLetterNodeArray() );

  int letter_index = IndexForLetter( letter );

  return letters_->at( letter_index );
}
예제 #3
0
NearestLetterNodeIndices *LetterNodeListMap::ListPointerAt( char letter ) {
  if ( !letters_ )
    return NULL;

  return &letters_->at( IndexForLetter( letter ) );
}