The basic idea is this: Suppose your snake is moving left (Direction::West) and is currently at X position 9. After your switch statement, the snake will be at -1--partially of the screen. So, once the X position is < 0, make the X position 1024 somehow. Either
1 2 3
position_.x = 1024
or
position_.x += 1024
would work.
Likewise, if your snake is headed right, and the X position is greater than 1024, reset the X position back to zero. Same goes with the Y position at the top or bottom.