A class of linear positive operators in weighted spaces