whisperstreamlib/base/tag.h
// Adds the given tag to our list.
// IMPORTANT NOTE: we 'consume' the tag - becomes ours ..
//                 The tag's timestamp MUST be correct (relative to this
//                 ComposedTag's timestamp_ms_)
Adds the given tag to our list.
IMPORTANT NOTE: we 'consume' the tag - becomes ours
The tag's timestamp MUST be correct (relative to this
ComposedTag's timestamp_ms_)
Adds the given tag to our list . IMPORTANT NOTE : we ' consume ' the tag - becomes ours The tag ' s timestamp MUST be correct ( relative to this ComposedTag ' s timestamp_ms_ )
void add_prepared_tag(Tag* tag) {
    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);
  }
void add_prepared_tag ( Tag * tag ) { 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 ) ; }
Adds the given tag to our list.
Adds the given tag to our list .