data/train/cpp/1d772120d92f0fea64e2195da0e4d2cf86a8fa66so_type_repo.cpp
so_type::weak_pointer so_type_repo::addType(const so_type::shared_pointer& aTypeID) {
  so_type::weak_pointer r = findType(aTypeID);
  if((r.lock()) && (r.lock()->TypeVersion() > aTypeID->TypeVersion()))
    return r;

  return mTypeMap->addDescendant( aTypeID );
}
///This function adds a type to the repo.
This function adds a type to the repo.
This function adds a type to the repo .
so_type::weak_pointer so_type_repo::addType(const so_type::shared_pointer& aTypeID) {
  so_type::weak_pointer r = findType(aTypeID);
  if((r.lock()) && (r.lock()->TypeVersion() > aTypeID->TypeVersion()))
    return r;
  return mTypeMap->addDescendant( aTypeID );
}
so_type :: weak_pointer so_type_repo :: addType ( const so_type :: shared_pointer & aTypeID ) { so_type :: weak_pointer r = findType ( aTypeID ) ; if ( ( r . lock ( ) ) && ( r . lock ( ) -> TypeVersion ( ) > aTypeID -> TypeVersion ( ) ) ) return r ; return mTypeMap -> addDescendant ( aTypeID ) ; }
This function adds a type to the repo.
This function adds a type to the repo .