whisperstreamlib/base/tag.h
// Adds a clone of the given tag to our list
// IMPORTANT NOTE: we don't 'consume' the tag - is your job to take care
//                 of the given argument from now on
Adds a clone of the given tag to our list
IMPORTANT NOTE: we don't 'consume' the tag - is your job to take care
of the given argument from now on
Adds a clone of the given tag to our list IMPORTANT NOTE : we don ' t ' consume ' the tag - is your job to take care of the given argument from now on
int64 add_tag(const Tag* tag, int64 timestamp_ms) {
    DCHECK(!tags_->is_full());
    if ( sub_tag_type_ == kAnyType ) {
      sub_tag_type_ = tag->type();
    }
    CHECK_EQ(sub_tag_type_, tag->type());
    add_attributes(tag->attributes());
    tags_->add_tag(tag->Clone());
    return duration_ms();
  }
int64 add_tag ( const Tag * tag , int64 timestamp_ms ) { DCHECK ( ! tags_ -> is_full ( ) ) ; if ( sub_tag_type_ == kAnyType ) { sub_tag_type_ = tag -> type ( ) ; } CHECK_EQ ( sub_tag_type_ , tag -> type ( ) ) ; add_attributes ( tag -> attributes ( ) ) ; tags_ -> add_tag ( tag -> Clone ( ) ) ; return duration_ms ( ) ; }
Adds a clone of the given tag to our list
IMPORTANT NOTE: we don't 'consume' the tag - is your job to take care
of the given argument from now on
Adds a clone of the given tag to our list IMPORTANT NOTE : we don ' t ' consume ' the tag - is your job to take care of the given argument from now on