void LLChangeChannel::operator()(LLSegment& segment) { if(segment.isOnChannel(mIs)) { segment.setChannel(mBecomes); } }
void buffer_object_t::test<2>() { LLSegment segment; ensure("LLSegment get functions failed", (0 == segment.getChannel() && NULL == segment.data() && 0 == segment.size())); segment.setChannel(50); ensure_equals("LLSegment setChannel() function failed", segment.getChannel(), 50); ensure("LLSegment isOnChannel() function failed", (TRUE == segment.isOnChannel(50))); }