Barrier fence. A structure or barrier constructed of wooden or metal parts, rails, boards, masonry, etc., and used to mark a boundary or to define and enclose a specific area for the purposes of protection, privacy or confinement. For the purposes of this Chapter, a freestanding wall erected for protection, privacy or confinement shall be regulated as a barrier fence.